Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    2,562

    Re: Issues with Static environment

    I'm still not entirely sure what it is you want. You need to make sure all your parameters get passed into the methods that need them if you want your methods to perform tasks on that data. A better...
  2. Replies
    7
    Views
    2,562

    Re: Issues with Static environment

    So you want to be able to take in 5 values and create a bar chart?

    Pass them as a parameter to the generateBarChart method.

    public static JFreeChart generateBarChart(int[] data) {
    ...
  3. Replies
    7
    Views
    2,562

    Re: Issues with Static environment

    Please see this post: Common Java Mistakes: Referencing Non-static variables/methods in a static way

    edit: nvm, didn't read through your post thouroughly. Could you post your code so we can see...
Results 1 to 3 of 3