como apanhar caracter de uma string em java
String text = "Hello World!";
//To get the first charecter from a String
String a = text.substring(0, 1);
como apanhar caracter de uma string em java
String text = "Hello World!";
//To get the first charecter from a String
String a = text.substring(0, 1);
de caracter a string en java
//String a Entero
Integer entero = Integer.valueOf(cadena);
// o
int entero = Integer.parseInt(cadena);
//Integer a String
String cadena = Integer.toString(entero);
// o
String cadena = String.valueOf(entero);
//Char a String
String cadena = Character.toString(char);
//String a Char
char caracter = cadena.charAt(0); //Solo primer caracter
//String a Double
double doble = Double.parseDouble(cadena);
//Double a String
String cadena = String.valueOf(doble);
//String a Float
float flotante = Float.parseFloat(cadena);
//Float a String
String cadena = Float.toString(flotante);
//String a Boolean
Boolean boolean = Boolean.valueOf(cadena);
// o
boolean boolean = Boolean.parseBoolean(cadena);
//Boolean a String
String cadena = String.valueOf(b);
// o
String cadena = Boolean.toString(b);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us