Answers for "how to pass array data structure java"

1

how to make a fixed size array in java

dataType[] arrayRefVar = new dataType[arraySize];
Posted by: Guest on May-22-2020
0

passing array to function java

public int min(int [] array) {
      int min = array[0];
   
      for(int i = 0; i<array.length; i++ ) {
         if(array[i]<min) {
            min = array[i];
         }
      }
      return min;
   }
int minimum = min(myArray)
Posted by: Guest on October-30-2020

Code answers related to "how to pass array data structure java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language