• Post Reply Bookmark Topic Watch Topic
  • New Topic

My code saves 2D wrongly  RSS feed

goodspeed ayt
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help please I need my code to write 2D array to a text file also read from text. I manage to get it to store in the arraylist... so the characters are in the format
which are rows and columns. but when I try to keep it in the array list it prints the characters upside down so I use a trick which I think is wrong my printing j before i... it is suppose to be i before j. doing that it came out the way i wanted it... but when i save the file and look how it is stored in the text file i see different thing... even worst than what was in the arraylist.

here are my codes... and please can someone help me write a read method... to read from a text file into the 2d array. thanks.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!