The second argument to the FileOutputStream constructor, which I assume you're using, is a flag specifying whether to append to the file.
(see http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileOutputStream.html)
So in your case, you might have:
FileOutputStream out = new FileOutputStream(new...
Hey, you've probably already figured this out, but it looks like you're covering the same items when you do your search.
In a three-element vector you would compare: a == b, a == c.
Because you're starting the inner loop from zero, you're comparing: a == a, a == b, a == c, b == a, b == b, b ==...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.