Java tutorial
//package com.java2s; public class Main { public static boolean isValidBillNum(String str) { return str != null && str.length() >= 8 && str.length() <= 32 && str.matches("[A-Za-z0-9]+"); } }