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/27 14:42:23

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