My Channel

JAVA CODING SERIES | EPISODE 2:JAVA PRINT STATEMENT| HOW TO PRINT IN JAVA | SYNTAX OF JAVA | LEARN HERE EASILY | VIEW,READ,SHARE,FOLLOW,SUBSCRIBE,COMMENT,REVIEW

 JAVA CODING SERIES

EPISODE 2: SYNTAX OF JAVA


HEY GUYS,

Today we will see about the 'Syntax of Java'. The Syntax of java is very simple and easy to understand and we will go through it in a Minute.

Before going into this post, be sure to visit: Want to Receive Notifications from our Blog? Be sure to Subscribe.

Now, lets dive right into the Topic.



JAVA'S SYNTAX

In the Last Episode, we saw about 'What is Java, Uses of Java and basically the Introduction of Java'.

But today, in this Episode we will see on how to print anything.

Java has an easy to read syntax and today we will see how to print something.

So,

1.Go to your Java IDE.

2.Then,Copy and Paste the Following Code:

import java.io.*;

class firstprogram

  {

      public static void main(String[] args)

      {

           System.out.println("My First Java Program.");

        }

  }


The above is the Syntax and printing 'My First Java Program'.

1.We Have first Imported the 'java.io.*;' to import all the Basic contents. This is not necessary for printing but is useful for other big Programs.

2.We have written the Class name which is the Name of the File. Remember: the File name should end with '.java'.

3.Then a Curly braces and Make the Program public with the 'public static void main(String[] args)'.

4.Again a Curly Brace and here we write 'System.out.println("My First Program or Something else.")'

5.This is the steps to Print a Statement.



Thanks, Michel - The Blog Author.

Hope you enjoyed todays post

Meet you on the next post, Until then Bye!

Please VIEW,READ,SHARE,FOLLOW,SUBSCRIBE,COMMENT,REVIEW

Please share this blog with 20 of your friends and family

By the Blog Author.

Post a Comment

0 Comments