标签:sys add pkg pack test ++ pac hashset i++
package pkg30;
public class Test15{
public static void main(String[] args){
for(int i=1;i<10;i++){
for(int j=1;j<=i;j++){
System.out.println(i+"*"+j+"="+i*j);
System.out.println("");
}
System.out.println("");
}
}
}
public class Test{
public static void main(String args[ ]){
Set<Integer>mySet=new HashSet<Integer>();
mySet.add(123);
mySet.add(1233);
mySet.add(123456);
for(int x:mySet){
System.out.println(x);
}
Car c1=new Car();
Car c2=new Car();
System.out.println("car1:"+c1);
System.out.println("car2:"+c2);
Map<String,Car>myMap=new HashMap<String,Car>();
myMap.put("粤A88888",c1);
myMap.put("粤A66666",c2);
System.out.println(myMap.size());
Car c3=myMap.get("粤A66666");
System.out.println(c2==c3);
System.out.println("car3:"+c3);
}
}
标签:sys add pkg pack test ++ pac hashset i++
原文地址:https://www.cnblogs.com/l2760186162/p/10964196.html