???????????????У????????????????????е??£???Java?????????c?????????????scanf()??C++??????????cin()??????????????????????Java?????????????????????????????????????????????????????????????????

??????????г??????????

????????????????????????????????????????

public static void main(String [] args) throws IOException{
System.out.print("Enter a Char:");
char i = (char) System.in.read();
System.out.println("your char is :"+i);
}
}

????????????????????????????????????System.out.read()?????????????????????????????????????????????char???????????????????????????????????????????????????????????е???????????????????鷳??

??????????????????????????????????????????????????????У???????????BufferedReader???InputStreamReader??

public static void main(String [] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
System.out.println("Enter your value:");
str = br.readLine();
System.out.println("your value is :"+str);
}

????????????????????????????????

??????????????????????????????????????Scanner??

public static void main(String [] args) {
Scanner sc = new Scanner(System.in);
System.out.println("???????????????");
String name = sc.nextLine();
System.out.println("?????????????");
int age = sc.nextInt();
System.out.println("?????????????");
float salary = sc.nextFloat();
System.out.println("?????????£?");
System.out.println("??????"+name+" "+"????"+age+" "+"?????"+salary);
}

??????δ????????????Scanner?????????????????????????????float??????????????????СС???????????????????????????