做一猥瑣的而高潔的單身狗

karspb發表於2021-09-09

import java.util.Scanner;
public class SingleDog {
String name;
String sex;
int age;
String num;
String obj;
SingleDog(String num,String name,String sex,int age,String obj){
this.num=num;
this.name=name;
this.age=age;
this.sex=sex;
this.obj=obj;
}
public String toString(){
return "我是:"+num+"號n我叫:"+name+"("+sex+")n今年:"+age+"歲n物件:"+obj;
}

static SingleDog[] single=new SingleDog[1];
static void gg(){
    single[0]=new SingleDog("001","小強","男",25,"沒有");
    System.out.println(single[0]);
}
static void hh(){
    Scanner in=new Scanner(System.in);
    System.out.println("今天是520,想找個美女一起過");
    System.out.println("美女請輸入:520");    
    for(int i=1;i

}

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2001/viewspace-2807796/,如需轉載,請註明出處,否則將追究法律責任。

相關文章