用Java代码写一个爱心

public class ax {

public static void main(String[] args) {

char a='\u2764';

//1

System.out.print(" ");

System.out.print(a );

System.out.print(a);

System.out.print(a );

System.out.print(" ");

System.out.print(a );

System.out.print(a);

System.out.println(a );

//2

System.out.print(" ");

System.out.print(a );

System.out.print(" ");

System.out.print(a );

System.out.print(" ");

System.out.print(a );

System.out.print(" ");

System.out.println(a );

//3

你可能感兴趣的:(java)