Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int r = 1;
- int ret = 0;
- String nazwa [] = new String[r];
- double cena [] = new double [r];
- int lSztuk [] = new int [r];
- String pointer = null;
- try (RandomAccessFile raf = new RandomAccessFile ("file", "rw"))
- {
- // halo jaka tu ma być iteracja
- nazwa[0] = raf.readUTF();
- cena[0] = raf.readDouble();
- lSztuk[0] = raf.readInt();
- // żeby czytać dane i nie wyskoczył NullPointer ?
- }
- catch (IOException e)
- {
- System.err.println("Błąd_3!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement