author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Tue, 25 Sep 2012 17:30:13 +0200 | |
branch | strings |
changeset 34 | 6fcc0dfbe324 |
child 36 | 95330dd02c47 |
permissions | -rw-r--r-- |
jaroslav@34 | 1 |
package org.apidesign.vm4brwsr; |
jaroslav@34 | 2 |
|
jaroslav@34 | 3 |
/** |
jaroslav@34 | 4 |
* |
jaroslav@34 | 5 |
* @author Jaroslav Tulach <jtulach@netbeans.org> |
jaroslav@34 | 6 |
*/ |
jaroslav@34 | 7 |
public class StringSample { |
jaroslav@34 | 8 |
public static final String HELLO = "Hello World!"; |
jaroslav@34 | 9 |
|
jaroslav@34 | 10 |
public static char sayHello(int indx) { |
jaroslav@34 | 11 |
return HELLO.charAt(indx); |
jaroslav@34 | 12 |
} |
jaroslav@34 | 13 |
} |