Skip to content

Instantly share code, notes, and snippets.

Created June 2, 2012 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2858232 to your computer and use it in GitHub Desktop.
Save anonymous/2858232 to your computer and use it in GitHub Desktop.
/********************************************
*
* クラス概要: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