FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hello-java/basic/c05_structures/StructuresExercises.java at main · mouredev/hello-java · GitHub
mouredev
/
hello-java
Public
Notifications
You must be signed in to change notification settings
Fork
414
Star
4.5k
Code
Issues
0
Pull requests
3
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
hello-java
/
basic
/
c05_structures
/
StructuresExercises.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (19 loc) · 1 KB
Breadcrumbs
hello-java
/
basic
/
c05_structures
/
StructuresExercises.java
Copy path
File metadata and controls
32 lines (19 loc) · 1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package
basic
.
c05_structures
;
/*
Clase 44 - Ejercicios: Estructuras
Vídeo: https://youtu.be/JOAqpdM36wI?t=15680
*/
public
class
StructuresExercises
{
public
static
void
main
(
String
[]
args
) {
// 1. Crea un Array con 5 valores e imprime su longitud.
// 2. Modifica uno de los valores del Array e imprime el valor del índice antes y después de modificarlo.
// 3. Crea un ArrayList vacío.
// 4. Añade 4 valores al ArrayList y elimina uno a continuación.
// 5. Crea un HashSet con 2 valores diferentes.
// 6. Añade un nuevo valor repetido y otro sin repetir al HashSet.
// 7. Elimina uno de los elementos del HashSet.
// 8. Crea un HashMap donde la clave sea un nombre y el valor el número de teléfono. Añade tres contactos.
// 9. Modifica uno de los contactos y elimina otro.
// 10. Dado un Array, transfórmalo en un ArrayList, a continuación en un HashSet y finalmente en un HashMap con clave y valor iguales.
}
}
Back
|
FazBrowse Home
|
New Git URL