Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class InventoryClass {
- private int[] itemNumber = {1,2,3,4,5,6,7,8,9,10};
- private String[] productName={"CD1","CD2","CD3","CD4","CD5","CD6","CD7","CD8","CD9","CD10"};
- private int[] unitsInStock={2,14,22,11,5,20,7,9,14,31};
- private double[] productPrice={4.99, 9.99, 4.99, 9.99, 7.99, 7.99, 14.50, 9.99, 9.99, 4.99};
- public void displayMessage(){
- System.out.println(itemNumber[1], productName[1], unitsInStock[1], productPrice[1]);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement