Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to return array in java

import java.util.Arrays;

public class trial1{

    public static void main(String[] args){
        int[] B = numbers();
        System.out.println(Arrays.toString(B));
    }

    public static int[] numbers(){
        int[] A = {1,2,3};
        return A;
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: android java listview clean 
Java :: javac celar 
Java :: runtime intalize array in java 
Java :: repository query spring boot 
Java :: native insert query in jpa repository 
Java :: java try and catch 
Java :: max and min value in array 
Java :: how to update java on windows 10 
Java :: java system.out.println 
Java :: file append in java 
Java :: 123 movies 
Java :: this keyword in java 
Java :: spring websocket allow origin 
Java :: set textView.android:drawableEnd programmatically 
Java :: how to change the value of an arraylist in java 
Java :: jbutton border size java 
Java :: Program type already present: android.support.v4.app.INotificationSideChannel 
Java :: array arraylist java 
Java :: what is packages in java 
Java :: How to efficiently find the area of largest rectangle that can be formed by adjacent buildings with known heights, in Java? 
Java :: how to loop through arraylist of objects in java 
Java :: java end scripting 
Java :: Java heap retention in BodyContentImpl 
Java :: how to count the number of occurrences of an element in a arraylist in java 
Java :: Changing background color of selected item in recyclerview 
Java :: hashtable java 
Java :: spring boot onetomany relationsion 
Java :: loop through number java 
Java :: java string.format system.currenttimemillis 
Java :: spring-boot java header appliacation/json constant 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =