Search

You can find the results of your search below. If you didn't find what you were looking for, you can create or edit the page named after your query with the appropriate button.

Results


Thread Example: 12 Hits
teFormat; import java.util.*; class threads { public static String[] names = { "Alice", "Bob", "Chris... "Valerie", "Willy", "Yeta", "Ziggy" }; public static void main(String[] args) { //create 10 t... (); } } } class T1 extends Thread { public int threadID = 0; public SimpleDateFormat sdf = null; public String name = null; public Random rndm = null; public static String[] da
DateTools: 11 Hits
mport java.util.Date; import java.util.Calendar; public class DateTools { public static String days[... "Friday", "Saturday" }; public static String months[] = { "J... "November", "December" }; public static int daysPerMonth[] = { 31, 28, 31,... * @param userYear int * @param userMonth int */ public static int CalcEndOfMonth(int userYear, int userM
Visual Calendar Servlet: 11 Hits
java.io.*; import java.util.*; import DateTools; public class CFWebCalendar extends javax.servlet.http.Ht... at encapsulates the response from the servlet */ public void doGet(javax.servlet.http.HttpServletRequest ... at encapsulates the response from the servlet */ public void doPost(javax.servlet.http.HttpServletRequest... ); } /** * Returns the servlet info string. */ public String getServletInfo() { return super.getServl
Experiment #3: 5 Hits
va 1> /*..package and import statements here..*/ public class Artist { private transient Nodeid neoid... e*/ } /*..package and import statements here..*/ public class Album { private transient Nodeid neoid;... e*/ } /*..package and import statements here..*/ public class Song { private transient Nodeid neoid; ... import org.neo4j.kernel.EmbeddedGraphDatabase; public class Jo4NeoPerformanceExercise { private st
XML Schema Validator: 5 Hits
ErrorHandler { private boolean ERROR = false; public static void main(String[] args) { if (args.leng... v.validate(args[0]); System.exit(status); } public int validate(String filename) { try { // set... s -- --------------------------------------*/ public void error(SAXParseException spe) {displayInfo("Error", spe);} public void fatalError(SAXParseException spe) {displayInfo("Fatal Error", spe);} pub
Java Class Loaders: 3 Hits
rt java.net.URL; import java.net.URLClassLoader; public class DoNothingClassLoader extends ClassLoader { public DoNothingClassLoader() { super(); } public DoNothingClassLoader(ClassLoader parent) {
Namespace Security: 3 Hits
tailor their use of the wiki. For example, the ''public'' ACL can be granted read-only permission to the ''public'' namespace. Any member of this role will not be able to edit, nor will they see any conte... self-registration is enabled, the wiki becomes a public site for collaboration by anyone who cares to par
Using Strings in Switch Statements: 3 Hits
example.  Here is an enum declaration.  It can be public, protected, or private, depending on your needs a... Walk, Run, Sit, Drive, Sleep, Eat, novalue; public static Action getEnum(String str) { ... dy that can make use of the above method: <code> public static void main(String[] args) { //a
Experiment #2: 3 Hits
; import org.neo4j.kernel.EmbeddedGraphDatabase; public class Neo4JPerformanceExercise { //static co... Type { USERS_REFERENCE, USER, } public static void main(final String[] args) { l... (new Thread() { @Override public void run() { shutdown();
Easter Date Calculations: 2 Hits
java.text.SimpleDateFormat; class EasterDate { public static void main(String[] args) { SimpleDateF... ); System.out.println(sdf.format(d)); } } public static Date getEasterDate(int year) { int C, G
Handling Compiler Warnings: 2 Hits
ty function: <code java> class ForNameTest { public static void main(String[] args) { try{ ... an example: <code java> class ForNameTest { public static void main(String[] args) { try{
Assert example: 2 Hits
n example: <code java> package com.freyer.test; public class AssertionTest { /** * @param args * No args for this example */ public static void main(String[] args) { String s = null; // test
Formatting Syntax: 1 Hits
he standard output. */ class HelloWorldApp { public static void main(String[] args) { System.
Experiment #1: 1 Hits
s sample code to do just that: <code java 1> public static void main( final String[] args ) {
JavaOne 2008: 1 Hits
DokuWiki: 1 Hits
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki