- 1
Pls someone help me with the solution of this code
public class Program { public static void main(String[] args) { //fix the variable types double name = "Toyota"; int engine = 4.7; String year = 2019; System.out.println("Name: " + name); System.out.println("Engine: " + engine); System.out.println("Year: " + year); } }
2 Respuestas
+ 2
HAMZA AHMAD INUWA
It would be better if you reviewed the lessons prior to this challenge, because this is the absolute basics which needs to be understood.
Hint**
Is "Toyota" a double or a string?
Your variable needs to have the correct type assigned
+ 2
Oh. You need to change to correct data type , currently it is wrong.. Just find and modify
hints:
"Toyota" is a string, but what is declared..
4.7 is which type?
2019 is a string?
try now...