Notes by meiu
Displaying keyword search results 1 - 9
Created by meiu on February 09, 2012 09:55:26
Last update: February 09, 2012 09:55:26
In the package explorer pane:
Right click on the folder
Move mouse to Build Path
Select Use as Source Folder
To revert a source folder selection: mouse over Build Path and select Remove from Build Path .
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 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 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.
.
Created by meiu on February 10, 2010 20:53:27
Last update: February 10, 2010 20:53:27
Step by step procedure to setup OC4J server for Eclipse. Version used is Galileo for Java EE Developers. Initialize OC4J You'll be asked to create a password the first time you run the standalone OC4J server. You need to remember this password and use it in the Eclipse setup. In the following C:\jdev1013_5 is where the JDeveloper suite is installed.
cd C:\jdev1013_5\j2ee\home java -jar oc4j.jar Add Server Runtime Environment Go to Windows menu, bring up the Preferences dialog. Select Server -> Runtime Environments, click Add. Select Oracle OC4J Standalone 10.1.3.n, click Next. Enter J2EE home and click Finish. Add a server for OC4J Go to Windows menu, select Show View -> Servers. If Servers menu is not visible, select Other and enter "servers" in the...
Created by meiu on July 29, 2009 19:30:35
Last update: July 29, 2009 19:30:35
Without the break statement, the Java switch/case block looks very deceptive.
Code:
public class TestCase {
public static void ...
Test:
C:\tmp>java TestCase
No arguments
One argume...