3097

drei 3D-arrays bilden eine entwicklung ueber die zeit ab. the values were coincidentally chosen (random), ausser des startpunktes einer 2D-nullkoordinate.

class time
{
	//main method, arguments may be passed on commandline execution
	public static void main(String args[])
	{
		// declare and initialize 4D array
		int arr[][][][] = {
								{
									{ {0,0,0},{2,6,6},{7,4,2} },
									{ {0,0,0},{9,6,2},{9,1,3} },
									{ {0,0,0},{4,5,6},{2,5,2} }
								},
								{
									{ {0,4,2},{2,6,1},{9,3,1} },
									{ {3,7,9},{9,6,2},{0,1,5} },
									{ {5,8,4},{4,7,6},{6,5,2} }
								},
								{
									{ {7,5,2},{2,6,2},{6,5,5} },
									{ {6,8,9},{7,5,2},{8,5,9} },
									{ {2,8,5},{3,7,7},{4,5,8} }
								}
							};
		// print time array in four nested for-loops
		for (int l = 0; l<3; l++)		
		{	
			//print 3D-element number
			System.out.println(l);
			for (int i=0; i< 3 ; i++)
			{
				for (int j=0; j < 3 ; j++)
				{
					for (int k=0; k < 3; k++)
					{
						//print element
						System.out.print(arr[l][i][j][k] + " ");
					}
					//print whitespaces
					System.out.print("     ");
				}
				//newline
				System.out.println();
			}
		}
	}
}

2947 (input)

byte/short/int/long/float/double/string/char eingabe-/input-class in java:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

//package iotool
//readByte
//readShort
//readInt
//readLong
//readFloat
//readDouble
//readString
//readChar

public class eingabe {

//read-Byte-Methode	
	public static byte readByte(String inText) {

			byte        	bZahl ;
			BufferedReader br;

//Eingabepuffer für eine Dateneingabe neu erstellen
		  	br = new BufferedReader(new InputStreamReader(System.in));
		  	bZahl = 0;
		  	System.out.print(inText);
		  	try {
				bZahl= Byte.parseByte(br.readLine());
		  	} 
		  	catch (NumberFormatException e) {
				System.out.println("Exception geworfen, kein Byte.");
		  	} 
		  	catch (IOException e) {
				e.printStackTrace();
		  	}	
			return bZahl;
	}

//read-Short-Methode	
	public static short readShort(String inText) {

			short        	sZahl ;
			BufferedReader br;

//Eingabepuffer für eine Dateneingabe neu erstellen
		  	br = new BufferedReader(new InputStreamReader(System.in));
		  	sZahl = 0;
		  	System.out.print(inText);
		  	try {
				sZahl= Short.parseShort(br.readLine());
		  	} 
		  	catch (NumberFormatException e) {
				System.out.println("Exception geworfen, kein Short.");
		  	} 
		  	catch (IOException e) {
				e.printStackTrace();
		  	}	
			return sZahl;
	}

//read-Integer-Methode	
	public static int readInt(String inText) {

			int        	iZahl ;
			BufferedReader br;

//Eingabepuffer für eine Dateneingabe neu erstellen
		  	br = new BufferedReader(new InputStreamReader(System.in));
			iZahl = 0;
		  	System.out.print(inText);
		  	try {
				iZahl= Integer.parseInt(br.readLine());
		  	} 
		  	catch (NumberFormatException e) {
				System.out.println("Exception geworfen, kein Integer.");
		  	} 
		  	catch (IOException e) {
				e.printStackTrace();
		  	}	
			return iZahl;
	}

//read-Long-Methode	
	public static long readLong(String inText) {

			long        	lZahl ;
			BufferedReader br;

//Eingabepuffer für eine Dateneingabe neu erstellen
		  	br = new BufferedReader(new InputStreamReader(System.in));
		  	lZahl = 0;
		  	System.out.print(inText);
		  	try {
				lZahl= Long.parseLong(br.readLine());
		  	} 
		  	catch (NumberFormatException e) {
				System.out.println("Exception geworfen, kein Long.");
		  	} 
		  	catch (IOException e) {
				e.printStackTrace();
		  	}	
			return lZahl;
	}

//read-Float-Methode	
	public static float readFloat(String inText) {
	 
			float   fZahl ;
			BufferedReader br;

//Eingabepuffer für eine Dateneingabe neu erstellen
		  	br = new BufferedReader(new InputStreamReader(System.in));
		  	fZahl = 0;
		  	System.out.print(inText);
		  	try {
				fZahl= Float.parseFloat(br.readLine());
		  	} 
		  	catch (NumberFormatException e) {
				System.out.println("Exception geworfen, kein float.");
		  	} 
		  	catch (IOException e) {
				e.printStackTrace();
		  	}	
			return fZahl;
	}

//read-Double-Methode	
	public static double readDouble(String inText) {
	 
			double   dZahl ;
			BufferedReader br;

//Eingabepuffer für eine Dateneingabe neu erstellen
		  	br = new BufferedReader(new InputStreamReader(System.in));
		  	dZahl = 0;
		  	System.out.print(inText);
		  	try {
				dZahl= Double.parseDouble(br.readLine());
		  	} 
		  	catch (NumberFormatException e) {
				System.out.println("Exception geworfen, kein double.");
		  	} 
		  	catch (IOException e) {
				e.printStackTrace();
		  	}	
			return dZahl;
	}

//read-String-Methode	
	public static String readString(String inText) {
		
		  String   sText ;
		  BufferedReader br;

//Eingabepuffer für eine Dateneingabe neu erstellen
	  	br = new BufferedReader(new InputStreamReader(System.in));
	  	
	  	sText = "";
	  	System.out.print(inText);
	  	try {
	  		 sText= (br.readLine());
		  }
	  	catch (IOException e) {
			 e.printStackTrace();
		  }	
		  return sText;
	}

//read-Character-Methode
	public static char readChar(String inText) {

		   char  cZeichen ='0';
		   System.out.print(inText);
		   try {
		   		do{
		   			cZeichen =(char) System.in.read();
		   		}
		   		while(cZeichen == '\n' | cZeichen =='\r');
		   }
		   catch (IOException e) {
          	e.printStackTrace();
		   }	   
		   return cZeichen;
	}
}
//found @ coderz-home.de, modified by ewing 20150131

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