public String dezimalToBinary(int a) {
		String binZahl="";

		if(a>=0){
			int z = 0;
			int[] bin = new int[16];
			for(int i = 0; i<16; i++){
				bin[i]= 0;
			}
			while (a > 0) {

				int b = a % 2;
				a = a / 2;
				bin[z] = b;
				z = z + 1;
			}
			for (int i = bin.length-1 ; i >= 0; i--) {

				binZahl=binZahl+bin[i];
			}
		} else{
			a = (a*-1)-1;
			int z = 0;
			int[] bin = new int[16];
			for(int i = 0; i<16; i++){
				bin[i]= 0;
			}
			while (a > 0) {

				int b = a % 2;
				a = a / 2;
				bin[z] = b;
				z = z + 1;
			}
			for (int i = 0; i<16; i++){
				if(bin[i]==0){
					bin[i]=1;
				}
				else{
					bin[i]=0;
				}
			}
			for (int i = bin.length-1 ; i >= 0; i--) {

				binZahl=binZahl+bin[i];
			}

		}

		return binZahl;
	}