Search:

Type: Posts; User: bruint

Page 1 of 2 1 2

Search: Search took 0.13 seconds.

  1. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    Update again:

    Vote (FINISHED):


    /**
    * Represents a single vote and it's preferences
    *
    * Thomas Bruining
    * v1.0
  2. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    ok. So I've worked on it a bit more with my friend who's done the course before (But a completely different project)
    Vote:


    /**
    * Represents a single vote and it's preferences
    *
    * Thomas...
  3. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    haha, no, you've been a ton of help *clicks thanks*

    Thanks very much. Be back here soon enough:)
  4. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    probably use the charAt [0], charAt[1], etc. to find which each is equal to and store each as a Char variable and then compare them to each new vote in the list seperately by using a loop that ends...
  5. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    right and that would be done by say...



    FileIO.lines[] = lines[]

    Or something? Which would just copy the array over?
  6. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    the Vote class takes from a text file, one line of letters say:
    ACBDE
    This represents one individuals vote.
    A is one candidate, B is another, C is another, etc.

    The vote class checks that it...
  7. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    Hi JavaPF, thanks for getting back to me. But whilst I understand the structure of Java programs, I just don't know where to start in regards to what I need to do to go about taking what I get from...
  8. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    Apologies for the double post, but I needed to bump this.
    I still don't know where to start. Any help, is very much appreciated.

    Just focussing on the vote class at the moment.
  9. Replies
    15
    Views
    3,384

    Re: Election Program - Ongoing

    Included in the project:)
  10. Replies
    15
    Views
    3,384

    Java program for election voting machine

    Hi, so this is my final assignment for the semester so I thought I would setup a thread for it now because I will probably need a fair bit of ongoing help. (Thank you in advance to anyone that does...
  11. [SOLVED] Re: Fifteen Puzzle - 2D Arrays, etc.

    *sigh* Alas, I'm underage also. I was working on the basis that my brother would buy the virtual beers for me.
  12. [SOLVED] Re: Fifteen Puzzle - 2D Arrays, etc.

    Thanks a ton mate. Honestly, I owe you like a virtual beer or something.

    I'll most likely be back here in a couple of minutes when I run into my next problem.
  13. [SOLVED] Problem in implementation of Fifteen Puzzle with 2D Arrays

    ok, so I'm realllyyyyy stuck at the moment. I started coding something, but I've realised that I've done it all wrong and now I literally have no idea where to start.
    I'm not asking anyone to write...
  14. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    Now I get it:) Thank you very very much.
  15. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    Drawing up a table isn't really required, I understand the concept of 2D Arrays (You are right I am new, haha) but I'm having trouble understand how I can get each of these numbers that I've input...
  16. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    Ha!, already stumped myself.

    How can I get an integer from an Array and store it as a variable?

    This was my intention of:

    x = initialGrid.length;
    y = initialGrid[x-1].length;
  17. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    Ahhhh Chris, you bloody legend. it was indeed {{3,2}}, now I just have to work out the rest of it:D Much thanks. I'll definately be back here if I can't work anything out.
  18. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    No, it occurs after compiling. I'm not exactly what the proccess is called, but on a guess, it's sort of like invoking a constructor from a class, and then the user can input the numbers, string,...
  19. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    Chris, I've edited my code as you said. But Im still getting the identifier problem when I try to run my own constructor (A requirement for my lecturer - he marks with an automated script)
    Your...
  20. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    I'm compiling in BlueJ fine. They are 2 seperate classes (as im sure you already know) which class in particular is not compiling?
  21. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    Thanks very much. Any help is greatly appreciated:) Hope to hear from you soon.
  22. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    Thanks Chris, I've posted the SimpleCanvas code as requested. :)
  23. Replies
    23
    Views
    5,043

    [SOLVED] Re: Another expected problem...

    I've worked on it a little more, but I'm still getting an <identifier> problem...please, any help is very very much appreciated :)

    New Code:

    public class FifteenPuzzle {

    //Instance...
  24. Replies
    23
    Views
    5,043

    [SOLVED] Java error "Another expected"

    So I'm writing a program for a puzzle for my University Lab, but I run into a problem when I try to input 2 integers when constructing. Here's my full code (not nearly completed but still, I work in...
  25. Thread: Hey:)

    by bruint
    Replies
    2
    Views
    518

    Hey:)

    Hi everyone, I was hunting for a good forum to give my input and recieve a bit of help (First University Computer Science Student). This was the one I found :)
    So hi!
Results 1 to 25 of 26
Page 1 of 2 1 2