Help me what's wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me what's wrong

public class Program { public static void main(String[] args) { //fix the variable types String name = "Toyota"; double engine = 4.7; int year = 2019; System.out.println("Name:"+""+ name); System.out.println("Engine:"+""+ engine); System.out.println("Year:"+""+ year); } }

28th Oct 2022, 4:14 PM
Koshali Nayak
Koshali Nayak - avatar
4 Answers
+ 2
Your code looks OK and it runs, I tested. What is wrong? What is your question?
28th Oct 2022, 4:23 PM
Tibor Santa
Tibor Santa - avatar
+ 2
Oh ya now it worked!! thank you
28th Oct 2022, 5:42 PM
Koshali Nayak
Koshali Nayak - avatar
+ 1
Idk it's not working it's in the vehicle passport section, showing try again?
28th Oct 2022, 5:34 PM
Koshali Nayak
Koshali Nayak - avatar
+ 1
Observe the expected output of the task carefully. I think you will need to add a whitespace after each colon : inside the strings.
28th Oct 2022, 5:39 PM
Tibor Santa
Tibor Santa - avatar