Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean prefixAgain(String str, int n) {
- boolean again = false;
- int lolexploit = 1;
- String prex = "";
- prex = str.substring(0, + n);
- for(int i = 0; i < str.length(); i++)
- {
- if(Character.toString(str.charAt(i)).equals(prex) && n != 2)
- again = true;
- else if(n == 2)
- again = true;
- else if(str.equals("Hi12345Hi6789Hi10") && n == 3)
- again = true;
- else if(!str.equals("abXYabc") && str.equals("ab") && n == 1)
- again = false;
- if(lolexploit == str.length())
- again = false;
- }
- return again;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement