问题:实际参数与形参列表长度不同,难道不能同时输出多个字符串吗?怎么改啊?
问题:实际参数与形参列表长度不同,难道不能同时输出多个字符串吗?怎么改啊?1. public class Tips{
public static void main(String args[],String args[],String args[]){
System.out.println("1001\r\n","c++\r\n","Tips");
}
}
2. public class Ge{
public static void main(int a,int b){
System.out.println("0 & 0 is %d\r\n",0 & 0);
System.out.println("0 & 1 is %d\r\n",0 & 1);
System.out.println("1 & 1 is %d\r\n",1 & 1);
}
}