java: how do I create an array of tuples?

how can I create an array of tuples in jsp (java) like (a:1, b:2) (c:3, d:4) ... ... ...

How do I copy a 2 Dimensional array in Java??

I need to make a copy of a fairly large 2 dimensional array for a project I am working on. I have two 2D arrays: in...

Difference between a HashMap and a dictionary ADT?

What is the difference between a Hash Map and dictionary ADT. And when to prefer one over another. For my programmin...

External log4j.xml file?

I am trying to run a jar with the log4j.xml file on the file system outside the jar like so: java -jar MyJarName.ja...

Parsing a log file in Java?

All, I have a log file with the below content. Request from Centercord. 2010-12-14 12:42:13.724 [ 6796] **********...

Difference between null and empty (“”) Java String?

What is the difference between null and the "" (empty string)? I have written some simple code: String a = ""; Str...

Java Multiple Scanners?

I have a class that creates multiple Integer objects and puts them into a LinkedList as shown below: public class S...

(Unknown Source) in Exception stack trace?

Background This question is related to Why does String.valueOf(null) throw a NullPointerException? Consider th...

How can I move the whole layout to adapt to pre-printed form on different printers?

We have US Healthcare Medical Billing Product developed using Java, Hibernate, Spring and Jasper Report 5.6. that ar...

Split Java String by New Line?

I'm trying to split text in a JTextArea using a regex to split the String by \n However, this does not work and I al...

HashMap - getting First Key value?

Below are the values contain in the HashMap statusName {Active=33, Renewals Completed=3, Application=15} Java cod...

How to ICMPs and traceroutes in Java?

Java does not have primitives for ICMPs and traceroute. How to overcome this? Basically I'm building code that shoul...