Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

My code saves 2D wrongly

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.

    Bookmark Topic Watch Topic
  • New Topic