[725] in java-interest

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

question on charAt

daemon@ATHENA.MIT.EDU (Cheng-I Huang)
Mon Jul 17 17:31:15 1995

Date: Fri, 14 Jul 1995 11:32:24 -0700
From: Cheng.Huang@Eng.Sun.COM (Cheng-I Huang)
To: java-interest@java.Eng.Sun.COM

Hello,

   I tried the following code and I was expecting to see the character "o" 
instead of ASCII decimal 111. Any idea why ? Am I missing anything ?
   
Thanks in advance,

Cheng-I
ps: reply directly. I am not in this alias yet. thx


   class STApp {
   public static void main( String args[] ) {
          String mystr = "Hotjava";
          System.out.println("mystr.charAt(1) = " + mystr.charAt(1) );
   }
}


% java STApp
mystr.charAt(1) = 111

-
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