Results 1 to 4 of 4
  1. #1
    thelinuxguy is offline Member
    Join Date
    Dec 2008
    Posts
    44
    Rep Power
    0

    Default [SOLVED] Multi-dimensional arrays

    Hi

    Does anyone know how to send an array int[] from a TCPserver to a TCP client.
    I have only managed to get integers passed between the two. I am trying to send the contents of a multi-dimensional array from a server to a client but have found little to help.

    Any advice appreciated

    theLinuxGuy

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    ObjectOutputStream/ObjectInputStream
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    ron87 is offline Member
    Join Date
    Mar 2009
    Posts
    52
    Rep Power
    0

    Default

    OrangeDog is right.
    As arrays are treated as object in JAVA u have to use ObjectInputStream and ObjectOutputStream

  4. #4
    thelinuxguy is offline Member
    Join Date
    Dec 2008
    Posts
    44
    Rep Power
    0

    Default Problem Solved

    Hi OrangeDog and Ron87

    Thanks for the advice the ObjectOutputStream/ObjectInputStream works perfectly, I can now send through the Arrays.

    Thanks

    theLinuxGuy

Similar Threads

  1. Multi-dimensional array program-help!
    By bobmasta5 in forum New To Java
    Replies: 13
    Last Post: 03-15-2009, 08:21 PM
  2. Multi-dimensional array
    By VinTiger in forum New To Java
    Replies: 22
    Last Post: 03-01-2009, 07:51 AM
  3. Multi dimensional Array
    By Preethi in forum New To Java
    Replies: 1
    Last Post: 07-09-2008, 04:34 PM
  4. Replies: 2
    Last Post: 01-07-2008, 08:45 PM
  5. Help with array multi-dimensional
    By barney in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 09:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •