Skip to content

Instantly share code, notes, and snippets.

@AuroraNorthernQuarter
Created March 29, 2019 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AuroraNorthernQuarter/59d38331c6f4ba180f93ceadb685ac8d to your computer and use it in GitHub Desktop.
Save AuroraNorthernQuarter/59d38331c6f4ba180f93ceadb685ac8d to your computer and use it in GitHub Desktop.
package testprogramm;
import java.io.*;
public class Kajikimagurokatsu {
String keyboardIn(){
String str="";
try{
BufferedReader br = new BufferedReader
(new InputStreamReader(System.in));
System.out.println("文字を入力してください。");
str = br.readLine();
System.out.println(str + " が入力されました。");
}catch(IOException e){
System.out.println("例外" + e + "が発生しました");
}finally{
}
return str;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment