home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / Documents / JAVA Programming / examples / 09 / getCharsDemo.java < prev    next >
Encoding:
Java Source  |  2000-09-08  |  251 b   |  10 lines

  1. class getCharsDemo {
  2. public static void main(String args[]) {
  3. String s = "This is a demo of the getChars method.";
  4. int start = 10;
  5. int end = 14;
  6. char buf[] = new char[end - start];
  7. s.getChars(start, end, buf, 0);
  8. System.out.println(buf);
  9. } }
  10.