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


Experiment #2: 25 Hits
; public class Neo4JPerformanceExercise { //static constants private static final String DB_PATH = "neo4j-store"; private static final String USERNAME_KEY = "username"; private static final String ADDRESS_KEY = "address"; private static final String CITY_KEY = "city"; private static final String STATE_KEY = "state"; private static final String ZIP_KEY = "zip"; //class va
DateTools: 10 Hits
l.Calendar; public class DateTools { public static String days[] = { "Sunday", ... "Friday", "Saturday" }; public static String months[] = { "January"... "November", "December" }; public static int daysPerMonth[] = { 31, 28, 31, 30, 31... m userYear int * @param userMonth int */ public static int CalcEndOfMonth(int userYear, int userMonth) {
Experiment #3: 8 Hits
ic class Jo4NeoPerformanceExercise { private static int NUM_ARTISTS = 30; private static int NUM_ALBUMS = 4; private static int NUM_SONGS = 11; public static void main(String[] args) { ... endtime - starttime) + "ms."); } private static void setup(ObjectGraph graph) { output("S... } output("done"); } private static void output(String s) { System.out.printl
Using Strings in Switch Statements: 3 Hits
Run, Sit, Drive, Sleep, Eat, novalue; public static Action getEnum(String str) { try {r... tch statement that uses the enum: <code> private static void doAction(String actionString){ switc... can make use of the above method: <code> public static void main(String[] args) { //accept i
Thread Example: 3 Hits
t; import java.util.*; class threads { public static String[] names = { "Alice", "Bob", "Christy", "D... ie", "Willy", "Yeta", "Ziggy" }; public static void main(String[] args) { //create 10 threads ... = null; public Random rndm = null; public static String[] dailyEvents = { "alarm went off", "hit
Handling Compiler Warnings: 2 Hits
tion: <code java> class ForNameTest { public static void main(String[] args) { try{ ... ple: <code java> class ForNameTest { public static void main(String[] args) { try{
Assert example: 2 Hits
am args * No args for this example */ public static void main(String[] args) { String s = null; ... per behavior of the method say(s); } private static void say(String s) { assert s != null : "string
Finding Too-New Code: 2 Hits
java.util.*; class GenericsTest { public static void main(String[] args) { ArrayList<St... ); printStrings(stringArray); } static void printStrings(Collection<String> c) {
Easter Date Calculations: 2 Hits
xt.SimpleDateFormat; class EasterDate { public static void main(String[] args) { SimpleDateFormat s... ystem.out.println(sdf.format(d)); } } public static Date getEasterDate(int year) { int C, G, H, I,
Experiment #1: 1 Hits
e code to do just that: <code java 1> public static void main( final String[] args ) { Gr
Adding FCKW to Dokuwiki: 1 Hits
ll checking * RSS feeds (FCKW turns them into static html links) * ability to add chunks of HTML o
Spreadsheet Reader: 1 Hits
ort jxl.*; class SpreadsheetReader { public static void main(String[] args) throws Exception {
Web Resources for Music: 1 Hits
Guitar Center's [[http://www.gckingoftheblues.com/static_content/view/backing_tracks.html|King of the Blue
XML Schema Validator: 1 Hits
andler { private boolean ERROR = false; public static void main(String[] args) { if (args.length == 0
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki