I know it ' s hard to find interest in things when your in that dark place , but sometimes something as small as reading a good book can take your mind off your fears and feelings . Sometimes you just have to force yourself because it might help , and what do you lose by trying ? <| sep |> Please , format your code . Guides how to do so are in the sidebar help on how to post code . Unformatted code is impolite and implies carelessness of the poster . Your statement I get the class to compile without issue , And the error your are posting Error line 1 cannot find symbol method divideintSomehow are contradictory . Yet , I am fairly certain this is a problem with BlueJ which is one of the crappiest , worst pieces of garbage that calls itself an IDE . I guess that you are using the direct execution facility of BlueJ which IMO is the worst idea that anyone ever had for Java programs as it leads to more problems than it solves . What parameter are you supplying ? I bet it is an integer number . You need to always use the period when working with double values . So , instead of entering 4 as parameter , enter 4 . 0 so that the Java virtual machine sees this number as double and not as int .