Tag Archives: java

Formatting Decimal Values in Java

I wanted to format my large double values in comma separated format. I took help from here.   import java.text.DecimalFormat;   public class DecimalFormatTest { private static void format(Double value, String pattern) { DecimalFormat decimalFormat = new DecimalFormat(pattern); String output = decimalFormat.format(value); System.out.println(value + “  ” + pattern + “  ” + output); } public [...]

Sorting ArrayList in Java using Collections

I had some bit hard time sorting a list. Objects in a ArrayList contains month and year along with other properties. I want to sort that list depending on the month year combo. How i did it ??

Connect to Oracle from Java via JDBC for calling Stored Procedure

My application runs on postgre. I had spring-hibernate connection from my JSF to Postgre. But, for login I needed to connect to the mother application. My core application runs on oracle. User authentication can be found through a stored procedure. I couldn’t find anything, so that I connect to databases at a time. So, took [...]

Setting Proxy Information for maven

I was working on a J2EE app on my new work place. I was doing the first thing for starting development… Building my frame work… On my way I needed to connect maven repository through maven. But I couldn’t. I was eating connection timeout error. Suddenly I remembered, the network guys of my new workplace [...]

Follow

Get every new post delivered to your Inbox.