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 otheri want to know how to write an application,not the meaning in

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/30 17:10:26

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