Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Functionality {
- public static void main(String[] args) {
- }
- public static boolean containsMean(int[] array){
- boolean a = false;
- if(array != null && array.length>=1){
- int b = array.length;
- double c = 0;
- while(b>0){
- c = c + array[b-1];
- b=b--;
- }
- int d = (int)(c / array.length);
- int e = array.length;
- while(e>0){
- if(d == array[e-1]){
- a = true;
- }
- e=e--;
- }
- }
- return a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement