Search:

Type: Posts; User: ARsNGlocks

Search: Search took 0.10 seconds.

  1. Replies
    22
    Views
    1,176

    Re: returing my value from an array

    ha, yea sorry, I meant my format on that last part of code I added, this is error i am getting.

    numArrays.java:53: error: missing return statement
    }
    ^
    1 error

    --- Update ---

    or this...
  2. Replies
    22
    Views
    1,176

    Re: returing my value from an array

    import java.util.*;



    public class numArrays
    {
    public static void main(String[] args){


    int numbers;
  3. Replies
    22
    Views
    1,176

    Re: returing my value from an array

    import java.util.*;



    public class numArrays
    {
    public static void main(String[] args){


    int numbers;
  4. Replies
    22
    Views
    1,176

    Re: returing my value from an array

    yes you are correct, I was trying to figure out what I had to do to get it to also return the lowest number out of the user input

    --- Update ---

    This is my problem, I have having trouble trying...
  5. Replies
    22
    Views
    1,176

    Re: returing my value from an array

    there are no errors when the code below the return is removed
  6. Replies
    22
    Views
    1,176

    Re: returing my value from an array

    no errors, runs and prints out the users numbers, just doesnt print the lowest.
  7. Replies
    22
    Views
    1,176

    Re: returing my value from an array

    sorry about that, the user inputs how ever many numbers they want then it returns them as an array and i am trying to get it to return the lowest number out of the entered numbers. it compiles up...
  8. Replies
    22
    Views
    1,176

    returing my value from an array

    // please help me, I am trying to return the lowest value from the array. having trouble trying to capture the return value by placing it into the variable .. int myLowest = getLowest(yourNumbers); ...
Results 1 to 8 of 8