java project ...can anyone help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

java project ...can anyone help me

create (model) an item that puts the name Machine, .These features: name, color, year of production, and what works (gas = bn, gas = g). Then use an empty constructor method that sets idle values .., Then a constructor that takes the parameters: name, color, year of production, what works (gas = bn, gas = g) ...., then create a single method of String type .... "Finally, create a testing class and display the Machine using the String method.

8th Nov 2017, 8:39 AM
Shpetim Cami
Shpetim Cami - avatar
4 Answers
+ 10
That sad-smiley tag :( But you'll have to try it by your own :) Here's a sample code which shows how to use constructors: https://code.sololearn.com/cpHx2iuWqzWt/#java Try to understand it and implement your task accordingly. Feel free to ask for help if you get stuck :)
8th Nov 2017, 9:20 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 9
The Java tutorial of SoloLearn covers these topics step by step, which is designed specially for beginners. You should continue with that :)
8th Nov 2017, 9:58 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 1
if you can send me more exercise like this ...thanks u so much 😊
8th Nov 2017, 9:38 AM
Shpetim Cami
Shpetim Cami - avatar
+ 1
😊😊😊
8th Nov 2017, 10:33 AM
Shpetim Cami
Shpetim Cami - avatar