2943 (backwards)

even beginners should understand this little piece of java-code, that turns a given string right to left.

class backwards {
	public static void main(String[] args) {
		String s = "", charout = "";
		int l = 0, i = 0, position = 0;
		s = eingabe.readString("String:");
		l = s.length();
		for (i=l;i>0;i--) {
			charout = s.substring (i-1,i);
			System.out.print(charout);
		}
		System.out.println();
	}	
}

2941 (simply count)

the following program takes the file ‘text.txt’ as input and will build an array of words ordered by length and count them. now formatted as code.

import java.io.*;
public class countwords_app {
	public static void main (String[] args) {

		String[] zeilenarray = new String[1000];	
		int i = 0;
		int max = 0;	
		int j = 0;
		int start = 0;
		String[] hit = new String[1000];
		int[][] liste = new int[1000][1000];
		int zmax = 0;
		int k = 0;
		int[] help = new int[1000];
		int l = 0;
		int m = 0;
		
		try {
			BufferedReader in = new BufferedReader(new FileReader("text.txt"));
			String zeile = null;
			while ((zeile = in.readLine()) != null) {
				zeilenarray[i] = zeile;
				i++;
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		max = i;
		for (i=0;i<max;i++) {
			System.out.println(i+":"+zeilenarray[i]);
		}
		for (i=0;i<max;i++) {
			start = 0;
			if (zeilenarray[i].length()>zmax) { zmax = zeilenarray[i].length(); }
			for (j=0;j<zeilenarray[i].length();j++) {
				if ((zeilenarray[i].substring(j,j+1).equals(" ")) ||
					(zeilenarray[i].substring(j,j+1).equals("-")) ||
					(zeilenarray[i].substring(j,j+1).equals("!")) ||
					(zeilenarray[i].substring(j,j+1).equals(".")) ||
					(zeilenarray[i].substring(j,j+1).equals(",")) ||
					(zeilenarray[i].substring(j,j+1).equals(";")) ||
					(zeilenarray[i].substring(j,j+1).equals("'")) ||
					(zeilenarray[i].substring(j,j+1).equals('"')) ||
					(zeilenarray[i].substring(j,j+1).equals(":")) ||
					(zeilenarray[i].substring(j,j+1).equals("<")) ||
					(zeilenarray[i].substring(j,j+1).equals(">")) ||
					(zeilenarray[i].substring(j,j+1).equals("=")) ||
					(zeilenarray[i].substring(j,j+1).equals("?"))) {
					hit[l] = zeilenarray[i].substring(start,j);
					liste[i][l] = hit[l].length();
					l++;
					start = j+1;
				}
				if ((j == zeilenarray[i].length()-1)&
				(!((zeilenarray[i].substring(j,j+1).equals(" "))|
				(zeilenarray[i].substring(j,j+1).equals("-"))|
				(zeilenarray[i].substring(j,j+1).equals("!"))|
				(zeilenarray[i].substring(j,j+1).equals("."))|
				(zeilenarray[i].substring(j,j+1).equals(","))|
				(zeilenarray[i].substring(j,j+1).equals(";"))|
				(zeilenarray[i].substring(j,j+1).equals("'"))|
				(zeilenarray[i].substring(j,j+1).equals('"'))|
				(zeilenarray[i].substring(j,j+1).equals(":"))|
				(zeilenarray[i].substring(j,j+1).equals("<"))|
				(zeilenarray[i].substring(j,j+1).equals(">"))|
				(zeilenarray[i].substring(j,j+1).equals("="))|
				(zeilenarray[i].substring(j,j+1).equals("?")))))
					{
					hit[l] = zeilenarray[i].substring(start,j+1);
					liste[i][l] = hit[l].length();
					l++;
				}
			}	
		}
		for (k=1;k<(zmax*max);k++) {
			for (i=0;i<max;i++) {
				for (j=0;j<zeilenarray[i].length();j++) {
					if (liste[i][j] == k) { help[k] = help[k] + 1; m++;}
				}
			}
		}
		for (k=1;k<(zmax*max);k++) {
			if (help[k] != 0) { System.out.println("Length "+k+" , Sum "+help[k]); }
		}
		System.out.println("total sum "+m);
	}
}

2928 (java class version checker)

the following code will check a java class for validity and version.

import java.io.*;

public class cvc {
    public static void main(String[] args) throws IOException {
        for (int i = 0; i < args.length; i++)
            checkClassVersion(args[i]);
    }

    private static void checkClassVersion(String filename)
        throws IOException
    {
        DataInputStream in = new DataInputStream
         (new FileInputStream(filename));

        int magic = in.readInt();
        if(magic != 0xcafebabe) {
          System.out.println(filename + " is not a valid class!");;
        }
        int minor = in.readUnsignedShort();
        int major = in.readUnsignedShort();
        System.out.println(filename + ": " + major + " . " + minor);
        in.close();
    }
}
/*
major  minor Java platform version 
45       3           1.0
45       3           1.1
46       0           1.2
47       0           1.3
48       0           1.4
49       0           1.5
50       0           1.6
51       0           1.7
52       0           1.8
*/

2913 (the java keywords)

abstract boolean break byte
case catch char class
const continue default do
double else extends final
finally float for goto
if implements import instanceof
int interface long native
new (null) package private
protected public return short
static super switch synchronized
this throw throws transient
try void volatile while
assert enum strictfp (true)
(false)

() literals

2906 (some more dub)

Scheibe Tracks
King Size Dub Chapter 13

King Size Dub Chapter 13

1. Dubxanne Feat. Earl 16 – Message In A Bottle
2. M (2) – Pop Muzik (Riddim Wize Remix)
3. Ruts DC – Weakheart (Rob Smith Dub Remix)
4. Izrael – I & I & Dub
5. Dreadzone – Lot’s Dub (Extended Version)
6. Noiseshaper – All A Dem A Do (Adrian Sherwood Remix)
7. Smoke – Let There Be Light
8. The Senior Allstars – Hazard
9. Red Earth Dub – Never Give Up (Manasseh Remix)
10. Dubmatix & Mighty Howard & Aldubb – Mount Zion Dub
11. The Vision (2) – Soul Dub Evolution
12. Aldubb Feat. Kaya T – Mother Earth
13. Dubblestandart – Marihuana Dreams
14. Herbst In Peking – German Fool (King Size Dub Remix)
15. Dub Spencer & Trance Hill – Galli Dani (Umberto Echo Dub)
16. Up, Bustle & Out – Silverfish (An Ocean’s Dub Tale)
17. Freaky Fukin Weirdoz – Babylon (Umberto Echo Dub Remix)
King Size Dub Chapter 69

King Size Dub Chapter 69

1. M&M – Echo Beach (Go Home Productions Beached Dub Mix)
2. Deepchild Feat. Andy B (6) – Racist Friend
3. Dubmatix Feat. Linval Thompson – Peace & Love
4. Junglehammer Vs. Daktari – Live And Let Dub
5. Smoke (20) – Addicted
6. The Ruts DC – Accusation (Ruts DC & Steve Dub Mix)
7. International Observer – House Of The Rising Dub
8. Dubxanne – Walking On The Moon
9. Dubvisionist – Privat Life
10. Sam Ragga Band – Why Dub
11. Dub Spencer & Trance Hill – Jeanny
12. Dubblestandart & Lee “Scratch” Perry & Gudrun – I Do Vodoo (Dub)
13. Dub Syndicate – Struggle (Pre Fade Listening Mix)
14. Sugar Sugar (3) – Telefon Dub
15. Ari Up vs. X. A. Cute – Me Done
King Size Dub Special 30 Years Anniversary

King Size Dub Special 30 Years Anniversary

1. Dub Syndicate – Wadada (Means Love)
2. Lee Perry – Political Confusion
3. Graciella Rodriguez – Stop That Train
4. Jeb Loy Nichols – To Be Rich Is A Crime
5. Prince Far I & Singers And Players – Virgin
6. Creation Rebel – Mountain Melody
7. Crispy Horns – Blow The Man Down
8. 2Badcard – Weedspecialist
9. Lee Perry vs Moody Boyz – International Brodcaster (Jungle Remix)
10. Strange Parcels & Bim Sherman – More Is Insane (10 Inch Version)
11. Revolutionary Dub Warriors – One Drop
12. New Age Steppers – Conquer
13. African Head Charge – Take Heed & Smoke Up Your Collyweed
14. Harry Beckett – Rise & Shine
15. Little Axe – I Got A Song To Sing
16. Ian King (2) – Death & The Lady
King Size Dub Special Dub Syndicate (Crucial Recordings In The Name Of Bud)

King Size Dub Special Dub Syndicate (Crucial Recordings In The Name Of Bud)

1. The Only Alternative
2. Mafia (DJ Scruff Remix)
3. Can’t Take It Easy (Ruts DC Remix)
4. Dubbing Is A Must (Extended Loop Mix)
5. Hey Geoff (Extended Loop Mix)
6. Rat Race
7. Alliance
8. Them Blind
9. Time
10. Private I
11. Private I (Dub)
12. Greater David (Overdubbed By Rob Smith)
13. God Is A Man (Overdubbed By Rob Smith)
14. Creation (Overdubbed By Rob Smith)
15. Sound Clash
King Size Dub Special Dubvisionist

King Size Dub Special Dubvisionist

1. Tvs – Moonsteppa
2. Pre Fade Listening Vs. Dub Syndicate – Struggle
3. Ari Up & Dubblestandart – Soulmate
4. The Vision (2) – Dub Whirl
5. Tvs Featuring Ras Miloh – Stand Strong Dub
6. Tack>>Head – Black Cinderella
7. The Senior Allstars – Hazard Dub
8. The Vision (2) – Soul Dub Evolution
9. Dactah Chando – Woman Escuchame
10. Fettes Brot – Echo
11. The Vision (2) – Sitar Dub
12. Chin Chillaz – Lion
13. Herbman Band – Dub Don’t Come Easy
14. Dellé – Guerilla Maiden
15. The Senior Allstars – Baltimore
16. Dubvisionist – Goverdhama Dub
17. Chin Chillaz – Konkret