Question: How would you fill out the code for number 1 - 4 ? Using all the information in the code and runner code.A + Computer

How would you fill out the code for number 1-4? Using all the information in the code and runner code.A+ Computer Science - Writing Classes Worksheet 2
DIRECTIONS : Fill in each blank with the proper java code.
claaa teet
is
private string nane.
private int aged
publie het (String n, int a)
(1)
1
public woid sethge f lnt a
1
(2)
}
fullie roid antatane ( String a )
(3)
putlie Staing getium (1)
(4)
puitlie int getagm (1)
(5)
1
publie String tastring(1).
(6)
Ifrunner code
Scanner kb - mew Scanner ( Systen. in if
for {sint,r=1,r5z,r++}
String =-kb-next 0 ;
Int a - kb. next Int ?
Pet pet - new Peti n, a II
System, out. printin (pet) :
 How would you fill out the code for number 1-4? Using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!