Kris Blassingame 6 gadus atpakaļ
vecāks
revīzija
d7709fa08c

Binārs
Factorial.class Parādīt failu


+ 5
- 0
Factorial.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=Factorial
3
+comment1.params=value
4
+comment1.target=java.math.BigInteger\ factorialOf(java.lang.Integer)
5
+numComments=2

+ 1
- 4
Factorial.java Parādīt failu

1
- 
2
-
3
-
4
 import java.math.BigInteger;
1
 import java.math.BigInteger;
5
 
2
 
6
 public class Factorial {
3
 public class Factorial {
9
         return null;
6
         return null;
10
     }
7
     }
11
 
8
 
12
-}
9
+}

Binārs
FactorialTest.class Parādīt failu


+ 7
- 0
FactorialTest.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=FactorialTest
3
+comment1.params=
4
+comment1.target=void\ setUp()
5
+comment2.params=
6
+comment2.target=void\ factorialOfTest()
7
+numComments=3

Binārs
IntegerPrinter.class Parādīt failu


+ 11
- 0
IntegerPrinter.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=IntegerPrinter
3
+comment1.params=value
4
+comment1.target=java.lang.String\ printIntegerAsBinary(int)
5
+comment2.params=value
6
+comment2.target=java.lang.String\ printIntegerAsOctal(int)
7
+comment3.params=value
8
+comment3.target=java.lang.String\ printIntegerAsHexadecimal(int)
9
+comment4.params=args
10
+comment4.target=void\ main(java.lang.String[])
11
+numComments=5

+ 11
- 5
IntegerPrinter.java Parādīt failu

1
- 
2
-
1
+import java.util.*;
3
 
2
 
4
 public class IntegerPrinter {
3
 public class IntegerPrinter {
5
 
4
 
6
     public String printIntegerAsBinary(int value){
5
     public String printIntegerAsBinary(int value){
7
-        return null;
6
+        String binary = Integer.toBinaryString(value);
7
+        
8
+        //Integer i = new Integer(20);
9
+        //String binary = Integer.toBinaryString(i);
10
+        //System.out.println("Binary value: "+binary);
11
+        return binary; 
8
     }
12
     }
9
 
13
 
10
     public String printIntegerAsOctal(int value){
14
     public String printIntegerAsOctal(int value){
11
-        return null;
15
+        String binary = Integer.toOctalString(value);
16
+        return binary;
12
     }
17
     }
13
 
18
 
14
     public String printIntegerAsHexadecimal(int value){
19
     public String printIntegerAsHexadecimal(int value){
15
-        return null;
20
+        String binary = Integer.toHexString(value);
21
+        return binary;
16
     }
22
     }
17
 
23
 
18
     public static void main(String[] args){
24
     public static void main(String[] args){

Binārs
IntegerPrinterTest.class Parādīt failu


+ 11
- 0
IntegerPrinterTest.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=IntegerPrinterTest
3
+comment1.params=
4
+comment1.target=void\ setUp()
5
+comment2.params=
6
+comment2.target=void\ printIntegerAsBinaryTest()
7
+comment3.params=
8
+comment3.target=void\ printIntegerAsHexadecimal()
9
+comment4.params=
10
+comment4.target=void\ printIntegerAsOctalTest()
11
+numComments=5

Binārs
LargestInteger.class Parādīt failu


+ 7
- 0
LargestInteger.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=LargestInteger
3
+comment1.params=integers
4
+comment1.target=java.lang.Integer\ findLargestNumberUsingConditional(java.lang.Integer[])
5
+comment2.params=integers
6
+comment2.target=java.lang.Integer\ findLargestNumberUsingMathMax(java.lang.Integer[])
7
+numComments=3

+ 3
- 1
LargestInteger.java Parādīt failu

1
- 
1
+import java.util.*;
2
 
2
 
3
 
3
 
4
 public class LargestInteger {
4
 public class LargestInteger {
5
 
5
 
6
     public Integer findLargestNumberUsingConditional(Integer[] integers){
6
     public Integer findLargestNumberUsingConditional(Integer[] integers){
7
+        
8
+        
7
         return null;
9
         return null;
8
     }
10
     }
9
 
11
 

Binārs
LargestIntegerTest.class Parādīt failu


+ 9
- 0
LargestIntegerTest.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=LargestIntegerTest
3
+comment1.params=
4
+comment1.target=void\ setUp()
5
+comment2.params=
6
+comment2.target=void\ findLargestNumberUsingConditionalTest()
7
+comment3.params=
8
+comment3.target=void\ findLargestNumberUsingMathMaxTest()
9
+numComments=4

Binārs
NormalizeAngle.class Parādīt failu


+ 9
- 0
NormalizeAngle.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=NormalizeAngle
3
+comment1.params=angle
4
+comment1.target=java.lang.Integer\ normalizeValueUsingModulo(java.lang.Integer)
5
+comment2.params=integer
6
+comment2.target=java.lang.Integer\ normalizeValueUsingFloorMod(java.lang.Integer)
7
+comment3.params=args
8
+comment3.target=void\ main(java.lang.String[])
9
+numComments=4

Binārs
NormalizeAngleTest.class Parādīt failu


+ 9
- 0
NormalizeAngleTest.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=NormalizeAngleTest
3
+comment1.params=
4
+comment1.target=void\ setUp()
5
+comment2.params=
6
+comment2.target=void\ normalizeValueUsingModuloTest()
7
+comment3.params=
8
+comment3.target=void\ normalizeValueUsingFloorModTest()
9
+numComments=4

Binārs
ShortCalculator.class Parādīt failu


+ 3
- 0
ShortCalculator.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=ShortCalculator
3
+numComments=1

Binārs
ShortCalculatorTest.class Parādīt failu


+ 3
- 0
ShortCalculatorTest.ctxt Parādīt failu

1
+#BlueJ class context
2
+comment0.target=ShortCalculatorTest
3
+numComments=1

+ 2
- 2
package.bluej Parādīt failu

16
 editor.fx.0.x=0
16
 editor.fx.0.x=0
17
 editor.fx.0.y=0
17
 editor.fx.0.y=0
18
 objectbench.height=101
18
 objectbench.height=101
19
-objectbench.width=1070
20
-package.divider.horizontal=0.6
19
+objectbench.width=637
20
+package.divider.horizontal=0.5996275605214153
21
 package.divider.vertical=0.837593984962406
21
 package.divider.vertical=0.837593984962406
22
 package.editor.height=550
22
 package.editor.height=550
23
 package.editor.width=968
23
 package.editor.width=968