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.
Visual Calendar Servlet:
12 Hitsst, response);
}
/**
* Returns the servlet info string.
*/
public String getServletInfo() {
return su... date: (9/27/01 11:49:25 AM)
* @return java.lang.String
* @param month int
* @param year int
*/
public String nextYearURL(int month, int year) {
return "<A HREF=\"http://www.thefreyers.net/servlets/... rs (if bad or null, set to current month)
String mo = request.getParameter("month");
Strin
Experiment #2:
10 Hits
//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 variables
private static GraphDatabase
Experiment #3:
9 Hitsnsient Nodeid neoid;
@neo(index=true) private String id;
@neo (index=true) private String name;
... Nodeid neoid;
@neo(index = true)
private String id;
@neo(index = true)
private String nam... Nodeid neoid;
@neo(index = true)
private String id;
@neo(index = true)
private String nam... int NUM_SONGS = 11;
public static void main(String[] args) {
long starttime = Calendar.getIn
Thread Example:
8 Hitsrt java.util.*;
class threads {
public static String[] names = {
"Alice", "Bob", "Christy", "David", ... Yeta", "Ziggy"
};
public static void main(String[] args) {
//create 10 threads and run them
for... public SimpleDateFormat sdf = null;
public String name = null;
public Random rndm = null;
public static String[] dailyEvents = {
"alarm went off", "hit snooze button", "alarm went off again"
Finding Too-New Code:
7 Hitsss GenericsTest
{
public static void main(String[] args)
{
ArrayList<String> stringArray = new ArrayList<String>();
stringArray.add("Hello ");
stringArray.add("World.");
printStrings(stringArray);
}
static void printStrings(Collection<String> c) {
for (Iterator<String> i = c.iterator(); i.hasNext(); )
System.out.println(i.ne
ToolBar Hacking:
7 Hitss the ''title'' text.
* insert - just inserts a string
* picker - Displays a drop-down pick list with ... quit-----
var col = 0;
var error_string = "";
do{
col = prompt(error_string+"Enter number of COLUMNS",col);
if (!col) return "";
if(isNaN(col))error_string="You didn't enter a NUMBER. Please try again...\n\n";
}
whil
Using Strings in Switch Statements:
5 Hits
====== Using Strings in Switch Statements ======
Its a common thing--in some programming languages--to use Strings in a switch statement. Unfortunately, Java doesn't support that as of JDK6 because Strings are objects. If Java allowed the use of one kind of object in a switch statement, then auguabl... derable language change. So for now, I can't use Strings in switch statements.
But I've found a way to s
Assert example:
4 Hitsgs for this example
*/
public static void main(String[] args) {
String s = null;
// test the prope... the method
say(s);
}
private static void say(String s) {
assert s != null : "string is null";
Sys
Handling Compiler Warnings:
4 Hits
class ForNameTest
{
public static void main(String[] args) {
try{
String classna...
class ForNameTest
{
public static void main(String[] args) {
try{
String classna
XML Schema Validator:
3 Hits boolean ERROR = false;
public static void main(String[] args) {
if (args.length == 0) {
System.out...
System.exit(status);
}
public int validate(String filename) {
try {
// setup SAX parser
Cla... o("Warning", spe);}
private void displayInfo(String errorType, SAXParseException spe){
System.out.p
Formatting Syntax:
3 Hitsatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document.
... iki can convert certain pre-defined characters or strings into images or other text or HTML.
The text to ... class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
</code>
The following language strings are currently recognized:
Spreadsheet Reader:
2 Hits SpreadsheetReader
{
public static void main(String[] args) throws Exception
{
Cell cell = null;
String contents = null;
Workbook workbook = Workbook.getWorkbook(new File("m
Experiment #1:
2 Hits
<code java 1>
public static void main( final String[] args )
{
GraphDatabaseService graph... ExampleRelationshipTypes.EXAMPLE );
String greeting = firstNode.getProperty( NAME_KEY ) + "
DateTools:
2 Hitsdar;
public class DateTools {
public static String days[] =
{
"Sunday",
... ay",
"Saturday" };
public static String months[] =
{
"January",