About 712,000 results
Open links in new tab
  1. How to Return an Array in Java? - GeeksforGeeks

    Jul 23, 2025 · Arrays in Java are different in implementation and usage when compared to that in C/C++ although they have many similarities as well. Here we will discuss how to return an …

  2. Java Arrays - W3Schools

    Java Arrays Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value. To declare an array, define the variable type with square …

  3. Returning Arrays in Java: A Comprehensive Guide - javaspring.net

    Nov 12, 2025 · This blog post will delve into the fundamental concepts of returning arrays in Java, explore different usage methods, discuss common practices, and present best practices to …

  4. How To Return An Array In Java? A Detailed Guide With Examples

    Learn how to return an array in Java by creating the array inside a method, populating it with values if necessary, and using the return keyword to send it back to the calling code for further …

  5. How to Return an Array in Java? (from a Method) - FavTutor

    Sep 26, 2024 · Learn how to return an array in java in this article with code. We also mentioned how to pass and return an array in java from a method.

  6. How To Pass / Return An Array In Java - Software Testing Help

    Apr 1, 2025 · In this tutorial, we will discuss how to pass arrays as an argument to a method and return the array from the method. Arrays can be passed to other methods just like how you …

  7. Returning Arrays in Java - W3docs

    To return an array in Java, you can simply specify the array type as the return type of the method.

  8. How to Return an Array in Java - TechBloat

    Dec 10, 2025 · Returning an array in Java isn’t rocket science, but it’s a common source of confusion for beginners. Here’s the straightforward way based on real-world experience.

  9. How to Return Array in Java - Delft Stack

    Feb 2, 2024 · We can initialize an array with the elements to return them from the function. In the following example, we have four functions with different return types like int, double, String, …

  10. How to Return an Array in Java? - Naukri Code 360

    Jul 25, 2025 · In this article, we'll discuss how to return arrays from methods in Java, talking about both one-dimensional & multi-dimensional arrays.