package homework006; public class Worker { private int age; private String name; private double salary; public Worker() { } public Worker(String name, int age, double salary) { this.name = name; this.age = age; this.salary = salary; } public int getA
package homework003; import java.util.ArrayList; import java.util.List; public class Text { public static void main(String[] args) { List<Student> list = new ArrayList<>(); list.add(new Student("Tom",18,100,"class05")); lis
//Student package zuoye; public class Student { private String name; private int age; private int score; private String classNum; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { re
String转int String str = "123"; int a = Integer.parseInt(str); System.out.println(a); Integer b = Integer.valueOf(str); System.out.println(b); int c = Integer.valueOf(str).intValue(); System.out.println(c); int转化为String int i = 123; String s = St