作业帮 > 综合 > 作业

how to write this java program?

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/10/01 22:52:33
how to write this java program?
write an application that prints the phrase "Knowledge is power":
a.on one line
b.on three lines,one word per line,with the words ccentered relative each other
i want to know how to write an application,not the meaning in Chinese.
public class MyFirstProgram{
public static void main(String args[]){
System.out.println("Knowledge is power");
System.out.println("Knowledge"); is power
System.out.println(" is ");
System.out.println(" power ");
}
}