Featured Post

Menu Driven Programs #2 | Java Programming Project

Write a Program For An Electronic Shop that has announced the following Seasonal Discounts on the purchase of certain items. So, now let us start with our  menu driven programming in java Java programming code    Here we have created a variable 't' To store the Choice of Laptop or Desktop.If-Else loop to check The Discount Available for that Price range on Either Laptop or Desktop and to display an Error message if wrong choice is entered. Finally, We Print the Net Amount to be Paid by using the formula(net=amt-dis). If, you have any questions related , Please Do not Hesitate to contact me and Do make sure to follow my blog. Regards, Adi075  (Author) #PEACEOUT

First Program in Java!

Hello World!

Your First Program for any Programming Language is called as "Hello World".
This is because The programmer gets to know about the basic syntax of Any programming language for the first time.
So, Let us start with HelloWorld in Java!



This is the most basic program in Java which is written by every beginner in Java including myself.
Here, As you can notice- HelloWorld is the name of Class which I have used but you can give it any Class Name.
public is the Access Specifier which gives the main method public access.
println stands for Print Line and inside this method we have our line("Hello, World!)
Putting semicolon in front of Every Line is necessary or the compiler gives an Error! 

Now lets Compile and Run The program with the Help of BlueJ IDE





So here are a few Screenshots of the Program.

Hope you liked this Post. Please do like and Share this blog. Do not forget to Follow me!And as always feel free to Ask any questions.


Comments

Popular posts from this blog

Let Us Talk about Java! #1

Menu Driven Programs #1 | Java Programming Project