class Girl { double weight; String name,hair; int age,high; int year=12; int month() { return (age*year); } } public class Girlfriend { public static void main(String [] args) { System.out.println("接下来由胡宇洋的女朋友们做自我介绍"); Girl Girl1,Girl2,Girl3; Girl1=new Girl(); Girl2=new Girl(); Girl3=new Girl(); Girl1.high=175; Girl1.weight=90; Girl1.name="Lisa"; Girl1.hair="黑长直"; Girl1.age=19; Girl2.high=165; Girl2.weight=180; Girl2.name="Alice"; Girl2.hair="双马尾"; Girl2.age=18; Girl3.high=150; Girl3.weight=75; Girl3.name="Jenny"; Girl3.hair="短发"; Girl3.age=15; System.out.println("人家叫"+Girl1.name); System.out.println("今年 "+Girl1.month()+"个月大了"); System.out.println("人家是"+Girl1.hair); System.out.println("人家"+Girl1.weight+"斤 "+"身高"+Girl1.high+"\n"); System.out.println("我叫"+Girl2.name); System.out.println("今年 "+Girl2.month()+"个月了"); System.out.println("人家是"+Girl2.hair); System.out.println("人家"+Girl2.weight+"斤 "+"身高"+Girl2.high+"\n"); System.out.println("人家叫"+Girl3.name); System.out.println("今年 "+Girl3.month()+"个月大了"); System.out.println("人家是"+Girl3.hair+"哦"); System.out.println("人家"+Girl3.weight+"斤 "+"身高"+Girl3.high+"\n"); } }