Java programme to print name . java programme to print string .

package google ;
import java.util.Scanner;
public class nilesh {
    public static void main (String args []){
        Scanner s=new Scanner (System.in);
        String   name =s.nextLine();
        System.out.println("Hello "+name+" have a good day");
        }}

Comments

Popular posts from this blog

Create an array of 5 floats and calculate their sum in java .