任务一:在控制台输出: Wonderful Java world
public class Exercise1 {
public static void main(String[] args) {
//控制台输出
System.out.println("Wonderful Java world");
}
}
任务二:使用转义符在控制台输出扑克牌的样式
public class Exercise2 {
public static void main(String[] args) {
System.out.print("* * * * * * * * *\n");
System.out.print("* 10\t\t*\n");
System.out.print("*\t\t*\n");
System.out.print("*\t\t*\n");
System.out.print("*\t◇\t*\n");
System.out.print("*\t\t*\n");
System.out.print("*\t\t*\n");
System.out.print("* 10 *\n");
System.out.print("* * * * * * * * *\n");
}
}
任务三:使用转义符“\n”和“\t”打印课程表
public class edd {
public static void main(String[] args) {
System.out.println(" 课程表\n");
System.