Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String textLine1 = bufferedReader.readLine();
- String textLine2 = bufferedReader.readLine();
- String[] words1 = textLine1.split(":");
- String[] words2 = textLine2.split(":");
- do {
- words1 = textLine1.split(":");
- words2 = textLine2.split(":");
- System.out.println(textLine1);
- System.out.println(textLine2);
- System.out.println(words1[0]);
- System.out.println(words2[0]);
- textLine1 = bufferedReader.readLine();
- textLine2 = bufferedReader.readLine();
- } while(words2[0].matches(words1[0]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement