Search:

Type: Posts; User: igniteflow

Search: Search took 0.38 seconds.

  1. Replies
    1
    Views
    2,430

    Arrays.sort or iterative search?

    I have a large integer array of mixed values I want to search for the highest and lowest values. I have a method to iterate through each element in the array. I was thinking Arrays.sort() might be...
  2. Replies
    2
    Views
    2,245

    Private or public variables??

    I am due to submit some work on Friday. The program is comprised of about 15 classes and works fine in that it does what it is supposed to do. However, in one of the classes in particular I have a...
  3. Replies
    2
    Views
    2,296

    Arraylist or Arraylist Object?

    I'm currently writing up a report. One of the methods reads a file and adds it line by line to an arraylist. Is that the correct terminology or should I say it's added to an arraylist object - or...
  4. Replies
    1
    Views
    2,499

    Regex Question

    I can search for a word in a string with regex as follows:



    Pattern p = Pattern.compile(regex);
    Matcher m = p.matcher(toCheck);
    flag = m.find();


    where regex is a...
  5. Replies
    11
    Views
    4,543

    [SOLVED] Re: ClassNotFoundException - Please Help

    Many thanks everyone for your help. I wasn't aware of the capitalisation of class names, so have changed all the classes to conform with that now and can see why it is easier to read. I think my...
  6. Replies
    11
    Views
    4,543

    [SOLVED] Re: ClassNotFoundException - Please Help

    A little more information. The class file is called minAndMax, it is part of the same package. It contains static methods which I call from other classes using the standard syntax:
    ...
  7. Replies
    11
    Views
    4,543

    [SOLVED] ClassNotFoundException - Please Help

    I've been working on a program and everything was working fine, except now I'm getting a ClassNotFoundException for no reason I can trace. What would cause this?
    I'm trying to call a method from...
  8. Re: How to share variable values amongst different classes?

    Thanks Json, point taken. I'm completing my first large project and although the program works fine, I have pretty much all the code in just a couple of classes with all variables and methods set as...
  9. Re: How to share variable values amongst different classes?

    Thank you for the replies. I think perhaps I've been structuring my code wrong then, even though it does work. I've been creating lots of public instance variables at the beginning of my classes...
  10. How to share variable values amongst different classes?

    Hi,
    I've been programming with Java for a while and am still unsure about something pretty fundamental. I am using a GUI to call methods from different classes, which works fine. However, I'm...
  11. [SOLVED] Re: Extracting an How to ArrayList from an ArrayList and convert to int??

    Done it, here's how...



    ArrayList set = new ArrayList();
    List newList = lists.get(0);
    set.add(newList);
    Object[] predators = newList.toArray();
    ...
  12. [SOLVED] Extracting an How to ArrayList from an ArrayList and convert to int??

    Hi,
    I have a method which creates ArrayLists and stores them within an ArrayList as follows:



    ArrayList<ArrayList<Integer>> clusters = new ArrayList<ArrayList<Integer>>();
    ArrayList<Integer>...
  13. Replies
    0
    Views
    3,525

    Problem with JFreeChart TimeSeries

    Hi all,
    I have a GUI where I am displaying JFreeCharts in a JPanel. This works fine for a pie chart, but I can't get it to work for a time series chart which is what I really need. Here is my code...
  14. Replies
    2
    Views
    3,246

    [SOLVED] Re: Can't get JFreeChart to work

    Used the jar file from JKLJar File Download and it worked fine, maybe the newest one has some bugs?
    Anyway, 13 works fine for me
  15. Replies
    2
    Views
    3,246

    [SOLVED] Can't get JFreeChart to work

    Hi all,
    I've wasted the whole day trying to get JFreeChart to work in NetBeans, in both Windows and Linux and have completely failed. Does anyone have any experience with this? I don't care what...
  16. [SOLVED] Re: How to dynamically create ArrayLists (or something similar)?

    Awesome, thanks helloworld922!! :ar!
  17. [SOLVED] Re: How to dynamically create ArrayLists (or something similar)?

    Thanks for the reply Json.
    I am already using multiple ArrayLists, but my problem is that I want the program to create as many as it requires dynamically. I need to keep the clusters separate, so...
  18. [SOLVED] How to dynamically create ArrayLists (or something similar)?

    Hi,
    I have an algorithm that using cluster centroids, searches through an array of doubles (see below) putting the values closest to the centroids in repective arrayLists.
    For example (handtyped,...
Results 1 to 18 of 18