int oneMillion = 1_000_000;
System.out.println((oneMillion * 2) + "---" + oneMillion);
byte aByte = (byte) 0b1000;
short aShort = (short) 0b010;
System.out.println(aByte + "-" + aShort);
try(InputStream is = new InputStream(file);) {
} catch (Exception e) {}
try {
Class cls = Class.forName("chb.test.reflect.Student");
Method m = cls.getDeclaredMethod("方法名", new Class[]{int.class, String.class});
m.invoke(cls.newInstance(), 20, "chb");
} catch (Exception e) {
e.printStackTrace();
}
近期评论