RedDevil6193 Posted January 30, 2012 Share Posted January 30, 2012 As title says I need help with java, not basic stuff but more in detail, so if anyone knows that well. Quote Link to comment Share on other sites More sharing options...
--------- Posted January 30, 2012 Share Posted January 30, 2012 (edited) Sun Java or Javascript? Theres a big difference.. Edited January 30, 2012 by ENIGM0 Quote Link to comment Share on other sites More sharing options...
RedDevil6193 Posted January 30, 2012 Author Share Posted January 30, 2012 Not java script but sun java. example public class StatisticsLibrary { static public <T extends Number> int average(T array[]) { if (array == null || array.length == 0) { return 0; } else { int sum = 0; for (int i = 0; i < array.length; i++) { sum += array[i].intValue(); } return sum / array.length; } } } Quote Link to comment Share on other sites More sharing options...
F34rTheV3n0m Posted January 30, 2012 Share Posted January 30, 2012 You should just post with what you need help with here, and hopefully have multiple people give you advice/answers. Unless this is a private issue thing. Quote Link to comment Share on other sites More sharing options...
--------- Posted January 31, 2012 Share Posted January 31, 2012 Not java script but sun java. Ok, well im not much help then.. lol Quote Link to comment Share on other sites More sharing options...
enigma# Posted January 31, 2012 Share Posted January 31, 2012 What are you trying to do Reddevil? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.