Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Zadacha2 {
- public static void main(String[] args) {
- String nubers = " 15 14 57 | 50 47 26 | 20 58 45";
- nubers = nubers.replaceAll("\\s+"," ");
- System.out.println("Current array:" + nubers);
- String[] splitText =nubers.split("\\|");
- for (int i = splitText.length - 1; i > - 1 ; i--) {
- System.out.print(splitText[i]);
- }
- }
- }
Add Comment
Please, Sign In to add comment