public class hello world{ public static void main(String[] args){ System.out.println(); } }
注意事项:
public static void main(String[] args){
}
文档注释(可解析,生成到当前目录文件夹下):文档注释是生成类似于说明书作用的效果
格式:/**...*/
作业
答案:
代码:
package com.company; public class Main { public static void main(String[] args) { System.out.println("HelloWorld"); System.out.println("姓名:T&K"+‘\n‘+"性别:男"+‘\n‘+"籍贯:新疆"+‘\n‘+"住址:吃饭学院"); System.out.println(‘\t‘+"*"+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+"*"+‘\t‘ +‘\n‘+"*"+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘+"I Love You"+‘\t‘+‘\t‘+"*"+"\t"+‘\t‘+"*" +‘\n‘+‘\t‘+"*"+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+"*"+‘\t‘ +‘\n‘+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘ +‘\n‘+‘\t‘+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘+‘\t‘ +‘\n‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘+‘\t‘+‘\t‘ +‘\n‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘+"*"+‘\t‘+‘\t‘+‘\t‘+‘\t‘+‘\t‘); // write your code here } }
截图:
原文:https://www.cnblogs.com/KeepCalmAndNeverSayNever/p/10055262.html