Skip to content

Entrega del reto finalizado - #26

Closed
joseluis-0908 wants to merge 1 commit into
curso-java-marshall-bits:mainfrom
joseluis-0908:main
Closed

joseluis-0908 wants to merge 1 commit into
curso-java-marshall-bits:mainfrom
joseluis-0908:main

Conversation

@joseluis-0908

Copy link
Copy Markdown

No description provided.


// Sustituye el false por tu variable
return false;
return true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En este caso la variable se llama "isActive", por tanto sería return isActive.


// Sustituye el espacio por tu variable
return ' ';
return 'J';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aquí también sería return initial

@Marshall-Bits

Copy link
Copy Markdown
Contributor

Buen comienzo Joseluis. Veo que tal vez haya alguna duda entre el concepto "variable" y el concepto "valor". Una variable contiene un valor. Es como una caja en la que podemos guardar Strings, Booleans, Objetos, Arrays... Y cuando pedimos en un ejercicio sustituir un valor por una variable nos referimos a que en lugar de cambiar de true a false, pongamos el nombre de una variable, por ejemplo: boolean isAdult = true; y al final del método ponemos: return isAdult. De esta forma le damos opción a que la variable cambie el valor.
Te recomiendo que hagas una nueva pull request y consultes en discord si tienes alguna duda.
Un saludo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants