forked from P1-FemCoders-VLC/java-variables
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAboutMe.java
More file actions
24 lines (20 loc) · 1.18 KB
/
AboutMe.java
File metadata and controls
24 lines (20 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public class AboutMe {
public static void main(String[] args) {
//inicializar una variable (del tipo que veas conveniente) para cada uno de los siguentes datos: nombre, edad, país, lenguaje de programación, horas, pasatiempo, lugar y reemplaza en el texto de impresión, la variable que corresponda.
String name = "Maria";
byte age = 18;
String country = "Spain";
String programmingLanguage = "JAVA";
byte hours = 10
;
String hobby = "DIY";
String location = "Valencia";
//Escribe tu código aquí
//Reemplaza <name> y <age> concatenando el String con las variables creadas.
System.out.println("Mi nombre es " + name + ", tengo " + age + " años y soy de " + country + ".");
//Reemplaza <programmingLanguage> y <hours> concatenando el String con las variables creadas.
System.out.println("Estoy estudiando " + programmingLanguage + " y practico " + hours + " horas al día.");
//Reemplaza <hobby> y <place> concatenando el String con las variables creadas.
System.out.println("Mi pasatiempo favorito es " + hobby +" y lo practico en " + location + ".");
}
}