新10 1-
469:仕様書無しさん / :
import java.util.Hashtable;
public class Test{
public static void main(String[] av){
try {
Hashtable data = null;
data.put("1", "こくご");
data.put("2", "さんすう");
data.put("3", "りか");
data.put("4", "しゃかい");
System.out.println(data.get("1"));
System.out.println(data.get("2"));
System.out.println(data.get("3"));
System.out.println(data.get("4"));
} catch ( NullPointerException e ) {
System.out.println("ガッ!");
}
}
}
最終版

ir ver 1.0 beta2.2 (03/10/22)