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" + "*");
    }

}
View Code

 输出结果:

93
42
9
* *

 

把心形输出注掉了

posted on 2018-03-23 11:07  linxi1934  阅读(133)  评论(0编辑  收藏  举报