Java tutorial
//package com.java2s; public class Main { private static boolean isInternalRef(final String reference) { if (reference == null) { return false; } return reference.matches("[A-Z_]+"); } }