Results 1 to 3 of 3
  1. #1
    sebb is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default hey! i need som help putting my text into 3 different classes.. anyone who can help?

    import javahjelp.Konsoll;

    public class TiordUtregning {

    public static void main(String[] args) {

    String[] rekke = new String[10];
    for (int i=0;i<10;i++){
    rekke[i] = Konsoll.readLine("Tast inn ord " +i);
    }
    for (int i=0;i<10;i++){
    System.out.println("Forfra " + rekke[i]);

    }
    for (int i=0;i<10;i++){
    System.out.println("Baklengs " + rekke[10-i-1]);

    }
    for (int i=0;i<10;i++){
    System.out.println("Annenhvert ord " + rekke[i+=1]);

    }
    }
    }

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Well good luck with this, but it's going to be very hard to help you with just a small bit of code and no explanation of the problem whatsoever.

    If you still need help, you may wish to provide a lot more information. Please look at the second link in my signature below for instructions on what information we need.
    Last edited by Fubarable; 10-21-2010 at 02:39 PM.

  3. #3
    sebb is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default

    its a program that lets you write 10 words, then it prints out the words from first to last, from last to first and every other word(word 2-4-6-8-10).. i need to know what goes in the "main" method, the "dialog"(with user)..

Similar Threads

  1. Replies: 3
    Last Post: 06-02-2010, 07:58 PM
  2. Putting Java Programs on a DVD
    By matt.monkeyboy in forum Advanced Java
    Replies: 4
    Last Post: 04-05-2010, 04:06 AM
  3. Putting code together.
    By newbee in forum New To Java
    Replies: 3
    Last Post: 04-17-2008, 04:53 AM
  4. Putting your own type in a Set
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-15-2008, 08:32 PM
  5. Putting controls in arrays?
    By Cymro in forum New To Java
    Replies: 4
    Last Post: 02-01-2008, 07:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •