它在我的桌面上,如果你可以一步一步告訴我如何運行這個程序。我知道javac編譯程序。我如何從我的Windows電腦的命令行運行這個Java程序?
public class SimpleProgram {
public static void main(String[] args){
System.out.println("A proverb");
String Proverb = "Practice makes perfect!";
System.out.println("Proverb");
int CharacterCount = Proverb.length();
Syetem.out.println("The Proverb has "+CharacterCount + "Characters");
}
}
有關於如何做到這一點,包括這個問題http://stackoverflow.com/questions/1279542/how-to-execute-a-java許多指針-class-from-the-command-line or this one http://stackoverflow.com/questions/2864622/how-do-i-run-class-files-on-windows-from-command-line – madth3