1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
-
-
-
- public class NumberUtilities {
-
-
- public static String getRange(int stop) {
- String total = "";
-
- for(int i=0; i < stop; i++){
- total += i;
-
- }
-
- return total;
- }
-
- public static String getRange(int start, int stop) {
- String amount = "";
- for(int i = 0; start > stop; i++){
-
- amount += i;
-
- }
-
- return amount;
-
- }
-
-
- public static String getRange(int start, int stop, int step) {
-
- String amount ="";
- for(int i = 0; start > stop; i+=step){
-
-
- amount += i;
-
-
- }
- return amount;
- }
-
- public static String getEvenNumbers(int start, int stop) {
- String amount = "";
- int j = 2 % stop;
-
- for(int i = 0; start > stop; i+=j){
- amount += i;
- }
- return amount;
-
- }
-
-
- public static String getOddNumbers(int start, int stop) {
- String amount ="";
- }
-
-
- public static String getExponentiations(int start, int stop, int exponent) {
- return null;
- }
- }
|