Wednesday, 30 March 2016

HOW TO PRINT DIFFERENT VALUE IN JAVA

Hello Reader This Is A First Program In Java To Print A Given  Massage . Here Remember One Thing Java Is Very Case Sensitive Language  So Be Carefully

TIPS:- 

1. Import All Necessary Header File Or Library Or Package What Ever You Called Them .

2.Class Name Should Contain Only Alphabet ( Upper & Lower Case ) Or _ ( Underscore )

3.Class Name And Java Program Name Should Be Shame Name Ex: Class hello And When You Save  The Program It Should Be hello.java 

4.Use Best Editor For Write A Java Program Instead Of NOTEPAD You Can Use NOTEPAD++ or SUBLIME TEXT

5.If  You Need Any Help Our Expert Always With You Here Your Java Expert is "Prashant Chaturvedi  Sir"

class Program2
{
    public static void main(String[] args)
    {
    System.out.println(123456789);
    System.out.println(235.254);
    System.out.println('P');
    System.out.println(true);
    System.out.println("Prashant");

    }
}
Output:-

www.programmingwithbasics.com/

2 comments:
Write comments
  1. How to convert character to ascii value

    ReplyDelete

Recommended Posts × +