I think I have spoken too soon in saying that I have completed this. I have split the code into four different classes as per what my lecturer suggested.
I have one remaining problem that I would...
Type: Posts; User: digitalsystems
I think I have spoken too soon in saying that I have completed this. I have split the code into four different classes as per what my lecturer suggested.
I have one remaining problem that I would...
thanks for your help with this question. I did not fully understand what you were suggesting so I went back to the professor for guidance and it turns out that many people were in the same question....
sorry for not responding, thank you very much for your help.
I have added another arraylist of JLabels that will hold all the jlabels as they are created in the for loop in the actionPerformed...
I was using it so that I could use the same reference to the array for when I had multiple selections.
I have moved the creation of the lists to the constructor, I am thinking that I will also...
sorry, it does not seem to be working for me. I have created two array lists, one to store the names of the cities selected(I am thinking I may need this when I move onto the other part of the...
at the moment they are not.
are you suggesting about adding the individual times to a list as they are generated in the actionPerformed method?
and then perform the an update on them ie (+1000...
updated with a main method now...
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.util.Date;
import...
sorry, haven't created one yet, using BlueJ and just creating new instances of it
Currently doing an assignment for college that involves displaying multiple "clocks" on screen depending on how many cities are selected from a list.
I have most of it built I believe but I am...
Thanks for the quick reply, seems to have solved the problem for me.
I have an assignment for college that involves placing randomly chosen words from a text file into a 2-d array. I have nearly completed ithowever I am having difficulty with a list of string type.
...
Guys, thank you very much for your responses.
I have taken the commas out of the String alphabet, I had thought that they were needed in a string, have learned my lesson on this.
I have changed the...
Yes it does compile, please feel free to try it yourself.
yes I did test it with "the quick brown fox jumps over a lazy dog" ( for which I got a positive response) and "The quick brown fox jumped...
okay, made the changes regarding the lower case and the braces for the else if statement.
Not sure I follow you on the suggestion of the arrays. Are you saying to convert all the characters in the...
I've searched through the forum to see if this question has been posted previously but I can't find it so apologies in advance if I missed it...
What I am trying to do is to run the program to...
In this program we are asked to request the user to enter a phone number in the following format:
(0xx)xxxxxxxxx
The first number must be 0 and there can be up to 4 digits inside the brackets...
Thanks for the response.
For example if I input "Hello", I return a value of 10 when I would expect to return a value of 6. Or if I input "Tommy" I get a value of 20 instead of 4. I can't see a...
Hi all,
Have an issue with my code below where it is giving me the wrong output. Essentially the code is to scan a word entered to see if it contains vowels. Each vowel(regardless of location in...
Thanks for your help, realised my error shortly after I posted it.
Thanks, I will go through the announcement topic now.
On this code, I am not getting the correct output for this program, for example, if I enter the word "Today", I get a response telling me...
Hello all,
Currently studying java in college for first time and cannot see where my error is in the following code, could some one with a lot more experience help me out?
import...