Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class U0901Main {
- public static void main(String[] args) {
- Integer[] intArr = {10, 20, 15};
- Float[] floatArr = new Float[10];
- for (int i = 0; i < 10; i++)
- floatArr[i] = (float) ((i * i) / 3);
- U0901WorkArray<Float> insWorkArrayFloat = new U0901WorkArray<>(floatArr);
- U0901WorkArray<Integer> insWorkArrayInt = new U0901WorkArray<>(intArr);
- //U0901WorkArray<String> insWorkArrayString;
- System.out.println(insWorkArrayFloat.sum() + " " + insWorkArrayInt.sum());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement