Java tutorial
//package com.java2s; public class Main { public static boolean isdouhao(String name) { int aa = name.indexOf("|"); if (aa >= 0) { return false; } else { return true; } } }