1
2
3
4
package ircbot;

/**
...

Java Java IRC Bot

by Ishkur, September 13, 2008 06:04, 2 refactorings, tagged with java, IRC bot, regex

I've been working on this f...

6dc0e9a07bcff97ac9b111f36e12f1f6 Talk
1
2
3
4
package spirals;
import processing.core.*;

...

Java Processing / Java

by Ishkur, September 11, 2008 04:07, No refactoring

I'm trying to move out of P...

6dc0e9a07bcff97ac9b111f36e12f1f6 Talk
1
2
3
4
public static int[] zigzagify(int[] array, int xmax, int ymax) {
        int[] zz = new int[array.length]; //zigzag array
        if (array.length != xmax * ymax) {
...

Java Zig Zag ordering of array

by kane77, August 19, 2008 21:27, 3 refactorings, tagged with array, zigzag, ordering

This is the code that is su...

Eee5491d255814140670a5937d53aef3 Talk
1
2
3
4
	public static String getRelativePath(File file, File relativeTo) throws IOException {
		/*
		 * windows seems in some cases not to stop getParent() at 'c:\', which I
...

Java get path of a File relative...

by lord alcol, August 18, 2008 17:23, No refactoring, tagged with java, file, path

I call:
File f = new File(...

A9c8a6d8eed437bb33d504cae365bf57 Talk
1
2
3
4
	public static boolean fileContentsEquals(File file1, File file2) {
		InputStream is1 = null;
		InputStream is2 = null;
...

Java fileContentsEquals

by lord alcol, August 18, 2008 09:09, 3 refactorings, tagged with java, io, file

This method checks if the c...

A9c8a6d8eed437bb33d504cae365bf57 Talk
1
2
3
/**
 * Get the article destined for the front page
...

Java Closing database connection...

by junkyjunk, July 31, 2008 02:35, 4 refactorings, tagged with database, java, javabeans, database leak

I am making a blog for fun ...

Avatar Talk
1
2
3
4
public abstract class I18NException extends Exception {

   public enum Message implements ExceptionMessage {
...

Java Internationalize Exceptions

by David Linsin, June 27, 2008 20:09, No refactoring, tagged with java, exceptions, i18n

This is a template for Exce...

Ef079515af1c9963c7cd33e0b4f00e88 Talk
1
2
3
4
import java.io.*;
import java.lang.Character;
// import java.util.HashMap;
...

Java Simple interpreter

by pewpew.lazer, June 23, 2008 06:16, 9 refactorings, tagged with cog, custom, script, interpreter

So I was trying to condense...

78432406bfa7a04d179d98c61e83e086 Talk
1
2
3
4
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
...

Java MySQL code

by vikasvrao, May 23, 2008 18:27, 2 refactorings

I'm using this as the core ...

285b210dadc7b994f64ef19485a44c7d Talk
1
2
3
4
import java.util.Scanner;

public class AsciiSquare
...

Java ascii square

by kefestetayyus.blogspot.com, May 09, 2008 12:44, 4 refactorings, tagged with java, ascii, square, basic

Simply prints a square with...

Avatar Talk
1
2
3
4
public class SystemInfo {

	public static void main(String[] args) {
...

Java System Info

by Gnix, April 03, 2008 14:10, No refactoring

Get all the properties stor...

077b12f1039dceb830c2b83be8dcbd1b Talk
1
2
3
4
/**
 * This example show how to read from the keyboard and write to the
 * monitor one char. ! This is only an example ! Use Reader and 
...

Java Read and write example

by Gnix, April 02, 2008 17:58, No refactoring

An example that use Buffere...

077b12f1039dceb830c2b83be8dcbd1b Talk
1
2
3
public PreviewTreeModel(Collection<FileDescription> files)
	{
...

Java Create a tree out of a coll...

by Loid, March 02, 2008 19:14, 1 refactoring, tagged with tree, file, speed

I would like to transform a...

2b3b5047901ac67fefd8b392c26027b4 Talk
1
2
3
4
    /**
     * warning performs a cartesian product
     * @param list of NameAddress objects
...

Java clean up nested loops?

by getopenid.com/garretokelly, January 16, 2008 21:10, 6 refactorings

Given a list of NameAddress...

Avatar Talk
1
2
3
4
public class Car {

  public static class Builder {
...

Java Fluent Builder

by Jeremy Weiskotten, December 24, 2007 02:56, 1 refactoring, tagged with java, fluent interface, builder

Here's an example of the Bu...

5170ca260dbd2cdfd5a887a4dba7636f Talk
1
2
3
4
/**
 * ================================================================
 * Enterprise Managerial
...

Java Widget Mirror

by fenix, December 09, 2007 15:03, No refactoring, tagged with mirrored, Widget, QWidget, Widget Mirror

Hi at all, I try to reply a...

017ec70e269e6f69ed8979f8b41bb5d3 Talk
1
2
3
4
		GridBagConstraints c = new GridBagConstraints();
		c.insets.bottom = 2;
		c.insets.top = 2;
...

Java Swing GridBagLayout in calc...

by staykovmarin, November 21, 2007 04:42, 3 refactorings, tagged with swing

Writing a calculator type a...

372b535c68f29d5fe04052c7b1d96255 Talk
1
2
3
4
import java.util.Scanner;
import java.util.Arrays;

...

Java Incompatible Types

by splinter03.myopenid.com, November 10, 2007 12:44, 2 refactorings

It has some problems incomp...

Avatar Talk
1
2
3
4
public class Space {
    private int count;
    private String varStr;
...

Java Cannot Ref from Static Content

by Mark Webb, November 09, 2007 14:45, 7 refactorings

If anyone can tell me what ...

E41e6fdad12edcfb97ab662e83bfb9ab Talk
1
2
3
4
package net.alessandropetrozzelli;

class InvalidISINCharacterException
...

Java ISIN check digit

by Alessandro Petrozzelli, November 07, 2007 13:38, 3 refactorings, tagged with isin

based on http://en.wikipedi...

79e19248515416c441c3520fa5b17b7d Talk
1
2
3
4
public class SchoolRoom {
    private String [] students;
...

Java Help with new methods

by Mark Webb, November 06, 2007 07:28, 6 refactorings

Having some trouble with th...

E41e6fdad12edcfb97ab662e83bfb9ab Talk
1
2
3
4
import java.util.Scanner;
import static java.lang.Math.*;

...

Java Rational numbers

by jujon.myopenid.com, November 06, 2007 05:13, 3 refactorings

I'm trying to define a clas...

Avatar Talk
1
2
3
4
public class Bus {
    private String TYPE;
    private int MAX_RANGE;
...

Java Equals Method

by splinter03.myopenid.com, November 05, 2007 11:53, 17 refactorings

Hi all,

Ive been doing ...

Avatar Talk
1
2
3
4
public class Parks {
    private String[] parkingBays;
    private int numCars;
...

Java Errors With Exception

by Mark Webb, November 05, 2007 07:03, 4 refactorings

It compiles, although when ...

E41e6fdad12edcfb97ab662e83bfb9ab Talk
1
2
3
4
 /** 
  * This is a method which will gather the pixels
  * of the 8 pixels surrounding a given pixel
...

Java Detect neighboring pixels

by Mike, October 26, 2007 04:21, 5 refactorings

I hate written a method to ...

Avatar Talk