Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 25, 2020 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a77984fce73e3a5c413c06a745d413f3 to your computer and use it in GitHub Desktop.
Save parzibyte/a77984fce73e3a5c413c06a745d413f3 to your computer and use it in GitHub Desktop.
int entero = 123;
double doble = 123.123;
// Para convertir de número a cadena:
String enteroComoCadena = String.valueOf(entero);
// Igual para el flotante
String flotanteComoCadena = String.valueOf(doble);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment