Search:

Type: Posts; User: CjStaal

Page 1 of 2 1 2

Search: Search took 0.18 seconds.

  1. Replies
    1
    Views
    673

    Re: File in android

    have you tried length()? Im not sure its in there but you seem to misspell length consistently.
  2. Replies
    0
    Views
    463

    Blank screen on startup

    Please delete thread, I fixed it :)
  3. [SOLVED] Re: FlightPath problem again [Using Dijkstra's Algorithm, but it's only allowed to go

    I was probably doing something wrong. It was allowing weird flights.
    I watched a lecture from mitopencourseware dealing with Bellman Ford algorithm and implemented a modified version of that to...
  4. Replies
    2
    Views
    332

    Re: decorator design pattern

    Buy Heads up design patterns, it's not expensive and a great read.
  5. [SOLVED] FlightPath problem again [Using Dijkstra's Algorithm, but it's only allowed to go....

    Ok, so a flight may connect Chicago to NY, but no flight from NY to Chicago [needs to go through Boston].

    Here's the thing though, the algorithm I'm using right now -- it seems it's allowing...
  6. [SOLVED] Re: flightpaths, finding lowest cost -- lowest amount of crossovers

    I've looked up examples online of the algorithm, and I've decided to rework the entire project, AGAIN lol. Well, It's going to be right this time.
  7. [SOLVED] Re: flightpaths, finding lowest cost -- lowest amount of crossovers

    That's exactly what I need! Thanks so much!! My "Graph" would be the hashmap I have in the main class? I've encapsulated it to be its own class.
    Here's the entire code



    deleted code since...
  8. [SOLVED] flightpaths, finding lowest cost -- lowest amount of crossovers

    I have a college assignment.
    I already have it working with a depth first search on the data structure [it's not a tree since there are loops]
    Basically, the professor just wants the program to...
  9. Replies
    4
    Views
    429

    Re: Java Newbie Code Problem

    ....edited by moderator
  10. Replies
    2
    Views
    381

    Re: Question on do-while loops

    Looks very similar to this post
    http://www.javaprogrammingforums.com/whats-wrong-my-code/15196-problem-running-random-class.html
    So your re-writing it? Why did you create a new account?
    If you...
  11. Replies
    1
    Views
    932

    Re: Finding the edges of object in photo

    check for dramatic change in hue and/or saturation
  12. Replies
    2
    Views
    544

    [SOLVED] Re: Finding biggest files, making list

    Well I figured out what the problem was, my adding after filling up the array was flawed

    for(int x = 0; x<CompFiles.length; x++)
    {
    int stat = c.compareTo((Wrapper) CompFiles[x]);...
  13. Replies
    26
    Views
    1,887

    [SOLVED] Re: Help with concentration program

    Ah, just an FYI, I fixed everything. The problem was how Java swing handled the updates of the jFrame, only updating AFTER the actionPerformed thread was done and returned to the main thread. I...
  14. Replies
    5
    Views
    487

    [SOLVED] Re: Cannot get out of do-while loop

    while (flag=true)
    That just makes flag true every iteration, you mean while(flag==true) which honestly can just be while(flag)
  15. Replies
    4
    Views
    554

    Re: can someone tell me if this looks right??

    Looks right, If that's all the problem stated, then it looks done.
    I'd remove the 2 tabs from the try though -- but that's just semantics.
  16. Replies
    19
    Views
    768

    Re: Problem with running random class

    You need to take the return out of your switch statment next -- it's ending the game when it gets to that.

    Now I'm getting
    Car Cricket Game
    ================
    Scoring: non...
  17. Replies
    19
    Views
    768

    Re: Problem with running random class

    Have you first corrected the error I've pointed out?

    What I'm getting

    Car Cricket Game
    ================
    Scoring: non white/black/red/green/yellow/blue/orange car: 0 runs.
    White/black car: 1...
  18. Replies
    19
    Views
    768

    Re: Problem with running random class

    you have a little bit of a misunderstanding on how do while loops work.
    Instead, take away the do and the semicolon at the end of the while
    Theres
    do{
    //code
    }while(this statement is still...
  19. Replies
    19
    Views
    768

    Re: Problem with running random class

    & try splitting it up, using a settings class -- will make the entire code a lot cleaner. Also, your doing a lot of weird stuff that you don't really need to in the code.
  20. Replies
    19
    Views
    768

    Re: Problem with running random class

    Take away the do and its brackets, and take away the semicolon from the end of the while loop.

    Should be this

    import java.util.*;
    import java.util.Random;

    public class AssigOne112
    {...
  21. Replies
    2
    Views
    544

    [SOLVED] Re: Finding biggest files, making list

    If you want the entire source for compilation purposes, let me know and I'll post it.
  22. Replies
    2
    Views
    544

    [SOLVED] Finding biggest files, making list

    Okay, I know my issue is in my add function [adds to the array]
    so I'll only post that portion of the code

    public void add(Comparable<Wrapper> c)
    {
    for(int x =0; x<CompFiles.length ; x++)...
  23. Replies
    26
    Views
    1,887

    [SOLVED] Re: Help with concentration program

    Why not? I love eclipse
  24. Replies
    26
    Views
    1,887

    [SOLVED] Re: Help with concentration program

    import these workspace folders in eclipse
  25. Replies
    26
    Views
    1,887

    [SOLVED] Re: Help with concentration program

    It's hard to explain. I tried already it messes up since the GUI and logic need to be in 2 different threads or else it hangs up and never shows the 2nd buttons value if it doesnt match the first...
Results 1 to 25 of 33
Page 1 of 2 1 2