Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a8166141fe | |||
| 4ef56d8e05 | |||
| 1d0a61c9f9 | |||
| 6ae5b150d0 |
38
StringCheck20261007 石川.java
Normal file
38
StringCheck20261007 石川.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package mission;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
//段階1
|
||||
String[] a;
|
||||
a = new String[4];
|
||||
a[0] = "いまなにしてる?";
|
||||
a[1] = "何も入力されていません";
|
||||
a[2] = "投稿文が長すぎます";
|
||||
a[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
//段階2
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String str = sc.nextLine();
|
||||
System.out.println(str.trim());
|
||||
|
||||
//段階3
|
||||
boolean b1 = str.length() == 0;
|
||||
boolean b2= str.length() > 140;
|
||||
|
||||
System.out.println(b1);
|
||||
System.out.println(b2);
|
||||
|
||||
int n = 140 - str.length();
|
||||
System.out.println(n);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
47
StringCheck20261008_ishikawa.java
Normal file
47
StringCheck20261008_ishikawa.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package mission;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
String[] a;
|
||||
a = new String[4];
|
||||
a[0] = "いまなにしてる?";
|
||||
a[1] = "何も入力されていません";
|
||||
a[2] = "投稿文が長すぎます";
|
||||
a[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String str;
|
||||
while(true) {
|
||||
System.out.println(a[0]);
|
||||
str = sc.nextLine().strip();
|
||||
System.out.println(str);
|
||||
|
||||
boolean b1 = str.length() == 0;
|
||||
boolean b2 = str.length() > 140;
|
||||
int n = 140 - str.length();
|
||||
|
||||
if(b1) {
|
||||
System.out.println(a[1]);
|
||||
continue;
|
||||
}else if(b2) {
|
||||
System.out.println(a[2]);
|
||||
continue;
|
||||
}else {
|
||||
System.out.println(b1);
|
||||
System.out.println(b2);
|
||||
System.out.println(n);
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.out.println();
|
||||
System.out.println(a[3]);
|
||||
System.out.println(str);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
48
StringCheck_1009_ishikawa.java
Normal file
48
StringCheck_1009_ishikawa.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package misstion2;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
String[] a;
|
||||
a = new String[4];
|
||||
a[0] = "いまなにしてる?";
|
||||
a[1] = "何も入力されていません";
|
||||
a[2] = "投稿文が長すぎます";
|
||||
a[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String str;
|
||||
while(true) {
|
||||
System.out.println(a[0]);
|
||||
str = sc.nextLine().strip();
|
||||
System.out.println(str);
|
||||
|
||||
boolean b1 = str.length() == 0;
|
||||
boolean b2 = str.length() > 140;
|
||||
int n = 140 - str.length();
|
||||
|
||||
if(b1) {
|
||||
System.out.println(a[1]);
|
||||
continue;
|
||||
}else if(b2) {
|
||||
System.out.println(a[2]);
|
||||
continue;
|
||||
}else {
|
||||
System.out.println(b1);
|
||||
System.out.println(b2);
|
||||
System.out.println(n);
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.out.println();
|
||||
System.out.println(a[3]);
|
||||
System.out.println(str);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
73
StringCheck_20261013_ishikawa.java
Normal file
73
StringCheck_20261013_ishikawa.java
Normal file
@@ -0,0 +1,73 @@
|
||||
package misstion2;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
String[] text;
|
||||
text = new String[4];
|
||||
text[0] = "いまなにしてる?";
|
||||
text[1] = "何も入力されていません";
|
||||
text[2] = "投稿文が長すぎます";
|
||||
text[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
String str;
|
||||
int l = 140;//文字数の上限値
|
||||
|
||||
while(true) {
|
||||
System.out.println(text[0]);
|
||||
str = inputString();//標準入力を受け取る
|
||||
System.out.println(str);//上を出力
|
||||
|
||||
boolean b1 = isEmptyInput(str);//入力された文字数が0の時
|
||||
boolean b2 = isTooLongInput(str, l);//上限値を超えた時
|
||||
int n = l - str.length();//残りの入力可能文字数の算出
|
||||
|
||||
//入力された文字数に応じて配列[text]を出力
|
||||
if(b1) {
|
||||
System.out.println(text[1]);
|
||||
continue;
|
||||
}else if(b2) {
|
||||
System.out.println(text[2]);
|
||||
continue;
|
||||
}else {
|
||||
System.out.println(b1);
|
||||
System.out.println(b2);
|
||||
System.out.println(n);//残りの入力可能文字数を出力
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.out.println();
|
||||
System.out.println(text[3]);
|
||||
System.out.println(str);
|
||||
|
||||
}
|
||||
|
||||
//標準入力受け取りのメソッド
|
||||
public static String inputString() {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String str;
|
||||
str = sc.nextLine().strip();
|
||||
return str;
|
||||
}
|
||||
|
||||
//文字数0のメソッド
|
||||
public static boolean isEmptyInput(String str) {
|
||||
boolean b1 = str.length() == 0;
|
||||
return b1;
|
||||
}
|
||||
|
||||
//文字数超過のメソッド
|
||||
public static boolean isTooLongInput(String str) {
|
||||
boolean b2 = str.length() > 140;
|
||||
return b2;
|
||||
}
|
||||
|
||||
//追加したメソッド
|
||||
public static boolean isTooLongInput(String str, int l) {
|
||||
boolean b2 = str.length() > l;
|
||||
return b2;
|
||||
}
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
|
||||
|
||||
// 表示文字列を設定する
|
||||
String[] display;
|
||||
display = new String[4];
|
||||
display[0] = "いまなにしてる?";
|
||||
display[1] = "何も入力されていません";
|
||||
display[2] = "投稿文が長すぎます";
|
||||
display[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
|
||||
/*==========文字列読み取り==========*/
|
||||
|
||||
// いまなにしてる?
|
||||
System.out.println(display[0]);
|
||||
|
||||
// 標準入力から1行分の文字列を読み取りstrに格納する
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String str = sc.nextLine();
|
||||
sc.close();
|
||||
|
||||
// 空行を表示する
|
||||
System.out.println();
|
||||
|
||||
// ↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓
|
||||
System.out.println(display[3]);
|
||||
|
||||
// 文字列の前後の空白を除去して出力する
|
||||
str = str.strip();
|
||||
System.out.println(str); // テスト
|
||||
|
||||
|
||||
/*==========文字数判定==========*/
|
||||
|
||||
// strの文字数を取得する
|
||||
int length = str.length();
|
||||
/*
|
||||
// 文字列中の空白を削除して文字列を取得する
|
||||
String str_wospace = str.replaceAll("\t|\s| ",""); // タブ+半角スペース+改行+改ページ+垂直タブ+全角スペース
|
||||
System.out.println(str_wospace);
|
||||
int length = str_wospace.length();
|
||||
*/
|
||||
System.out.println(length); // テスト
|
||||
|
||||
// 文字数が0かどうかを判定する
|
||||
boolean wh0 = length == 0;
|
||||
System.out.println(wh0); // テスト
|
||||
|
||||
// 文字数が140を超えているかどうかを判定する
|
||||
boolean wh140over = length > 140;
|
||||
System.out.println(wh140over); // テスト
|
||||
|
||||
// 残り入力可能文字数を表示する
|
||||
System.out.println(140-length);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
|
||||
|
||||
// 表示文字列を設定する
|
||||
String[] display;
|
||||
display = new String[4];
|
||||
display[0] = "いまなにしてる?";
|
||||
display[1] = "何も入力されていません";
|
||||
display[2] = "投稿文が長すぎます";
|
||||
display[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
|
||||
/*==========文字列読み取り==========*/
|
||||
|
||||
// いまなにしてる?
|
||||
System.out.println(display[0]);
|
||||
|
||||
// 標準入力から1行分の文字列を読み取りstrに格納する
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String str = sc.nextLine();
|
||||
sc.close();
|
||||
|
||||
// 空行を表示する
|
||||
System.out.println();
|
||||
|
||||
// ↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓
|
||||
System.out.println(display[3]);
|
||||
|
||||
// 文字列の前後の空白を除去して出力する
|
||||
str = str.strip();
|
||||
System.out.println(str); // テスト
|
||||
|
||||
|
||||
/*==========文字数判定==========*/
|
||||
|
||||
// strの文字数を取得する
|
||||
int length = str.length();
|
||||
/*
|
||||
// 文字列中の空白を削除して文字列を取得する
|
||||
String str_wospace = str.replaceAll("\t|\s| ",""); // タブ+半角スペース+改行+改ページ+垂直タブ+全角スペース
|
||||
System.out.println(str_wospace);
|
||||
int length = str_wospace.length();
|
||||
*/
|
||||
System.out.println(length); // テスト
|
||||
|
||||
// 文字数が0かどうかを判定する
|
||||
boolean wh0 = length == 0;
|
||||
System.out.println(wh0); // テスト
|
||||
|
||||
// 文字数が140を超えているかどうかを判定する
|
||||
boolean wh140over = length > 140;
|
||||
System.out.println(wh140over); // テスト
|
||||
|
||||
// 残り入力可能文字数を表示する
|
||||
System.out.println(140-length);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,113 +0,0 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
|
||||
|
||||
// 表示文字列を設定する
|
||||
String[] display;
|
||||
display = new String[4];
|
||||
display[0] = "いまなにしてる?";
|
||||
display[1] = "何も入力されていません";
|
||||
display[2] = "投稿文が長すぎます";
|
||||
display[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
|
||||
/*==========10/08段階1:拡張for文による繰り返し出力(デバッグ)==========*/
|
||||
// for ( String guide : display ) {
|
||||
// System.out.println(guide);
|
||||
// }
|
||||
|
||||
|
||||
/*==========変数定義==========*/
|
||||
|
||||
String str; // 入力格納
|
||||
int length = 0; // 文字数
|
||||
Scanner sc = new Scanner(System.in);
|
||||
|
||||
|
||||
/*=========動作==========*/
|
||||
|
||||
while (true) { // 空文字or文字数超過→再度入力待機状態に戻る
|
||||
|
||||
|
||||
/*==========文字列読み取り==========*/
|
||||
|
||||
// いまなにしてる?
|
||||
System.out.println(display[0]);
|
||||
|
||||
// 標準入力から1行分の文字列を読み取りstrに格納する
|
||||
str = sc.nextLine();
|
||||
|
||||
// 文字列の前後の空白を除去する
|
||||
str = str.strip();
|
||||
|
||||
|
||||
/*==========文字数判定==========*/
|
||||
|
||||
// strの文字数を取得する
|
||||
length = str.length();
|
||||
|
||||
// 空文字判定
|
||||
if ( length == 0 ) {
|
||||
System.out.println("何も入力されていません");
|
||||
continue;
|
||||
}
|
||||
// 文字数超過判定
|
||||
if ( length > 140 ) {
|
||||
System.out.println("投稿文が長すぎます");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
/*==========正常入力==========*/
|
||||
|
||||
// 空行を表示する
|
||||
System.out.println();
|
||||
|
||||
// ↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓
|
||||
System.out.println(display[3]);
|
||||
|
||||
// 文字列を出力する
|
||||
System.out.println(str);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
sc.close();
|
||||
|
||||
|
||||
// /*==========文字数判定==========*/ 1007
|
||||
//
|
||||
// // strの文字数を取得する
|
||||
// int length = str.length();
|
||||
// /*
|
||||
// // 文字列中の空白を削除して文字列を取得する
|
||||
// String str_wospace = str.replaceAll("\t|\s| ",""); // タブ+半角スペース+改行+改ページ+垂直タブ+全角スペース
|
||||
// System.out.println(str_wospace);
|
||||
// int length = str_wospace.length();
|
||||
// */
|
||||
// System.out.println(length); // テスト
|
||||
//
|
||||
// // 文字数が0かどうかを判定する
|
||||
// boolean wh0 = length == 0;
|
||||
// System.out.println(wh0); // テスト
|
||||
//
|
||||
// // 文字数が140を超えているかどうかを判定する
|
||||
// boolean wh140over = length > 140;
|
||||
// System.out.println(wh140over); // テスト
|
||||
//
|
||||
// // 残り入力可能文字数を表示する
|
||||
// System.out.println(140-length);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,137 +0,0 @@
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
|
||||
// 表示文字列を設定する
|
||||
String[] display;
|
||||
display = new String[4];
|
||||
display[0] = "いまなにしてる?";
|
||||
display[1] = "何も入力されていません";
|
||||
display[2] = "投稿文が長すぎます";
|
||||
display[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
/*==========変数定義==========*/
|
||||
|
||||
String str; // 入力文章
|
||||
// int lim = 10; // 文字数上限
|
||||
|
||||
/*=========動作==========*/
|
||||
|
||||
while (true) { // 空文字or文字数超過→再度入力待機状態に戻る
|
||||
|
||||
/*==========文字列読み取り==========*/
|
||||
|
||||
// いまなにしてる?
|
||||
System.out.println(display[0]);
|
||||
|
||||
// 標準入力から1行読み込む+前後の空白を除去する
|
||||
str = inputString();
|
||||
|
||||
/*==========文字数判定==========*/
|
||||
|
||||
// 空文字判定
|
||||
if ( isEmptyInput(str) ) {
|
||||
System.out.println("何も入力されていません");
|
||||
continue;
|
||||
}
|
||||
// 文字数超過判定
|
||||
if ( isTooLongInput(str) ) {
|
||||
// if ( isTooLongInput(str,lim) ) {
|
||||
System.out.println("投稿文が長すぎます");
|
||||
continue;
|
||||
}
|
||||
|
||||
/*==========正常入力==========*/
|
||||
|
||||
// 空行を表示する
|
||||
System.out.println();
|
||||
|
||||
// ↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓
|
||||
System.out.println(display[3]);
|
||||
|
||||
// 文字列を出力する
|
||||
System.out.println(str);
|
||||
|
||||
// Submitted(str, display);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 標準入力から1行読み込む+前後の空白を除去する
|
||||
public static String inputString() {
|
||||
|
||||
String str = "";
|
||||
|
||||
try {
|
||||
|
||||
// 標準入力から1行分の文字列を読み取りstrに格納する
|
||||
Scanner sc = new Scanner(System.in);
|
||||
str = sc.nextLine();
|
||||
//sc.close(); // NoSuchElementException
|
||||
|
||||
// 文字列の前後の空白を除去する
|
||||
str = str.strip();
|
||||
|
||||
return str;
|
||||
|
||||
} catch ( NoSuchElementException err ) {
|
||||
|
||||
System.out.println("入力が受け付けられなくなったため、プログラムを終了します。");
|
||||
System.exit(0); // 終了
|
||||
|
||||
} catch ( IllegalStateException err ) {
|
||||
|
||||
System.out.println("入力が受け付けられなくなったため、プログラムを終了します。");
|
||||
System.exit(0); // 終了
|
||||
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
// 空文字判定
|
||||
public static boolean isEmptyInput( String str ) {
|
||||
|
||||
return str.length() == 0 ;
|
||||
|
||||
}
|
||||
|
||||
// 文字数超過判定
|
||||
public static boolean isTooLongInput( String str ) {
|
||||
|
||||
return str.length() > 140 ;
|
||||
|
||||
}
|
||||
|
||||
// 文字数超過判定(上限指定)
|
||||
public static boolean isTooLongInput( String str , int lim ) {
|
||||
|
||||
return str.length() > lim ;
|
||||
|
||||
}
|
||||
|
||||
// 投稿完了時
|
||||
// public static void Submitted( String str , String[] display ) {
|
||||
//
|
||||
// // 空行を表示する
|
||||
// System.out.println();
|
||||
// // ↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓
|
||||
// System.out.println(display[3]);
|
||||
// // 文字列を出力する
|
||||
// System.out.println(str);
|
||||
//
|
||||
// }
|
||||
|
||||
}
|
||||
@@ -1,136 +0,0 @@
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class StringCheck {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
|
||||
// 表示文字列を設定する
|
||||
String[] display;
|
||||
display = new String[4];
|
||||
display[0] = "いまなにしてる?";
|
||||
display[1] = "何も入力されていません";
|
||||
display[2] = "投稿文が長すぎます";
|
||||
display[3] = "↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
|
||||
|
||||
/*==========変数定義==========*/
|
||||
|
||||
String str; // 入力文章
|
||||
// int lim = 10; // 文字数上限
|
||||
|
||||
/*=========動作==========*/
|
||||
|
||||
while (true) { // 空文字or文字数超過→再度入力待機状態に戻る
|
||||
|
||||
/*==========文字列読み取り==========*/
|
||||
|
||||
// いまなにしてる?
|
||||
System.out.println(display[0]);
|
||||
|
||||
// 標準入力から1行読み込む+前後の空白を除去する
|
||||
str = inputString();
|
||||
|
||||
/*==========文字数判定==========*/
|
||||
|
||||
// 空文字判定
|
||||
if ( isEmptyInput(str) ) {
|
||||
System.out.println("何も入力されていません");
|
||||
continue;
|
||||
}
|
||||
// 文字数超過判定
|
||||
if ( isTooLongInput(str) ) {
|
||||
// if ( isTooLongInput(str,lim) ) {
|
||||
System.out.println("投稿文が長すぎます");
|
||||
continue;
|
||||
}
|
||||
|
||||
/*==========正常入力==========*/
|
||||
|
||||
// // 空行を表示する
|
||||
// System.out.println();
|
||||
//
|
||||
// // ↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓
|
||||
// System.out.println(display[3]);
|
||||
//
|
||||
// // 文字列を出力する
|
||||
// System.out.println(str);
|
||||
|
||||
// 空行+↓↓↓↓↓↓ 投稿されました ↓↓↓↓↓↓+文字列出力
|
||||
Submitted(str, display[3]);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 標準入力から1行読み込む+前後の空白を除去する
|
||||
public static String inputString() {
|
||||
|
||||
String str = "";
|
||||
|
||||
try {
|
||||
|
||||
// 標準入力から1行分の文字列を読み取りstrに格納する
|
||||
Scanner sc = new Scanner(System.in);
|
||||
str = sc.nextLine();
|
||||
//sc.close(); // NoSuchElementException
|
||||
|
||||
// 文字列の前後の空白を除去する
|
||||
str = str.strip();
|
||||
|
||||
} catch ( NoSuchElementException err ) {
|
||||
|
||||
System.out.println("入力が受け付けられなくなったため、プログラムを終了します。");
|
||||
System.exit(0); // 終了
|
||||
|
||||
} catch ( IllegalStateException err ) {
|
||||
|
||||
System.out.println("入力が受け付けられなくなったため、プログラムを終了します。");
|
||||
System.exit(0); // 終了
|
||||
|
||||
}
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
// 空文字判定
|
||||
public static boolean isEmptyInput( String str ) {
|
||||
|
||||
return str.length() == 0 ;
|
||||
|
||||
}
|
||||
|
||||
// 文字数超過判定
|
||||
public static boolean isTooLongInput( String str ) {
|
||||
|
||||
return str.length() > 140 ;
|
||||
|
||||
}
|
||||
|
||||
// 文字数超過判定(上限指定)
|
||||
public static boolean isTooLongInput( String str , int lim ) {
|
||||
|
||||
return str.length() > lim ;
|
||||
|
||||
}
|
||||
|
||||
// 投稿完了時
|
||||
public static void Submitted( String str , String display ) {
|
||||
|
||||
// 空行を表示する
|
||||
System.out.println();
|
||||
// システム文字列を出力する
|
||||
System.out.println(display);
|
||||
// 入力した文字列を出力する
|
||||
System.out.println(str);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user