Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package prjshrdcjf;
- public class Purchasing {
- public Purchasing(){
- String[][] items = new String[7][3];
- items[0][0] = "1";
- items[0][1] = "Mouse";
- items[0][2] = "30.00";
- items[1][0] = "2";
- items[1][1] = "KeyBoard";
- items[1][2] = "22.00";
- items[2][0] = "3";
- items[2][1] = "USB Drive";
- items[2][2] = "45.99";
- items[3][0] = "4";
- items[3][1] = "Screen";
- items[3][2] = "100.00";
- items[4][0] = "5";
- items[4][1] = "Power Cord";
- items[4][2] = "15.99";
- items[5][0] = "6";
- items[5][1] = "Cable";
- items[5][2] = "10.90";
- items[6][0] = "7";
- items[6][1] = "USB Cable";
- items[6][2] = "11.90";
- System.out.println("\t ----------------------------------------");
- for(int row=0; row<=items.length -1; row++){
- for(int col=0; col<=2; col++){
- System.out.print("\t | " + items[row][col] + " ");
- }
- System.out.println("\t|\n\t ----------------------------------------");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement