Advertisement
Guest User

Untitled

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