View Single Post
Join Date: Nov 2008
Posts: 822
Reputation: verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough 
Solved Threads: 73
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Practically a Posting Shark

Re: pls help w/ this

 
0
  #10
Dec 1st, 2008
  1. int r1, c1, r2, c2;
  2. int[][]cards;
  3. cards=new int[4][4];
  4. for(int r=0; r<4; r++)
  5. {
  6. for(int c=0; c<4; c++)
  7. {
  8. cards[r][c]=(int) (Math.random() * 8);
  9. // the line below should be commented
  10. System.out.print(cards[r][c]);
  11. }
  12. System.out.print("\n");
  13. }
I have mentioned the changes in the code itself (check the comment)
As I see here you have not been taking note of some of the conventions mentioned to you. What you have rather done is just for the sake of doing it have indented the code in question and have kept all the other code part as it is. The conventions sited as for your convenience and not for ours. If you want to plainly discard the guidelines mentioned to you while keep on asking for help I don't think this is the right place for you.
Reply With Quote