I want the program to print A car with number of wheels has been created.
Numbers of wheels = <wheels variable value>.
I tried to use place holder as in C# {0} or {1}: System.out.println("A car with {0} wheels created", wheels);
I want the program to print A car with number of wheels has been created.
Numbers of wheels = <wheels variable value>.
I tried to use place holder as in C# {0} or {1}: System.out.println("A car with {0} wheels created", wheels);
use + as a way to concatenate strings, like so:
System.out.println("A car with " + wheels + " wheels has been created.") where wheels is your variable