- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I swim through and around the problem at hand, observing the pieces from all angles, and building the picture. The answers to the most difficult problems sometimes come while I'm not focussing on them - sleeping or working on something else. Once I have…
- Interests
- I love the universe where we live. So vast, so enticing. I'm intrigued with the history of life on earth…
- PC Specs
- It's a reasonably old-spec Intel dual-core 2.8GHz processor with 1Gb RAM, running Ubuntu 11.04. Runs…
13 Posted Topics
Re: You've given us everything *except* the `javac` command. Change to the folder where you .java files are stored and try: `javac -d . *.java` That should get you going. | |
Re: I don't see where `StrRegTown` comes from. As this is set outside the outer loop your algorithm is only ever going to match offices in one town. If this isn't what you intend, perhaps you should use `EmpTownCode` instead. I also don't understand where `StrCentreRef` comes from or what part … | |
Re: Please note guys, and anybode else who comes here from searching for a solution to the problem of parsing CSV data: The code posted in this thread does not parse CSV data in any but it's most excruciatingly simple form. You cannot just split on commas because a) character fields … | |
Re: jackmaverick1 has the right answer. The value of names.length is 10, so your program is exploding when k==4. Consider using a java.util.ArrayList<String> instead. | |
Re: Okay, it's a good start. A couple of important points though. Firstly, you're running everything in a static method. You should run in an instance. Follow these steps: 1) Take all your local variables out of the main method and make them class variables. 2) Change the line that starts … | |
This question is a bit academic now as my contract at this place is coming rapidly to a close. But for future reference, I'd be very interested in the answer. We're talking about .Net 2.0 and Visual Studio 2005. Don't limit your responses to this platform though; I'm interested in … | |
Re: All kinds of things happening here... Firstly, you're passing in a parameter of [ICODE]char unit2[/ICODE] but that parameter never gets used in the routine. So presumably unit is a numeric class member of some kind that your method can use. Is that what you want? Secondly, in the method displayData, … | |
Re: The first one means include the "from" value (606) and the second one means include the "to" value. If you had used false instead of true then your subset would have returned [608,610,612,629]; [URL="http://download.oracle.com/javase/7/docs/api/java/util/TreeSet.html"]http://download.oracle.com/javase/7/docs/api/java/util/TreeSet.html[/URL] | |
Re: Well, what I do is: A class called Employee that represents a single instance of an employee. Probably corresponding to a row from your Employee table. Possible containing related or derived employee data as well. How you expose the properties of your Employee class is a design decision only you … | |
Re: Definitely either Java 6 or Java 7. Definitely not Java 5 (1Z0-853) unless you're looking at joining a team that's working exclusively at that release level. Java 6 introduced radically useful and flexible new features. Java 7 introduced much less new stuff. But... a beginner?!? Have you looked at any … | |
Re: You need an extra close brace after the constructure in class Length. And take out the extra brace on the very last line. The way your code is, the public class InheritanceTest is a nested inner class within Length. I reckon that's what stultuske was talking about. Other than that, … | |
Re: Once your not-looping-at-all issue is solved you'll have to do something about your terminating condition because your next problem is that it will never stop looping. Your terminating condition will always be true: [ICODE]while (proc != 5 || proc != 2 || proc != 3);[/ICODE] It doesn't matter what value … | |
I've seen a lot of posts over time relating to importing and exporting CSV. Most of the answers involve using TextReader.readline and String.split, [B]which will not work[/B] with any but the simplest data. When you are writing for users who have the expectation that your application will work with anything … |
The End.