Looking for a way to pass back multiple data types from a method. I want to be able to pass back an array that the method fill out, and also the length of that array (I need that because the calling code will pass the byte array to the serial port, and the length must be specified). I looked into Vectors, but each element in the Vector must be an object (can't just be an integer).
Any idea on how to do this? I'm a java noob. In VB it was easy to just create a structure. Not sure what to do in Java