Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to access contents of an array from another class in java

class MyClass
{
    //Variable I want to return
    private int[] numArray = {1, 2, 3};

    public int[] getNumArray() {
        return numArray.clone();
    }
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #contents #array #class #java
ADD COMMENT
Topic
Name
8+5 =