SHARE
TWEET

Untitled

a guest Jun 12th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int licznik = 0;
  2. while (raf.getFilePointer()<raf.length()) {
  3.     raf.readUTF();
  4.     raf.readDouble();
  5.     raf.readInt();
  6.     licznik++;
  7. }
  8. String[] nazwy = new String[licznik];
  9. double[] ceny = new double[licznik];
  10. int[] liczby = new int[licznik];
  11. raf.seek(0);
  12. licznik = 0;
  13. while (raf.getFilePointer()<raf.length()) {
  14.     nazwy[licznik]=raf.readUTF();
  15.     ceny[licznik]=raf.readDouble();
  16.     liczby[licznik]=raf.readInt();
  17.     licznik++;
  18. }
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