Search:

Type: Posts; User: craigjlner

Search: Search took 0.21 seconds.

  1. Replies
    9
    Views
    1,474

    Re: How to reverse a string array ?

    Well I did it :o Thanks Greg.


    //FriendList.java

    public class FriendList {

    public static void main (String[] args) {

    String [] friends = {"danny", "vic", "Laura", "Mike", "Jenny",...
  2. Replies
    9
    Views
    1,474

    Re: How to reverse a string array ?

    //FriendList.java

    public class FriendList {

    public static void main (String[] args) {

    String [] friends = {"danny", "vic", "Laura", "Mike", "Jenny", "Asrath"};

    System.out.println...
  3. Replies
    9
    Views
    1,474

    Re: How to reverse a string array ?

    The first for loop prints : Danny, vic , laura, mike , jenny, asrath.
    I want the second for loop to print them in reverse like: asrath, jenny mike, laura, vic. Danny.
  4. Replies
    9
    Views
    1,474

    How to reverse a string array ?

    Hello again. I have an array of friends names and I want to print it in reverse. I know this question seems a bit lazy, but i really have tried casting the string as ints and even using lazy =...
Results 1 to 4 of 4