Search:

Type: Posts; User: beginnerjava

Search: Search took 0.21 seconds.

  1. Replies
    6
    Views
    643

    Re: Help with array code.

    @ Norm, I want the code to display 5 integers from first to last then last to first.
  2. Replies
    6
    Views
    643

    Re: Help with array code.

    Fixed the semicolon and added the int values.

    [CODE] public static void main (String[]args)
    {
    //create an array to hold 5 integers
    int [] array = new int [5];

    int i=0;
    ...
  3. Replies
    6
    Views
    643

    Help with array code.

    Very new to Java and am trying to create an array that has 5 integers and display them from first to last and last to first. What I have so far:


    public class arrayex {


    public static void...
Results 1 to 3 of 3