题解 | #左旋转字符串#
左旋转字符串
http://www.nowcoder.com/practice/12d959b108cb42b1ab72cef4d36af5ec
public class Solution {
public String LeftRotateString(String str,int n) {
if(str.equals("")){
return str;
}
String we = str.substring(0,n);
str = str.substring(n,str.length());
return str+we;
}
}