Hello chronoz13,

if (num1 < 0) should work. See this example:



public class Chronoz13 {

/**
* JavaProgrammingForums.com