I am really new to java and wanted to know how I can print an int which is both negative and odd and if so, needs to be put into the formula (n^2+1) . I am not looking particularly for answers (although I would appreciate them greatly) I just generally want to better my knowledge of java. Thanks in advanced.