public class Solution { public String LeftRotateString(String str,int n) { if(str == null || str.length() == 0 ) return str; n %= str.length(); if(n == 0) return str; char[] ch = new char[str.length()]; int j = 0; for(int i = n;i < str.length();i ++){ ch[j ++] = str.charAt(i); } for(int i = 0;i < n;i ++){ ch[j ++] = str.charAt(i); } return String.valueOf(ch); } }