| java Programming Glossary: donJava EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean http://stackoverflow.com/questions/11986847/java-ee-6-javax-annotation-managedbean-vs-javax-inject-named-vs-javax-faces  the simplest JSF Managed beans. JSF Managed Beans In short don t use them if you are developing for Java EE 6 and using CDI... can be thought of as thread safe single use beans that don t maintain any state between two web requests. Stateful EJBs.. beans unless you are working in a servlet container and don t want to try and get CDI working in Tomcat although there are.. 
 What is the list of valid @SuppressWarnings warning names in Java? http://stackoverflow.com/questions/1205995/what-is-the-list-of-valid-suppresswarnings-warning-names-in-java  to suppress warnings relative to finally block that don t return hiding to suppress warnings relative to locals that.. 
 Why is not possible to extend annotations in Java? http://stackoverflow.com/questions/1624084/why-is-not-possible-to-extend-annotations-in-java  is not possible to extend annotations in Java  I don't understand why there is no inheritance in Java annotations.. the answer in the JSR 175 Design FAQ where it says Why don t you support annotation subtyping where one annotation type.. 
 Is there a performance difference between a for loop and a for-each loop? http://stackoverflow.com/questions/256859/is-there-a-performance-difference-between-a-for-loop-and-a-for-each-loop 
 What is the difference between “text” and new String(“text”) in Java? http://stackoverflow.com/questions/3052442/what-is-the-difference-between-text-and-new-stringtext-in-java  s new String silly Strings are objects in Java so why don t we use new to create them What referential distinction means.. 
 Convenient way to parse incoming multipart/form-data parameters in a Servlet http://stackoverflow.com/questions/3337056/convenient-way-to-parse-incoming-multipart-form-data-parameters-in-a-servlet  What is the best way to parse incoming request I don t want to write my own parser probably there is a ready solution... 
 Howto unescape a Java string literal in Java http://stackoverflow.com/questions/3537706/howto-unescape-a-java-string-literal-in-java  yet another ginormous jar file with buttloads of cruft you don t need or want. It has a licence. Some people don t want to.. you don t need or want. It has a licence. Some people don t want to worry about a licence no matter how good or how bad.. returns. It s written to take a writer argument so if you don t pass it one it still has to create a dummy StringWriter for.. 
 Regex Named Groups in Java http://stackoverflow.com/questions/415580/regex-named-groups-in-java  being able to have one named group per same name which you don t always have control over and not being able to use them for.. 
 How to reliably guess the encoding between MacRoman, CP1252, Latin1, UTF-8, and ASCII http://stackoverflow.com/questions/4198804/how-to-reliably-guess-the-encoding-between-macroman-cp1252-latin1-utf-8-and  extension at all because at least then you know that you don t know what you ve got. However we aren t goint to go that far... Python and in that order. If it s just a program then we don t really care what language it s in so long as it comes in full.. This is especially the case with small files where you don t have enough data to go on. Fortunately our files are seldom.. 
 Unicode equivalents for \w and \b in Java regular expressions? http://stackoverflow.com/questions/4304928/unicode-equivalents-for-w-and-b-in-java-regular-expressions  If you make fixes to it I d love to hear of it but you don t have to. It s pretty short. The guts of the main regex rewriting.. 
 Java Regex Helper http://stackoverflow.com/questions/5767627/java-regex-helper  class. This is main cause of why I asked this question. We don't have the breeze of Regex in Perl but at least we can use the.. partial list of those problems and what can and cannot be done about them. The inconvenience method is very bizarrely named.. the right answer here give people 1st class regexes so you don t go nuts. Here s a fair collection of Groovy regex examples.. 
 for loop optimization http://stackoverflow.com/questions/6093537/for-loop-optimization  once. While you can do this by hand Item 45 programmers don t always do so. See Also Is there a performance difference between.. 
 Array of Generic List http://stackoverflow.com/questions/7810074/array-of-generic-list  then goes on to say the following Since type variables don t exist at run time there is no way to determine what the actual.. 
 Java RSS library [closed] http://stackoverflow.com/questions/113063/java-rss-library  for generating RSS feeds any recommendations Cheers Don  java rss rome   share improve this question   I recommend Rome.. 
 debug JSP from eclipse http://stackoverflow.com/questions/123462/debug-jsp-from-eclipse  from a JSP but it's also fairly unappealing Cheers Don  java eclipse jsp servlets debugging   share improve this question.. 
 Eclipse and curly braces http://stackoverflow.com/questions/1236531/eclipse-and-curly-braces  block of code first do the settings as suggested by Don and then select that piece of code and right click Source Code.. 
 Detect if certain software is installed on a user's machine in Java http://stackoverflow.com/questions/1354186/detect-if-certain-software-is-installed-on-a-users-machine-in-java  values in a properties file . Other option as mentioned by Don is to install the required software as relative to your installation.. 
 Is it feasible to create a REST client with Flex? http://stackoverflow.com/questions/153420/is-it-feasible-to-create-a-rest-client-with-flex  So I dug further and found this post and discussion with Don Box one of the original SOAP guys . Apparently this is a fairly.. Method Override header then you can use this approach. The Don Box comments make me think it's fairly well supported but I've.. 
 Verify email in Java http://stackoverflow.com/questions/153716/verify-email-in-java  the regex there are better ways to check basic validity. Don and Michael point out that Apache Commons has something and.. 
 java.io.EOFException while writing and reading froma servlet http://stackoverflow.com/questions/2666040/java-io-eofexception-while-writing-and-reading-froma-servlet  is an object of a serializable class out.flush out.close Don t close your out here ObjectInputStream in new ObjectInputStream.. 
 Representing Monetary Values in Java [closed] http://stackoverflow.com/questions/285680/representing-monetary-values-in-java  probably with BigDecimal.ROUND_HALF_EVEN rounding. Edit As Don mentions in his answer there are open sourced projects like.. 
 differences between 2 JUnit Assert classes http://stackoverflow.com/questions/291003/differences-between-2-junit-assert-classes  are junit.framework.Assert and org.junit.Assert . Cheers Don  java unit testing junit assert   share improve this question.. 
 Java assertions underused http://stackoverflow.com/questions/298909/java-assertions-underused  are turned off at runtime by default WHY OH WHY Cheers Don  java assertions   share improve this question   assertions.. 
 Dynamic column cell width http://stackoverflow.com/questions/300383/dynamic-column-cell-width  widths is not even returned to the client side Cheers Don  java html jasper reports   share improve this question   While.. 
 Replace string in file http://stackoverflow.com/questions/3147615/replace-string-in-file  Java 1.4 so dont't have access to NIO Scanner etc. Thanks Don  java io   share improve this question   In place replacing.. 
 java ternary operator http://stackoverflow.com/questions/3181217/java-ternary-operator  new ArrayList new HashSet I'm using Java 1.4. Thanks Don  java ternary operator   share improve this question   This.. 
 JSON character encoding http://stackoverflow.com/questions/3995559/json-character-encoding  a way to set the default charset for each response Thanks Don  java json spring mvc character encoding   share improve this.. under the covers response.setCharacterEncoding UTF 8 Don't change your content type header. It's perfectly fine for JSON.. 
 Java Regex Helper http://stackoverflow.com/questions/5767627/java-regex-helper  tell the difference between inputs of vs of . Aw gee Don t people ever test this stuff And again the broken and fundamentally.. 
 Injecting Properties using Spring & annotation @Value http://stackoverflow.com/questions/6425795/injecting-properties-using-spring-annotation-value  Inject Property Value into Spring posted by DON Credit to Don for the post but I just wasn't sure how to finish it with the.. 
 spring MVC sample web app http://stackoverflow.com/questions/777946/spring-mvc-sample-web-app  my needs e.g. require a local database to be setup. Thanks Don  java spring mvc spring sample   share improve this question.. 
 |