/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ejercicios; import java.util.Scanner; /** * * @author roshka */ public class Ejercicio04 { public static void main(String[] args) { // TODO code application logic here String nombre; Scanner scn = new Scanner(System.in); System.out.println("Introduzca su nombre: "); nombre = scn.nextLine(); System.out.println("Bienvenido "+nombre); } }