Skip to content

Instantly share code, notes, and snippets.

@AuroraNorthernQuarter
Created March 30, 2019 07:29
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/163a96cc254cd0fd2e12e560ef519338 to your computer and use it in GitHub Desktop.
Save AuroraNorthernQuarter/163a96cc254cd0fd2e12e560ef519338 to your computer and use it in GitHub Desktop.
package testprogramm;
import java.io.*;
public class Kajikimagurokatsu {
public static void main(String[] args) {
Kajikimagurokatsu ka = new Kajikimagurokatsu();
ka.keyboardIn();
}
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