Object oriented programming question. Using only conditionals and relational operators, write the method smallest Positive that takes two numbers and returns the smallest positive one. If neither argument is positive, it returns 0. For example, smallest Positive (7, 4) and smallest Positive (4, 7) both return 4, smallest Positive (7, -4) and smallest Positive (-4, 7) both return 7, and smallest Positive (-7, -4) returns 0. public int smallest Positive (int x, int y) should return the smallest positive of x and y or 0 for two non-positive arguments. Solution Test1.java import java.util.Scanner; public class Test1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); System.out.println(\"Enter first value :\"); int x = scan.nextInt(); System.out.println(\"Enter second value :\"); int y = scan.nextInt(); int smallValue = smallestPositive(x,y); System.out.println(\"The Small value is \"+smallValue); } public static int smallestPositive(int x, int y){ if(x < 0 && y < 0) return 0; else if(x < y) return x; else return y; } } Output: Enter first value : -7 Enter second value : -4 The Small value is 0 Enter first value : 7 Enter second value : -1 The Small value is -1 .