Wayne Barrett wrote:So I removed the try-catches here. Netbeans told me I had too many instances of variable "double r". I guess the try-catch shielded that in some way. ... I removed the second, third, and fourth "double r" declarations and tada! The program works again, no try-catches.