根据'西服','衬衫','卫衣','夹克','T恤','风衣','羽绒服','针织衫','唐装', '牛仔裤','休闲裤','短裤','运动裤','加绒裤'’写一段java搭配代码
时间: 2023-10-23 22:37:23 浏览: 148
public class Outfit {
private String suit = "西服";
private String shirt = "衬衫";
private String hoodie = "卫衣";
private String jacket = "夹克";
private String tshirt = "T恤";
private String trenchCoat = "风衣";
private String downJacket = "羽绒服";
private String sweater = "针织衫";
private String tangSuit = "唐装";
private String jeans = "牛仔裤";
private String casualPants = "休闲裤";
private String shorts = "短裤";
private String sportsPants = "运动裤";
private String fleecePants = "加绒裤";
public void outfitCombination() {
System.out.println("今天可以选择以下搭配:");
System.out.println("1. " + suit + "配" + shirt);
System.out.println("2. " + hoodie + "配" + jeans);
System.out.println("3. " + jacket + "配" + tshirt);
System.out.println("4. " + trenchCoat + "配" + casualPants);
System.out.println("5. " + downJacket + "配" + shorts);
System.out.println("6. " + sweater + "配" + jeans);
System.out.println("7. " + tangSuit + "配" + casualPants);
System.out.println("8. " + sportsPants + "配" + tshirt);
System.out.println("9. " + fleecePants + "配" + hoodie);
}
public static void main(String[] args) {
Outfit outfit = new Outfit();
outfit.outfitCombination();
}
}
阅读全文