This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class Program | |
{ | |
public String test(String postalCode) | |
{ | |
Pattern nan = Pattern.compile("\\d[A-Z]\\d"); | |
Pattern ana = Pattern.compile("[A-Z]\\d[A-Z]"); | |
Matcher mNan = nan.matcher(postalCode); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Program | |
{ | |
public static void Menu(String[] args) | |
{ | |
Scanner in = new Scanner(System.in); | |
System.out.println("Welcome"); | |
while(true) { | |
System.out.print("Please enter you ZIP(quit for exit):"); |
NewerOlder