Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/main/java/VariablesAndArrays.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class VariablesAndArrays {
*/
public int declareInt() {

// Tu código aquí
int age = 30;

// Sustituye el 0 por tu variable ¡pero no borres el return!
return 0;
return age;
}

/**
Expand All @@ -21,10 +21,10 @@ public int declareInt() {
*/
public boolean declareBoolean() {

// Tu código aquí
boolean isActive = true;

// Sustituye el false por tu variable
return false;
return isActive;
}

/**
Expand All @@ -35,11 +35,11 @@ public boolean declareBoolean() {
*/
public char declareChar() {

// Tu código aquí
char initial = 'J';


// Sustituye el espacio por tu variable
return ' ';
return initial;
}

/**
Expand All @@ -50,10 +50,10 @@ public char declareChar() {
*/
public String[] declareStringArray() {

// Tu código aquí
String[] names = { "Ana", "Luis", "Marta" };

// Sustituye new String[0] por la variable 'names'
return new String[0];
return names;
}


Expand Down
Loading