Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

getChars - Return the string from the specified position to the target index in Java

  1. Syntax:
  2. getChars(StartingIndexvalue,Ending Indexvalue,Varaible to copy,offset of variable);

  1. import java.lang.*;
  2. class ForgetCode
  3. {
  4. public static void main(String args[])
  5. {
  6. String forget="www.forgetcode.com";
  7. System.out.println("A Syntax warehouse site:"+forget);
  8. char a[]=new a[10];
  9. forget.getChars(4,14,a,0);
  10. System.out.println("Site:"+a);
  11. }
  12. }
  13.