Guest User

Untitled

a guest
Apr 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public static void main(String args[]) {
  2. String s = "...|---|.-";
  3. //char [] p = s.toCharArray();
  4. //String r = "";
  5.  
  6. String [] x = s.split("|");
  7.  
  8. for(int i = 0;i < x.length;i++)
  9. {
  10. System.out.println(x[i]);
  11. }
  12. }
Add Comment
Please, Sign In to add comment