Monday, September 20, 2010

Top 8 Java People


8. Tomcat & Ant Founder

James-Duncan-Davidson

James Duncan Davidson, while he was software engineer at Sun Microsystems (1997–2001), created Tomcat Java-based web server, still widely use in most of the Java web projects, and also Ant build tool, which uses XML to describe the build process and its dependencies, which is still the de facto standard for building Java-based Web applications.

Related Links

  1. James Duncan Davidson Twitter
  2. James Duncan Davidson Wiki
  3. James Duncan Davidson personal blog
  4. Apache Ant
  5. Apache Tomcat

7. Test Driven Development & JUnit Founder

Kent-Beck

Kent Beck, creator of the Extreme Programming and Test Driven Development software development methodologies. Furthermore, he and Erich Gamma created JUnit, a simple testing framework, which turn into the de facto standard for testing Java-based Web applications. The combine of JUnit and Test Driven Development makes a big changed on the way of coding Java, which causes many Java developers are not willing to follow it.

Related Links

  1. Kent Beck Twitter
  2. Kent Beck Wiki
  3. Kent Beck Blog
  4. JUnit Testing Framework
  5. Extreme Programming Wiki
  6. Test Driven Development Wiki

6. Java Collections Framework

Joshua-Bloch

Joshua Bloch, led the design and implementation of numerous Java platform features, including JDK 5.0 language enhancements and the award-winning Java Collections Framework. In June 2004 he left Sun and became Chief Java Architect at Google. Furthermore, he won the prestigious Jolt Award from Software Development Magazine for his book, "Effective Java", which is arguably a must read Java's book.

Related Links

  1. Joshua Bloch Twitter
  2. Joshua Bloch Wiki

5. JBoss Founder

Marc-Fleury

Marc Fleury, who founded JBoss in 2001, an open-source Java application server, arguably the de facto standard for deploying Java-based Web applications. Later he sold the JBoss to RedHat, and joined RedHat to continue support on the JBoss development. On 9 February 2007, he decided to leave Red Hat to pursue other personal interests, such as teaching, research in biology, music and his family.

Related Links

  1. Marc Fleury Wiki
  2. Marc Fleury Blog
  3. JBoss Application Server

4. Struts Founder

Craig-McClanahan

Craig Mcclanahan, creator of Struts, a popular open source MVC framework for building Java-based web applications, which is arguably that every Java developer know how to code Struts. With the huge success of Struts in early day, it's widely implemented in every single of the old Java web application project.

Related Links

  1. Craig Mcclanahan Wiki
  2. Craig Mcclanahan Blog
  3. Apache Struts

3. Spring Founder

Rod-Johnson

Rod Johnson, is the founder of the Spring Framework, an open source application framework for Java, Creator of Spring, CEO at SpringSource. Furthermore, Rod's best-selling Expert One-on-One J2EE Design and Development (2002) was one of the most influential books ever published on J2EE.

Related Links

  1. Rod Johnson Twitter
  2. Rod Johnson Blog
  3. SpringSource
  4. Spring Framework Wiki

2. Hibernate Founder

gravin-king

Gavin King, is the founder of the Hibernate project, a popular object/relational persistence solution for Java, and the creator of Seam, an application framework for Java EE 5. Furthermore, he contributed heavily to the design of EJB 3.0 and JPA.

Related Links

  1. Gavin King Blog
  2. Hibernate Wiki
  3. Hibernate Framework
  4. JBoss seam


1. Father of the Java programming language

James-Gosling

James Gosling, generally credited as the inventor of the Java programming language in 1994. He created the original design of Java and implemented its original compiler and virtual machine. For this achievement he was elected to the United States National Academy of Engineering. On April 2, 2010, he left Sun Microsystems which had recently been acquired by the Oracle Corporation. Regarding why he left, Gosling wrote on his blog that "Just about anything I could say that would be accurate and honest would do more harm than good."

Related Links

  1. James Gosling Blog
  2. James Gosling Wiki



Saturday, September 18, 2010

Java Programming: Indian currency format 2


public class Test {          public static String inidianCurrencyFormat(double value) {         DecimalFormat formatter = new DecimalFormat("0.00");         String formattedValue = formatter.format(value);         String integral = formattedValue.replaceAll("\\D\\d++", "");         String fraction = formattedValue.replaceAll("\\d++\\D", "");         if(integral.length() <= 3) return formattedValue;         char lastDigitOfIntegral = integral.charAt(integral.length()-1);         integral = integral.replaceAll("\\d$", "");         return integral.replaceAll("(?<=.)(?=(?:\\d{2})+$)", ",")+                 lastDigitOfIntegral+"."+fraction;     }          public static void main(String[] args){         System.out.println(inidianCurrencyFormat(0.898));         System.out.println(inidianCurrencyFormat(890.898));         System.out.println(inidianCurrencyFormat(567890.898));         System.out.println(inidianCurrencyFormat(1234567890.898));     } } 

Thursday, September 9, 2010

Core Java Programming: Indian currency format


public class Test {          public static String inidianCurrencyFormat(double value) {         DecimalFormat formatter = new DecimalFormat("0.00");         String formattedValue = formatter.format(value);         String integral = formattedValue.replaceAll("\\D\\d++", "");         String fraction = formattedValue.replaceAll("\\d++\\D", "");         if(integral.length() <= 3) return formattedValue;         char lastDigitOfIntegral = integral.charAt(integral.length()-1);         integral = integral.replaceAll("\\d$", "");         return integral.replaceAll("(?<=.)(?=(?:\\d{2})+$)", ",")+                 lastDigitOfIntegral+"."+fraction;     }          public static void main(String[] args){         System.out.println(inidianCurrencyFormat(0.898));         System.out.println(inidianCurrencyFormat(890.898));         System.out.println(inidianCurrencyFormat(567890.898));         System.out.println(inidianCurrencyFormat(1234567890.898));     } } 

Java Code For India Currency Formate


<%!
public static String inidianCurrencyFormat(String amount) {
        try {
            double value = Double.parseDouble(amount);
            boolean isNegative = false;
            if(value < 0) {
                value = value * -1;
                isNegative = true;
            }
        java.text.DecimalFormat formatter = new java.text.DecimalFormat("0.00");
            String formattedValue = formatter.format(value);
            String integral = formattedValue.replaceAll("\\D\\d++", "");
            String fraction = formattedValue.replaceAll("\\d++\\D", "");
            if(integral.length() <= 3) return formattedValue;
            char lastDigitOfIntegral = integral.charAt(integral.length()-1);
            integral = integral.replaceAll("\\d$", "");
            integral = integral.replaceAll("(?<=.)(?=(?:\\d{2})+$)", ",")+
                    lastDigitOfIntegral+"."+fraction;
            if(isNegative) {
                integral = "- " + integral;
            }
            return integral;
        } catch (NumberFormatException e) {
            //log.error("Invalid number" + amount);
            return amount;
        }
    }

%>

Tuesday, September 7, 2010

Java Programming: Indian currency format


locale: en_IN

Locale locale = new Locale("en", "IN", "");

NumberFormat format = NumberFormat.getCurrencyInstance(locale);

format.format(-100.24) produces the following string: "-Rs.100.24"

while format.format(100.24) creates this: "Rs.100.24 Rs."