Monday, 12 October 2015

Run a line in java

RUN A LINE IN JAVA
  • Open net-beans.
  • Right click on project to open java class.
  • Code editor window will open.
  • Public class should be untouched.
  • Red line shows error.
SOURCE CODE



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

/**
 *
 * @author sarita
 */
public class NewClass {
    public static void main(String args[]){
        System.out.println("java");
    }

}
CODE TO BE WRITTEN



public static void main(String args[]){
System.out.println("java");












No comments:

Post a Comment