Posts by Felipe • 137 points
3 posts
-
5
votes2
answers1144
viewsQ: Change Arraylist nodes
If I have a ArrayList<Integer> listInt for example, suppose in this ArrayList have: int a, int b, int c; //a = 2 b=3 c=4 and then I change the value of a, b and c for example to a=1 b=2 c=3…
-
5
votes2
answers927
viewsQ: Objectoutputstream only saves the first object
I’m trying to manipulate a Byte file with Java. In the writing of the file I have the following code: FileOutputStream fos = new FileOutputStream("files\\Produtos.dat",true); ObjectOutputStream oos…
-
3
votes2
answers2721
viewsQ: How to write in a text file concatenating with existing text in Java?
I would like to write in a text file using Java, but whenever I use the functions write of BufferedWriter the previous text is deleted and the new one is written, I would like to keep the old text…