[1109] in java-interest

home help back first fref pref prev next nref lref last post

Re: Network Byte Stream to Integers

daemon@ATHENA.MIT.EDU (Thomas Ball)
Fri Aug 18 22:51:50 1995

Date: Fri, 18 Aug 1995 16:53:43 -0700
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: sid.conklin@nora.stanford.edu
Cc: java-interest@java.Eng.Sun.COM

>  {
>      DataInputStream in = new DataInputStream(
>          new BufferedInputStream(some_InputStream_instance));
>  
>      short ServiceCmdPort1 = in.readShort();
>      short ServiceCmdPort2 = in.readShort();
>      int ServicePID[] = int[2];

Make that "int ServicePID[] = new int[2];" -- that's why it's called OOPs.

>      ServicePID[0] = in.readInt();
>      ServicePID[1] = in.readInt();
>  }
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post