SHARE
TWEET

Untitled

a guest Feb 27th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class U0901Main {
  2.  
  3.     public static void main(String[] args) {
  4.         Integer[] intArr = {10, 20, 15};
  5.         Float[] floatArr = new Float[10];
  6.         for (int i = 0; i < 10; i++)
  7.             floatArr[i] = (float) ((i * i) / 3);
  8.         U0901WorkArray<Float> insWorkArrayFloat = new U0901WorkArray<>(floatArr);
  9.         U0901WorkArray<Integer> insWorkArrayInt = new U0901WorkArray<>(intArr);
  10.         //U0901WorkArray<String> insWorkArrayString;
  11.         System.out.println(insWorkArrayFloat.sum() + " " + insWorkArrayInt.sum());
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top