Notes by meiu

Displaying notes 1 - 10
Created by meiu on October 14, 2011 14:21:39    Last update: October 14, 2011 14:22:24
This works for Eclipse Indigo. From the Help menu, select Install New Software... Select --All Available Sites-- for the Work with dropdown Enter maven in filter text Check m2e and install:
Created by meiu on July 21, 2011 09:34:10    Last update: July 21, 2011 11:00:42
Click Project -> Properties Select "Builders" Click "New", select "Ant Builder", click "OK" Select the Buildfile, set the Base Directory Set targets You may or may not want the default "Java Builder". Uncheck it if you don't want to run the default builder.
Created by meiu on July 21, 2011 09:05:31    Last update: July 21, 2011 09:05:31
To configure: Click Run -> External Tools -> External Tools Configurations... Select "Ant Build", click the "New" icon on the top left Enter a name (e.g. "Ant Build"), select a Buildfile ( build.xml ), set the Base Directory. Click "Apply". To run: Click Run -> External Tools -> Ant Build (the name entered in Step 2 above)
Created by meiu on March 31, 2011 20:05:53    Last update: March 31, 2011 20:05:53
The Java exclusive or operator is ^ . This example uses it to reverse an integer array: public class ExclusiveOrExample { public st...
Created by meiu on March 31, 2011 19:54:05    Last update: March 31, 2011 19:54:05
With StringBuffer/StringBuilder: public class ReverseString { private static... Without StringBuffer/StringBuilder: public class ReverseString { private static...
Created by meiu on February 09, 2010 03:26:14    Last update: March 31, 2011 09:00:19
Simple JDBC code for Oracle. import java.sql.*; public class JDBCHelloWo...
Created by meiu on February 28, 2011 16:01:10    Last update: February 28, 2011 16:01:10
Change port 1098 to 1096 in jboss-5.1.0.GA\server\all\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml . <bean class="org.jboss.services.binding.ServiceBin...
Created by meiu on July 22, 2010 22:40:23    Last update: July 22, 2010 22:41:04
Base64 encoding replaces every 3-byte (24bit) sequence with a 4-byte sequence with 6 effective bits in each byte - therefore eliminating un-printable characters. The expansion ratio is 4:3.
Created by meiu on July 22, 2010 20:16:59    Last update: July 22, 2010 20:17:28
By this thread on OTN, JRockit mission control and JRockit real time are exactly the same! JRockit Mission Control x JRockit Real Time But Oracle is offering downloads with two separate links with no explanation what so ever?!
Created by meiu on July 07, 2010 15:16:34    Last update: July 07, 2010 15:17:08
Example: <%@ taglib prefix="fmt" uri="http://java.sun.com/j... Full attributes: Attribute Meaning value Date object to be formatted type Format time only ('time'), date only ('date'), or both date and time ('both')? dateStyle Style to format date, e.g., default, short, long, full etc (c.f. JavaDoc for java.text.DateFormat) timeStyle Style for format time, e.g., default, short, long, full etc (c.f. JavaDoc for java.text.DateFormat) pattern User defined pattern, e.g., MM/dd/yyyy timeZone Which time zone to display the date for? var If the var attribute is specified, then a String value containing the formatted date is assigned to the named variable. Otherwise, the <fmt:formatDate> tag will write out the formatting results. scope When the var attribute is present, the scope attribute specifies the scope of the resulting variable. .
Previous  1 2 Next