Created
March 29, 2019 13:46
-
-
Save AuroraNorthernQuarter/59d38331c6f4ba180f93ceadb685ac8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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