java method that reads array from another class code example
Example: how can a class take array from another class in java
class B { int a; A obj = new A(); // Creating the Object of class A a = obj.arr[0]; // calling the array arr from that object System.out.println(a); }