Tuesday 25 September 2012

Java Lesson 1- Welcome to Crazyscience Family

Our first lesson is an extremely simple program which priints " Welcome to Crazyscience Family". The about mentioned sequence of words will be printed in java.

Java Program is defined by public class that takes the form:


Syntax:

       public class program-name
       {
       optional variable declarations and methods
       public static void main(String[] args);
       {
       Statements
       }
       optional variable declaration and methods
       }

Program:
   
  This program explains the method to print "welcome to Crazyscience Family" using java. write the program in a notepad and save it as crazyscience.java and then import to the java software and run it to display the result.

public class Crazyscience
{
public static void main(String[] args)
{
System.out.println("Welcome to Crazyscience Family");
}
}

For any errors and doubts, please feel free to mail at jjenishmech@gmail.com

Download the free java software through the link below

Java Software Link

1 comments:

very proud of U dear macho :)

Post a Comment

Blogroll

free counters