|
@ -153,7 +153,7 @@ public class FunktionenAusgelagert { |
|
|
} |
|
|
} |
|
|
return decimalToBinary(result); |
|
|
return decimalToBinary(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Hilfe |
|
|
public static int binaryToDecimal(String binaryCode) { |
|
|
public static int binaryToDecimal(String binaryCode) { |
|
|
|
|
|
|
|
|
int decimal = 0; |
|
|
int decimal = 0; |
|
@ -168,7 +168,7 @@ public class FunktionenAusgelagert { |
|
|
} |
|
|
} |
|
|
return decimal; |
|
|
return decimal; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Hilfe |
|
|
public static int decimalToBinary(int decimal) { |
|
|
public static int decimalToBinary(int decimal) { |
|
|
int binary = 0; |
|
|
int binary = 0; |
|
|
int power = 0; |
|
|
int power = 0; |
|
|