摘要:
File file = new File("C:\\Users\\Administrator\\Desktop\\test.txt");FileReader f = new FileReader(file);BufferedReader bf = new BufferedReader(f); Str 阅读全文
摘要:
BeanUtils.copyProperties("要转换的类", "转换后的类"); subString的用法,两个参数的用法,(起始位置,终止位置),如果确定了起始位置和终止位置的数,可以配置indexof()使用例子 StringBuilder s = new StringBuilder("s 阅读全文
摘要:
public class Test5 { public static void main(String[] args) { int j; for(int i= 2;i<=200;i++){ j=2; while (i%j!=0){ j++; if(i==j){ System.out.println( 阅读全文
摘要:
String类型转换为int类型? String s = "123"; int i= Integer.parseInt(s); String类型转换为double类型? String s = "123"; double d = Double.parseDouble(s); Int类型、Double类 阅读全文