Programming Shortcut

Write, Run and execute Your programs with simple and esay way by Programming Shortcut

Monday, February 4, 2019

How to Print Hello Message in Java

Hello Friends! Welcome to Programming Shortcut

In this session, we discuss basic concept of Java programming and what is the basic structure of Java programming.
Java Program to print simple hello message and hello message with Name, input given by using java language. You can use this program both error(compiler and runtime error) free programs just copy and paste the programs and save your time.
Programming Shortcut is helping you in your programming and you make program faster than other

How to Print simple Hello Message in Java Language?


----------------- Code Start -----------------------

public class hello {
 public static void main(String Args[]) {
        System.out.println("Hello Word!");
    }
}

------------------Code End-------------------


Output: Hello Word!

How to Print simple programmer name with Hello message in Java Language?


 ----------------- Code Start -----------------------

public class hello {
 public static void main(String Args[]) {
        System.out.println("Hello Ravi Vishwakarma");
    }
}
------------------Code End-------------------


Output: Hello Ravi Vishwakarma

How to print username and hello message in Java language?


----------------- Code Start -----------------------
import java.util.*;
public class Name_by_user {
    public static void main(String args[]) {
        String name;
        Scanner c = new Scanner(System.in);
        System.out.println("Please Enter Your name: ");
        name = c.nextLine();
        System.out.println("Welcome to my Website " + name);
    }
}
------------------Code End-------------------


Output:  Please Enter Your Name: Ravi Vishwakarma
             Welcome to my Website Ravi Vishwakarma

I make this programming and hope you are like the post if are you like the post you can please comment and Share the post to reach more people.
If any dought about this java programming code or input & output please comment below
If you have other question about java programming send an email by contacting us form are given on page right side.
Thank You!





Newer Post Older Post Home

About Programming Shortcut

This is a programming learning website that can help you learn and when your write your programming code. And all programming code is compiled run programming code in the following programming language C, c++, Java, php and Javascript Languages. find your programming read, understand the programming then copy and past and run your program and save your golden time to typing the program becuse you learn more in leas time. All Programming is codeing is ease to understand the programming