LexarG56

Generation

generate functionSun, 18 Jun 2023

hacer un programa que solicite tu nombre y lo almacene.

public class Hello { public static void main(String[] args) { System.out.println("Enter your name: "); Scanner sc=new Scanner(System.in); String name=sc.nextLine(); System.out.println("Welcome "+name); } }

Questions about programming?Chat with your personal AI assistant