Skip to content
murmot

Results for “function return python array example programs in java language class 10”

  • golinuxcloud.com

    How to return an Array in Java [Practical Examples]

    Jan 25, 2022 · Java allows arrays to be passed as a parameter to the other functions and return data from that function. In fact, if we need to return multiple value of same type then returning through an array is the best alternative, and one of the patterns in return multiple values in Java.

  • w3schools.com

    Python Functions

    Python Functions. A function is a block of code which only runs when it is called. A function can return data as a result. A function helps avoiding code repetition.

  • guvi.in

    Return Array from Method - guvi.in

    Learn how to return arrays in Java methods, pass arrays as parameters, and return arrays of primitives or objects with simple examples.

  • programiz.com

    Online Python Compiler (Editor) + Code Visualizer

    Write and run Python code using our online Python compiler (editor) that's blazing fast and easy to use for beginners.Step through your code line by line and watch variables, function calls and output change at each step. A clear way to understand loops and recursion, and to find bugs.

  • geeksforgeeks.org

    How to Return an Array in Java? - GeeksforGeeks

    Jul 23, 2025 · In order to return an array in java we need to take care of the following points: Keypoint 1: Method returning the array must have the return type as an array of the same data type as that of the array being returned.

  • beginnersbook.com

    Java program to perform Bubble Sort on Strings

    Python Examples.Bubble Sort on Strings example. In the following example we have stored the strings in a String array and we are using nested for loops to compare adjacent strings in the array, if they are not in order we are swapping them using a temporary string variable temp.

  • docs.oracle.com

    Arrays (The Java™ Tutorials > Learning the Java Language ...

    An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You have seen an example of arrays already, in the main method of the "Hello World!" application. This section discusses arrays in greater detail. An array of 10 elements. Each item in an array is called an ...

  • materiaalit.github.io

    MOOC | MOOC - Massive online open course

    Object-Oriented Programming with Java, part I.29.1 Sorting an array with the ready-made tools of Java. As we've seen, there's all kinds of useful things already in Java. For example for handling ArrayLists you can find many useful help methods in the class Collections.

  • stackoverflow.com

    Python: Returning array values from a function - Stack Overflow

    Sep 9, 2019 · I'm trying to understand how to use functions properly. In this code, I want to return 2 arrays for pupil names and percentage scores. However I am unable to return the array variables from the first function. I've tried using different ways of defining the arrays (with and without brackets, both globally and locally)

  • geeksforgeeks.org

    Arrays in Java - GeeksforGeeks

    Nov 20, 2026 ... Returning an Array: A method can return an array reference by ... return new int[] {10, 20, 30}; }. Advantages of Java Arrays. Provides ...

  • tutorialgateway.org

    Python Program to Print Positive Numbers in an Array

    In this Python example, the for loop (for num in posArr) iterates the original values. Within the second for loop, numpy greater_equal function (if (np.greater_equal(i, 0) == True)) checks whether the numpy array item is greater than or equals zero returns True.Categories Python Examples.