+ 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); } }

2nd Aug 2018, 10:55 AM
Zawad Abu
Zawad Abu - avatar
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.
2nd Aug 2018, 11:29 AM
Maninder $ingh
Maninder $ingh - avatar