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
20 odpowiedzi
+ 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);
	}
}
+ 1
Dude you really kn Java language?
+ 1
As you said everything is crt
+ 1
I didn't get it
+ 1
Ok
+ 1
Tqsm for help❤️
+ 1
Thanks
+ 1
I will try it same way,. 😯
0
Where is the code?
0
Java 2nd lesson
0
Basics 2nd lesson
0
Have you tried it? 
If yes post your code
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);
	}
}
0
This problem i couldn't find it the problem
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
0
Mohammed Khadir Yes
I know every language which I've learnt
0
Man all the things which I've pointed are wrong
0
Ya i kn but i hv replaced the variables but then also thr is wrong
0
just change the data type of variables rest everything is correct
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



