写个自我介绍Java代码
public class SelfIntroduction { public static void main(String[] args) { String name = "Ai"; int age = 25; String occupation = "AI Language Model"; String[] interests = {"Coding", "Reading", "Traveling"};
System.out.println("Hi, my name is " + name + ".");
System.out.println("I am " + age + " years old.");
System.out.println("Currently, I work as an " + occupation + ".");
System.out.println("My interests include:");
for (String interest : interests) {
System.out.println("- " + interest);
}
} }
原文地址: https://www.cveoy.top/t/topic/bKSk 著作权归作者所有。请勿转载和采集!