public class Love { public static void main(String[] args) { System.out.println( " *"+"\t"+"\t"+"\t"+" *"+ '\n'+"* "+"*"+" "+"I LOVE YOU "+"*"+" *"+ '\n'+" *"+"\t"+"\t"+"\t"+" *"+ '\n'+" *"+"\t"+"\t"+"\t"+"*"+ '\n'+" *"+"\t"+"\t"+" *"+ '\n'+" *"+"\t"+"\t"+" *"+ '\n'+"\t*"+"\t"+" *"+ '\n'+"\t"+" *" ); System.out.println('*' + '\t' + '*');//42+9+42 char c1 = '*'; char c2 = '\t'; int i = c1; System.out.println((int)c1); System.out.println((int)c2); System.out.println("*" + "\t" + "*"); } }
输出结果:
93
42
9
* *
把心形输出注掉了