import java.util.Scanner; class Program01 { public static void main(String args[]) { Scanner in = new Scanner(System.in); System.out.print("Ăštvonal: "); String dirPath = in.nextLine(); System.out.println(dirPath.matches("info\\\\priv")); } }