Computer Science, asked by moumitasaha75, 10 months ago

accept a name from the user and print welcome message in java​

Answers

Answered by laksiya08
6

Answer:

import java.util.*;

{

public static void main(String[] args)

 {

 String s;

Scanner sc = new Scanner(System.in);

System.out.println(“Enter Your Name”);

s = sc.nextLine( );

System.out.println(“Welcome” + s);

}

}

  Hope it helped  

Answered by pshantiraj123
0

Answer:

3

Explanation:

xbtjtwttwjstjsgkgseysgksgngsn

Similar questions