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″;

Published by

Admin SJN

Stikom Java Network is a UKP in Institut Bisnis dan Informatika Stikom Surabaya. We will grow up to be a biggest UKP in STIKOM for sure.

Leave a Reply

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