Linux Java JDK in SUN

2000-10-11 Thread Friendship

Where Can I find the Java JDK for Linux version in
www.SUN.com?

Thanks!!



__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Help, why wrong ?!

2000-10-13 Thread Friendship

Hi, guru,

I am very new to java.
I want read a int from keyboard and plus one, then
display it.
But why it doesn't work?
Help me please!!

Thanks & Have nice weekend!!



import java.io.*;
public class ReadKeyB {

public static void main (String args[]) {


DataInputStream in = new DataInputStream(System.in);
int s ;

try {
  s = in.readInt();
  int myint = intValueOf(s);
  myint++;
  System.out.println(myint);
 }


catch (Exception e) {
   System.out.println("Error: " + e.toString());
 }
   
 
}

}

__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]