Created
June 2, 2012 12:44
-
-
Save anonymous/2858232 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
/******************************************** | |
* | |
* クラス概要:Javaクイズ「ジョセフには気をつけろ!」 | |
* | |
* 内容:元ネタはとあるセミナーで出題されたクイズです。 | |
* | |
* 作成者:(不明) | |
* | |
* 作成日時:(不明) | |
* | |
********************************************/ | |
import java.util.*; | |
public class JojoFamily{ | |
private static HashMap<String, String> jojo | |
= new HashMap<String, String>(3); | |
public void JojoFamily(){ | |
jojo.put("ジョジョ","ジョナサン・ジョースター"); | |
jojo.put("ジョジョ","ジョセフ・ジョースター"); | |
} | |
public static int getSize(){ | |
return jojo.size(); | |
} | |
public static void main(String[] args){ | |
JojoFamily family = new JojoFamily(); | |
System.out.println(family.getSize()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment