Category: Java

Can you pass an int array to a generic method in java?

I’m playing around with some code katas and trying to get a better understanding of java generics at the same time. I’ve got this little method that prints arrays like I like to see them and I have a couple of helper methods which accept an array of ‘things’ and an index and returns the […]

Java heap space in netbeans.. but I’ve increased the heap size already!

I’m having an issue with netbeans and Java. My program needs to be able to cope with large files being uploaded via an arraylist. So I used -Xmx512m to increase the maximum heap size via the netbeans.conf file. I know that netbeans is catching the change, and I’ve restarted multiple times to make sure it […]