Find the given number is positive or not - Java Quiz Question


Write a program to find that given number is positive or not

Input (Number) Output
12.0 true
0.23 true
-12.0 false
null false



class PositiveNumber
{
    public static void main(String s[])
    {
        Double number = 12.45;
        System.out.println("The given number "+number+" is positive number "+isPositiveNumber(number));

    }


        public static boolean isPositiveNumber(Double number)
        {
            boolean result = false;
            return result;
        }

}