import java.lang.*;
import javax.swing.*;
import javax.swing.text.IconView;
public class Xample_3 {
public void Str (String...strings){
for(int i=0; i<strings.length;i++){
System.out.println(strings[i]);
}
}
public void Int(int...is){
int isall = 0 ;
for(int i=0;i<is.length;i++){
isall = isall + is[i];
}
System.out.println(isall);
}
public static void main(String[] args) {
Xample_3 xample_3 = new Xample_3();
xample_3.Str("aaaa","bbbb","cccc");
xample_3.Int(1,2,3);
}
}
结果:
aaaa
bbbb
cccc
6