Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.30 KB | None | 0 0
  1. public static String analizaTekstu(String tekst, String format) {
  2.         if (format == "Rozstrzelony") {
  3.             tekst = tekst.replaceAll("", " ");
  4.             tekst = tekst.replaceAll("   ", "  ");
  5.             tekst = tekst.substring(1, tekst.length()-1);
  6.             System.out.println(tekst);
  7.             return tekst;
  8.         }
  9.         else return tekst;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement