//Tester class
import java.util.Scanner;
public class integerTester2
{
private int integer;
private String other = " ";
public int getInput()
{
return integer;
}
public integerTester2(int interger)
{
this.integer = integer;
}
public integerTester2(String other)
{
this.other = other;
}
public String getSign()
{
if (integer > 0)
{
return integer + " is positive";
}
else if (integer < 0)
{
return integer + " is negative";
}
else
{
return integer + " is equal to zero";
}
}
}
//object class
import java.util.Scanner;
public class integer2
{
private static Scanner userInput;
public static void main(String[] args)
{
int integer = 0;
String other ="other";
Scanner userInput = new Scanner (System.in);
System.out.print("Your number: ");
integer=userInput.nextInt();
integerTester2 integer2 = new integerTester2(integer);
System.out.println(other.getSign());
}
}