util

When to use Enum or Collection in Java

Under what circumstances is an enum more appropriate than, for example, a Collection that guarantees unique elements (an implementer of java.util.Set, I guess...)? (This is kind of a follow up from my previous question) Thanks! ...

'app --help' should go to stdout or stderr?

I think stdout, so you can easily grep, what do you think? ...

getISOCountries() method displays only two letters of contry name. Is Get full name of country using this method possible?

I used following code, but it displays only 2 digit of ISO country name. For example, for "INDIA", it only display "IN". Can I show full name as "INDIA" ? String[] loc= Locale.getISOCountries(); for(int a=0;a<loc.length;a++) { System.out.println("ISO Contry "+a+":"+loc[a]); } I want full name of ISO country. Is it possible to get ...

How to call sql procedure from an html button?

Hey guys, my doubt is pretty simple to understand. I have a sql procedure that generates a util file as its output depending on the input parameters that are passed to it. I have to pass these parameters from an html page from 3 text boxes.There will also be a button ,on clicking which, the procedure will be called and the util will be...

How to disable JUL in 3rd party jar?

In 3rd party jar logger exist this code. 'Logger.getLogger("net.java.ao").log(Level.INFO, sql.toString());' How can I disable this logger from my program? ...

Where to find an overview of backed Collection methods/classes

I am trying to find an overview of all methods in the java.util package returning backed Collections (and Maps). The only ones easy to find are the synchronizedXX and immutableXX. But there are others like subMap(). Is there a more comfortable way to find out more about all util methods returning backed collections than to actually read ...