文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>hashmap + readline

hashmap + readline

时间:2010-03-01  来源:huanghaojie

package test;
import java.io.*;
import java.util.HashMap;
public class hashmap {
public void input(){
  HashMap map=new HashMap();
  map.put("1", "lishuo");
  map.put("2", "qinpan");
  System.out.println("请输入学号:");
  BufferedReader strin=new BufferedReader(new InputStreamReader(System.in));
  try {
   String sno=strin.readLine();
   System.out.println(map.get(sno));
  } catch (IOException e) {
   e.printStackTrace();
  }
}
public static void main(String[] args) {
  new hashmap().input();
}

}
  http://zhidao.baidu.com/question/98092619.html?fr=ala0
相关阅读 更多 +
排行榜 更多 +
建筑模拟器最新版

建筑模拟器最新版

模拟经营 下载
素人改造师最新版

素人改造师最新版

模拟经营 下载
外星战士幸存者手机版

外星战士幸存者手机版

飞行射击 下载