Created
May 22, 2015 04:52
-
-
Save nvsofts/f6f0eaf32df93748b106 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [nvsofts@aya ~]$ cat Test.java | |
| import java.lang.*; | |
| import java.io.*; | |
| public class Test | |
| { | |
| public static void main(String[] args) | |
| { | |
| String company = "未経験者、中途者の熱意"; | |
| int i = Integer.parseInt(company); | |
| while (true) { | |
| if (i == 0) { | |
| break; | |
| } | |
| System.out.println("笑顔"); | |
| } | |
| } | |
| } | |
| [nvsofts@aya ~]$ java Test | |
| Exception in thread "main" java.lang.NumberFormatException: For input string: "未経験者、中途者の熱意" | |
| at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) | |
| at java.lang.Integer.parseInt(Integer.java:492) | |
| at java.lang.Integer.parseInt(Integer.java:527) | |
| at Test.main(Test.java:9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment