Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

ArrayList< float[ ] > how do I get the elements

$
0
0
Hi,
How would I go about getting the elements in the arrayList?
it does print back Verts: [F@4fe5e2c3
Any help would be appreciated

public class Model1 
{
	private ArrayList< float[] >vertX;
	
	private float[]x = { 1.0f, 9.0f, 7.9f };

	public Model1() 
	{
		// TODO Auto-generated constructor stub
		super();
		x = new float[ 20 ];
		vertX = new ArrayList< float[] >();
		
		vertX.add( x );
		
		for( int i = 0; i < vertX.size(); i++ )
		{
			System.out.println( "Verts: " + vertX.get( i ) );
		}
		
	}

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		// TODO Auto-generated method stub
		new Model1();

	}
}


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>