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...
Type: Posts; User: Stockholm Syndrome
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...
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...
Thanks thats great help
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:
...
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...
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...
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...
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
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...
Thanks for the help I solved it by making a new print method in class Employee and then overriding it in the subclass Tradesman.
How do I do that?
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
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...
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)
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...
WantHelp are you deleting any posts? I can't see any of your attempted code & I'd like to help
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...
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...
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...
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...
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...
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 :)
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 &&...
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...
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...