Java tutorial
//package com.java2s; public class Main { public static boolean isPrimitiveType(String type) { return type.length() == 1; } }