Question: Create a public static integer field named nextCustomerId and initialize nextCustomerId with 9 0 1 . Ex: If the input is Ari Kim Taj, then
Create a public static integer field named nextCustomerId and initialize nextCustomerId with
Ex: If the input is Ari Kim Taj, then the output is:
Next available ID is
Ari's ID is
Kim's ID is
Taj's ID is
Next available ID is public class Customer
private String name;
private int id;
public CustomerString newName
name newName;
id nextCustomerId;
nextCustomerId ;
public void print
System.out.printlnname s ID is id ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
