Bucket Sort in C#
Bucket Sort in C#

private void BucketSort(int[] values) {     //make sure we have values to wort     if (values == null || values.Length == 0) return;     //v...

Read more »

BitmapSize Application
BitmapSize Application

using System; using System.IO;   namespace BitmapSize {   class Class1   {    static void Main(string[] args)     {       long bmpWidth   = ...

Read more »

Async Keyboard Input
Async Keyboard Input

// Allows you to move an image using the keyboard // Written by WolfCoder 1-07-2005 import java.awt.event.*; // Use events import java.awt.*...

Read more »

Automorphic Number
Automorphic Number

import java.io.*; public class automorphic { public static void main(String args[])throws IOException { BufferedReader br=new Buffer...

Read more »

Array Rotator
Array Rotator

import java.util.Scanner; public class Rotator { /** * Function that returns an array * @param int[] args - The array to be rotated ...

Read more »

Approximating PI (Madhava-Leibniz series) (Java)
Approximating PI (Madhava-Leibniz series) (Java)

public class Main {     private String operator = "-";     private double denom = 3.0;     private double num = 1.0;     private i...

Read more »

Any base converter
Any base converter

public String convert(int decNum, int newBase) {     String str = Integer.toString(decNum, newBase);     return str; // IT HAS TO RETURN STR...

Read more »

Applet Base
Applet Base

Instructions: Do note that most file transfers are not possible in applets, it just doesn't work like that. There are ways around it to ...

Read more »

Android Simple class for searching for files on SD Card
Android Simple class for searching for files on SD Card

import java.io.File; import java.util.ArrayList; import java.util.List; public class FileSearcher { /** * * @param match - partial for ...

Read more »

How to Read Email Headers and Find Internet Hosts..
How to Read Email Headers and Find Internet Hosts..

Now some of you may think that headers are too simple or boring to waste time on. However, a few weeks ago I asked the 3000+ readers of the ...

Read more »
 
Top