Monday, December 1, 2014

Compare 2 String fromA - toB

[JAVA]

/**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String from_a = "$#ABDJAH000011";
        String to_b = "$#ABDJAH000010";
        int result = from_a.compareTo(to_b);
        if(result > 0){
            System.out.println("To_b must be after from_a in alphabets table");
        }
    }

var q = db.RandomTable as IQueryable;
if (checkBox.Checked)
{
    q = q.Where(/* condition */);
}

No comments:

Post a Comment