Forum
Tipps
News
Menu-Icon

netbeans anfängerproblem

Hallo !
Ich versuche mit Net beans zu programmieren aber ich schaffe es nicht ich will HelloWorldApp schreiben.
Zuerst habe ich das Project erstellt dann kommt das :
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package helloworldapp;

/**
 *
 * @author 123
 */
public class HelloWorldApp {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
    }

}

Aber beim Tutorial steht ich muss da etwas noch dazuhinfügen
das :
Adding Code to the Generated Source File

Because you have left the Create Main Class checkbox selected in the New Project wizard, the IDE has created a skeleton class for you. You can add the "Hello World!" message to the skeleton code by replacing the line:

            // TODO code application logic here
     

with the line:

            System.out.println("Hello World!");
     

Save the change by choosing File > Save.

The file should look something like the following:

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package helloworldapp;

/**
 *
 * @author Sonya Bannister
 */
public class HelloWorldApp {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
            System.out.println("Hello World!");
    }

}

Ich versteh das nicht ich habe es auf Deutsch übersetzt aber ich verstehe das nicht vieleicht könnt ihr mir helfen.

Danke
      


Antworten zu netbeans anfängerproblem:

Was verstehst du da jetzt genau nicht?
Wenn du ein Projekt anlegst, werden einige Sachen schonmal für dich generiert: Eine Klasse mit der main()-Methode. Die brauchst du ja auf jeden Fall. Du musst nur noch deinen Code hinzufügen (damit das Programm auch was macht), in diesem Fall eben das "System.out.println("Hello World!");".


« dev c++ 5 hilfeC# Programm soll "Speicherpunkte" haben - Wie? »
 

Fremdwörter? Erklärungen im Lexikon!
ARPAnet
APRAnet bezeichnet den Vorläufer des Internets. Der Vorläufer wurde von der ARPA (Advanced Research Projects Agency), einer US-amerikanischen Forschungsgemeinsc...

Ethernet
Siehe Netzwerk. ...

Internet
Das Internet, ein aus den Worten "International" und "Network" zusammengesetzter Begriff, ist ein globales Netzwerk (WAN: Wide Area Network), das eine Vielzahl von Comput...