| Thread | Last Post | Replies |
|
| How to prevent code repetition with enums? | 18 Nov 2006 10:15 GMT | 5 |
Hello. I was wondering if there is a better way to write the below code. I have several enums, where each enum is for an option type and each option has a short 1-3 letter string used when I need to identify the option from a string. The code for each option type is identical
|
| Calling constructor inside another constructor | 18 Nov 2006 09:36 GMT | 8 |
Hello, I have a problem calling a constructor inside another constructor, consider this code: class Point {
|
| reading a file from WEB-INF? | 18 Nov 2006 08:51 GMT | 2 |
I have some text files I'd like to put on my web server (preferably in the WEB-INF directory though they could be in a regular web folder) that I will read and parse from some of my servlets. Does anyone have a code snippet from doing this from within, say, my servlet's init() ...
|
| Couple java.net questions | 18 Nov 2006 02:40 GMT | 3 |
I'm encountering a couple of bogosities here, both of which probably stem from not handling some corner case involving HTTP and URLs. The first of those is that some browsing has turned up URLs in links that look like http://www.foo.com/bar/baz?x=mumble&y=frotz#xyz#uvw
|
| How to get the full classpath info | 18 Nov 2006 02:19 GMT | 3 |
Hi, Java guru, I am in a situation that I need to figure out which *.jar files the java process is using. Basically this huge J2EE application has a lot of customized jar files (hundreds jar files). We are troubleshooting an
|
| Please help with java app error "main class not found" | 18 Nov 2006 00:14 GMT | 3 |
I have a java application that works perfect on a fresh installation (xp). However I'm trying to run on a computer thats had load of rubbish installed before. When trying to run my app I get the error message "main class not
|
| interface & abstract class variables | 17 Nov 2006 23:56 GMT | 4 |
While writing abstract class do you define any variables? My question is: Why you do that? it doesn't make sense to me becouse you can't make instance of abstract class.. I understand why to make non-abstract method in abstract class, but
|
| ASCII character 13 | 17 Nov 2006 23:21 GMT | 1 |
I will be supplied a file of names delimited by the ASCII character 13. I know in AppleScript I would set this : set cr to ASCII character 13 How do I refer or set this in java. I figure I can read the file in an
|
| Display Google map with j2me | 17 Nov 2006 23:07 GMT | 3 |
I need to display a google map in a mobile app for college. Any ideas welcome cheers Aidan
|
| J2EE on MAC OSX | 17 Nov 2006 20:33 GMT | 1 |
i would simply like to start learning some J2EE on Mac OSX 10.4. i will not need to do anything fancy, just learn some basic. questons:
|
| Problem with regular expressionsq | 17 Nov 2006 19:29 GMT | 8 |
I have the following problem to solve with regular expressions: An editor can enter data through a webfronted editor. Certain HTML Tag are allowed others are not. When he saves the data the content should be check using regular expressions.
|
| Algorithm to find pairs in array [can not order] | 17 Nov 2006 17:33 GMT | 6 |
Hello, so I am trying to make a better (with less complexity, prefferably without a nested loop) to find something like pairs of items in an ArrayList: So far I've got this:
|
| Is this compiler warning impossible to get rid of? | 17 Nov 2006 16:17 GMT | 5 |
I'm talking about of the following warning: "myClass.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details." Usually when this warning occours for a LinkedList or for other linear
|
| Rune-Time Error | 17 Nov 2006 15:38 GMT | 5 |
http://img390.imageshack.us/img390/7571/errwe3.png I compiled the program fine but when I try to execute it, I get the error above. Program source code:
|
| Why can a final(!) StringBuffer can be appended? | 17 Nov 2006 15:04 GMT | 10 |
How could it be that I declare a StringBuffer to be final but when I try to append it to something its value changes to the appended value? The StringBuffer is not re-created on the system (immutable right?) so
|