0

Practice 6.2 2*pie

Can someone help me? Just got started yesterday and totally new.. Do you know what I am doing wrong? import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double pi = 3.14; Int sum1= new* double pi; } }

1st Feb 2021, 2:46 PM
manu de clerck
manu de clerck - avatar
6 Réponses
+ 1
You have not declared new variable
1st Feb 2021, 2:47 PM
Atul [Inactive]
+ 1
And write small I in int
1st Feb 2021, 2:47 PM
Atul [Inactive]
+ 1
And don't use new as a variable because it's a keyword
1st Feb 2021, 2:49 PM
Atul [Inactive]
1st Feb 2021, 2:52 PM
Atul [Inactive]
0
Thx Atul for the fast answer, gonna try it out
1st Feb 2021, 2:56 PM
manu de clerck
manu de clerck - avatar
0
My pleasure
1st Feb 2021, 3:03 PM
Atul [Inactive]