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

return function returns 0.0f values

$
0
0
Hi,
My return method just return 0.0f am I putting the code input wrong my data List is definately full because I tested this

public float getData()
	{
		float coordinates = 0.0f;
		
		for( int i = 0; i < data.size(); i++ )
		{
			coordinates = data.get( i );
		}
		
		return coordinates;
	}



Viewing all articles
Browse latest Browse all 51036

Trending Articles



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