Search:

Type: Posts; User: Stockholm Syndrome

Page 1 of 2 1 2

Search: Search took 0.15 seconds.

  1. Wordsearch game - How to select multiple buttons/textviews in one swipe?

    Hey,

    I'm creating a wordsearch game on the android platform and i'm currently struggling to figure out how i'll go about selecting multiple buttons or textviews consisting of one letter to form a...
  2. Replies
    6
    Views
    4,911

    Re: Help with Bounded Buffer problem

    Cheers, I've added in some printlns that print out each variable as soon as any change is made and it seems to be giving the correct results. It's only when I call the printStatus() method in the...
  3. Replies
    6
    Views
    4,911

    Re: Help with Bounded Buffer problem

    Thanks thats great help
  4. Replies
    6
    Views
    4,911

    Help with Bounded Buffer problem

    Hey there,

    Been working on an assignment whereby I have to create a bounded buffer in Java using threads. I'll briefly state the main specs for the assignment instead of pasting the whole thing:
    ...
  5. Re: Help with Synchronisation with a semaphore

    Thanks for the help. I'll post how I solved it below. By "solve" I mean it gets the required output in the sense that Point A is always reached before Point B, but would you be able to let me know if...
  6. Re: Help with Synchronisation with a semaphore

    How would I do this? I don't expect you to spoon feed but I'm really lost sorry. We've been taught little to nothing about threads and semaphores and I can't seem to find any useful information to...
  7. Help with Synchronisation with a semaphore

    Hey,

    Recently been introduced to threads & came across a question involving the usage of semaphores. I'm just a bit confused as to how to use them and was wondering if anybody could shed a bit of...
  8. [SOLVED] Re: Small problem regarding inheritance of classes

    Yea sorry I phrased that wrong.. I rewrote my code and my print method that I overrode was no longer called putEmp(). Basically the same though. Thanks again for the help
  9. Replies
    4
    Views
    1,410

    [SOLVED] Re: MinMax

    Sounds like an error with whatever loop you're using. Your best bet is to paste your attempted code here so everybody can take a look and guide you through your problem. It's hard to help when we...
  10. [SOLVED] Re: Small problem regarding inheritance of classes

    Thanks for the help I solved it by making a new print method in class Employee and then overriding it in the subclass Tradesman.
  11. [SOLVED] Re: Small problem regarding inheritance of classes

    How do I do that?
  12. [SOLVED] Re: Small problem regarding inheritance of classes

    But how would I use it? For instance in put(), if i use putTrade() instead of putEmp() I will get an error any time I try to print an employee without a trade as they have different parameters
  13. [SOLVED] Small problem regarding inheritance of classes

    Hey, just moved onto inheritance in college and was working through our first exercise sheet when I got this problem. For the exercise, we have to write a class encapsulating the notion of an...
  14. [SOLVED] Re: Quick question regarding ActionListeners

    Ah they seem much handier. I knew there had to be a better way I just couldn't work out how. Thanks a lot :) (Apologies for making a thread out of this)
  15. [SOLVED] Quick question regarding ActionListeners

    Hey, just have a quick question. I'm creating a GUI for a program which does different calculations based on what button you press and it's my first time using ActionListeners. I'm wondering, do I...
  16. Re: How to place a number in front of a string?!!

    WantHelp are you deleting any posts? I can't see any of your attempted code & I'd like to help
  17. Replies
    16
    Views
    2,218

    Re: Merging 2 arrays

    Hmm it's working for me mate so it should be working for you too. What IDE are you using? Could you show me how you're attempting to input? You could try merging the arrays using while loops as an...
  18. Replies
    16
    Views
    2,218

    Re: Merging 2 arrays

    I don't really understand how you're getting no output? Although the problem can be solved differently, it seems to be your print statement screwing up the output. If you put System.out.println("The...
  19. Quick help with using linux terminal

    Just recently started using linux for one of my college modules and was wondering if anybody could help with this small problem. Take this tiny sample program for example, just to show you what i...
  20. Re: Question about writing a phonebook sorting program

    Thanks for the reply copeg :) I have everything done now and running, but my last question is about the printing format. If i enter a number that starts with a zero, for example 0871234567, it will...
  21. Question about writing a phonebook sorting program

    Hello, I have a couple of questions i'd like to ask regarding a recent assignment ive been given to do. I have to write a program that reads in a list of names & numbers in the format:

    Bill Smith...
  22. Replies
    10
    Views
    1,954

    [SOLVED] Re: GuessingGame problem

    All was needed was to change while(i<w.length.....) to while(i<w.length-1....) . Works perfectly now. Thanks for your help once again :)
  23. Replies
    10
    Views
    1,954

    [SOLVED] Re: GuessingGame problem

    Sorry I dont fully understand. i++ is the only thing present in the loop body, i'm not sure where you mean to put it

    static boolean member(int x, int[] w)
    {
    int i=0;
    while(i<w.length &&...
  24. Replies
    10
    Views
    1,954

    [SOLVED] Re: GuessingGame problem

    Thanks very much for the help I appreciate it :) Regarding the loops, the only reason i use a while loop is because my lecturer showed us that way & said its the simplest way :D Personally, I don't...
  25. Replies
    10
    Views
    1,954

    [SOLVED] Re: GuessingGame problem

    Sorry yes i understand what you mean. I was looking at another example I had done and thats what was embedded in the if statement. What could i use to determine if x is found? Would it be correct to...
Results 1 to 25 of 43
Page 1 of 2 1 2