Search:

Type: Posts; User: jps

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    1,164

    Re: Code only outputs 1's

    You have a parameter named circOutput in a method that is never called and never used. But that localized variable is only visible within the method and shadows the visibility of your instance...
  2. Replies
    7
    Views
    1,164

    Re: Code only outputs 1's

    Are you sure? What does your test run show? A sample run would show: Area of Circle is 1.0

    For your code sample take the role of the computer running your program, and go through it.

    (init...
Results 1 to 2 of 2