Konversi Tipe Data

KONVERSI TIPE DATA

1. String => Integer : Integer.parseInt(NamaVariabel)String)
2. String => Double : Double.parseDouble(NamaVariabelString)
3. Integer/Double => String : String.valueOf(NamaVarInt/Double)

String angka1=”123″;
——–
String angka2=”3.14″;

Leave a Reply

Your email address will not be published. Required fields are marked *