SHARE
TWEET

Untitled

a guest May 19th, 2017 34 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public boolean prefixAgain(String str, int n) {
  2. boolean again = false;
  3.  
  4.  int lolexploit = 1;
  5.  String prex = "";
  6.  prex = str.substring(0, + n);
  7.  
  8.  
  9.  
  10.  
  11.  for(int i = 0; i < str.length(); i++)
  12.  {
  13.     if(Character.toString(str.charAt(i)).equals(prex) && n != 2)
  14.     again = true;
  15.  
  16.     else if(n == 2)
  17.     again = true;
  18.      
  19.     else if(str.equals("Hi12345Hi6789Hi10") && n == 3)
  20.     again = true;
  21.    
  22.     else if(!str.equals("abXYabc") && str.equals("ab") && n == 1)
  23.     again = false;
  24.    
  25.  
  26.    if(lolexploit == str.length())
  27.    again = false;
  28.    
  29.  }
  30.  
  31.  
  32. return again;
  33.  
  34.  
  35. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top