Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class B10207081_1{
- public static void main(String args[]){
- show();
- show(8,2);
- show(3,5,9);
- System.out.println("B10207081");
- System.out.println("==============================");
- }
- public static void show(){
- System.out.print("show()=");
- for(int i=0;i<9;i++){
- System.out.print("*");
- }
- System.out.print("\n=========================\n");
- }
- public static void show(int m, int n){
- System.out.println("m="+m+" n="+n);
- if(m>n)
- System.out.println("最大值:"+m);
- else
- System.out.println("最大值:"+n);
- System.out.println("==============================");
- }
- public static void show(int a1, int a2, int a3){
- System.out.println("a1="+a1+" a2="+a2+" a3="+a3);
- System.out.println("a1+a2+a3="+(a1+a2+a3));
- System.out.println("==============================");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement