Java例外処理練習
Main.java
public class Main { public static void main(String[] args) throws Exception { String str1 = "apple"; String str2 = ""; boolean bool1 = str1.isEmpty(); boolean bool2 = str2.isEmpty(); System.out.println("bool1 : " + bool1); System.out.println("bool2 : " + bool2); } }