Here you can find the source of between(String str, String minstr, String maxstr)
Parameter | Description |
---|---|
str | a parameter |
minstr | a parameter |
maxstr | a parameter |
public static boolean between(String str, String minstr, String maxstr)
//package com.java2s; //License from project: Apache License public class Main { /**// w w w . ja v a2 s . c o m * * @param str * @param minstr * @param maxstr * @return */ public static boolean between(String str, String minstr, String maxstr) { return str.compareTo(minstr) >= 0 && str.compareTo(maxstr) <= 0; } }