Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class _06_Extract_Tags {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- while (true) {
- String curent = scan.nextLine();
- if (curent.equals("END")) {
- break;
- }
- if (curent.length() < 3 || curent.length() > 16) {
- System.out.printf("invalid\n");
- } else {
- System.out.printf("valid\n");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement