Hi guys, Please help! What's wrong in this piece of code?
public class Solution {
    public static int min(int a, int b, int c) {
        //write your code here
        if ((a < b) and (a < c))
      return a;
        else if ((b < a) and (b < c))
       return b;
        else if ((c < a) and (c < b))
       return c;
         }

    public static void main(String[] args) throws Exception {
        System.out.println(min(1, 2, 3));
        System.out.println(min(-1, -2, -3));
        System.out.println(min(3, 5, 3));
        System.out.println(min(5, 5, 10));
    }

}