0

You are given code which outputs the properties of a vehicle, but something is wrong. Task Fix the code to print the propert

Can u pls help to figure out this answer

2nd Nov 2022, 4:25 PM
Mohammed Khadir
Mohammed Khadir - avatar
20 Answers
+ 2
I'm telling about data type. change the data type of each variable like this: 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); } }
2nd Nov 2022, 5:05 PM
Just Some Random Guy
Just Some Random Guy - avatar
+ 1
Dude you really kn Java language?
2nd Nov 2022, 4:50 PM
Mohammed Khadir
Mohammed Khadir - avatar
+ 1
As you said everything is crt
2nd Nov 2022, 4:57 PM
Mohammed Khadir
Mohammed Khadir - avatar
+ 1
I didn't get it
3rd Nov 2022, 2:33 AM
Mohammed Khadir
Mohammed Khadir - avatar
+ 1
Ok
3rd Nov 2022, 9:51 AM
Mohammed Khadir
Mohammed Khadir - avatar
+ 1
Tqsm for help❤️
3rd Nov 2022, 9:52 AM
Mohammed Khadir
Mohammed Khadir - avatar
+ 1
Thanks
3rd Nov 2022, 12:00 PM
Asim Farheen ⭐⭐🤺👿👿
Asim  Farheen ⭐⭐🤺👿👿 - avatar
+ 1
I will try it same way,. 😯
3rd Nov 2022, 4:55 PM
Asim Farheen ⭐⭐🤺👿👿
Asim  Farheen ⭐⭐🤺👿👿 - avatar
0
Where is the code?
2nd Nov 2022, 4:26 PM
Just Some Random Guy
Just Some Random Guy - avatar
0
Java 2nd lesson
2nd Nov 2022, 4:27 PM
Mohammed Khadir
Mohammed Khadir - avatar
0
Basics 2nd lesson
2nd Nov 2022, 4:28 PM
Mohammed Khadir
Mohammed Khadir - avatar
0
Have you tried it? If yes post your code
2nd Nov 2022, 4:35 PM
Just Some Random Guy
Just Some Random Guy - avatar
0
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); } }
2nd Nov 2022, 4:43 PM
Mohammed Khadir
Mohammed Khadir - avatar
0
This problem i couldn't find it the problem
2nd Nov 2022, 4:43 PM
Mohammed Khadir
Mohammed Khadir - avatar
0
well what about these: double name = "Toyota" -> is this correct? int engine = 4.7 -> is this correct? String year = 2019 -> is this correct? Try to look every part of code
2nd Nov 2022, 4:48 PM
Just Some Random Guy
Just Some Random Guy - avatar
0
Mohammed Khadir Yes I know every language which I've learnt
2nd Nov 2022, 4:56 PM
Just Some Random Guy
Just Some Random Guy - avatar
0
Man all the things which I've pointed are wrong
2nd Nov 2022, 5:00 PM
Just Some Random Guy
Just Some Random Guy - avatar
0
Ya i kn but i hv replaced the variables but then also thr is wrong
2nd Nov 2022, 5:01 PM
Mohammed Khadir
Mohammed Khadir - avatar
0
just change the data type of variables rest everything is correct
3rd Nov 2022, 9:43 AM
Just Some Random Guy
Just Some Random Guy - avatar
0
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); } } thanks You Budhabhushan waghmare tech brain booster
24th Sep 2024, 6:14 AM
Budhabhushan Waghmare
Budhabhushan Waghmare - avatar