+ 1
Whats wrong here
Class Prac{ Public static void main (String[] args) { String nums = "97.113541351351351"; double numd = Double.parseDouble(nums); float numf = (float) numd; int numi = (int) numf ; System.out.println(nums); System.out.println(numd); System.out.println(numf); System.out.println(numi); } }
1 Antwort
+ 5
you need to write the first letter of class is small. like this class Prac
and you need to write first letter of public is small. like this public
and then execute it.