I don't use Macs, so I cant help you there. As for your code, it's difficult to read because you have { and } placed very awkwardly. Keep in mind, with NetBeans, it will show you which braces open and close each other based on how you wrote it and if there are too many, however, it does not check whether there are logical errors resulting from misuse of braces. From one of your screenshots, on lines 22 and 25 have several errors. First, you're trying to pass variables into a class instead of into a method. Second, you're trying to pass an integer array as an integer. Third, the methods GtoJ and JtoG do not exist anywhere in the code you provided, which is why the compiler is giving you those errors for it.
Although it's not an error, on line 8, you never do anything with 2 of the 3 int variables. What is their purpose in your code? If they have none, delete them. Also, what are you trying to use the array for because you only have one of its elements replaced by 29?
Adjust the formatting and it's possible you'll find more errors. A chunk of your code needs to be re-written, so fix the other errors that are easier to handle first.