Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String args[]) {
- String s = "...|---|.-";
- //char [] p = s.toCharArray();
- //String r = "";
- String [] x = s.split("|");
- for(int i = 0;i < x.length;i++)
- {
- System.out.println(x[i]);
- }
- }
Add Comment
Please, Sign In to add comment