Skip to content

Commit 01f4258

Browse files
Add-Arrays.Java
1 parent 3045161 commit 01f4258

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

src/test/java/com/example/App.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.example;
2+
3+
public class App {
4+
5+
public static void main(String[] args) {
6+
System.out.println();
7+
System.out.println();
8+
System.out.println("MInha Aplicação Java\n");
9+
10+
// TIpo nomeDaVariavel;
11+
var idade = 10;
12+
var peso = 80.55;
13+
System.out.println("Idade é " + idade + " Peso é " + peso);
14+
var sexo = 'M';
15+
System.out.println("Sexo: " + sexo);
16+
var nessecidadesEspeciais = false;
17+
System.out.println("Tem necessecidades especiais: " + nessecidadesEspeciais);
18+
19+
}
20+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.example;
2+
3+
import java.util.Arrays;
4+
5+
public class AppArrays {
6+
public static void main(String[] args) {
7+
int x = 10 ;
8+
System.out.println(x);
9+
10+
x = 20;
11+
12+
System.out.println(x);
13+
double vetorDouble [] = {10, 20, 30};
14+
System.out.println(Arrays.toString(vetorDouble));
15+
16+
}
17+
18+
}

0 commit comments

Comments
 (0)