- 2
Give the code for user input in the main method given the following code of a class name website with a method with 2 parameters
Code:- public class website { string webname; int webage; //constructor website(string name,int age); this.webname=name; this.webage=age; }
3 Réponses
+ 1
Do you want to initialize a website object with user input, did I understandthis correctly?
Please link your code attempt. :)
+ 1
Lisa Yeah you have understood it correctly
0
Here's how to get user input in java: Lesson 5.1,
https://www.sololearn.com/learning/2220/