Java String Left left(String str, int len)

Here you can find the source of left(String str, int len)

Description

return str.substring(0,endIdx) *

License

Open Source License

Declaration

public static String left(String str, int len) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /** return str.substring(0,endIdx) * */
    public static String left(String str, int len) {
        return str.substring(0, len);
    }//from  w  w w  .  ja va 2s .  co  m
}

Related

  1. left(String source, String searchFor)
  2. left(String source, String searchFor)
  3. left(String str, int count)
  4. left(String str, int len)
  5. left(String str, int len)
  6. left(String str, int len)
  7. left(String str, int len, String appendStrIfOver)
  8. left(String str, int length)
  9. left(String str, int size)