Search:

Type: Posts; User: Henk

Search: Search took 0.25 seconds.

  1. Replies
    8
    Views
    365

    Re: How to change my code?

    Here you go:



    /**
    * The program provides the user with the prices for a courrier service.
    */

    import java.util.*;
    public class CourierService {
  2. Replies
    8
    Views
    365

    Re: How to change my code?

    Got it working now, but one more question. I want it to first ask for the prices and then for the location and destination. How can I get it working like that?
    Here is my code:

    import...
  3. Replies
    8
    Views
    365

    Re: How to change my code?

    I really appreciate the help, but I still don't get it. I'm a very beginner in Java, sorry. I thought I have to change the int's after new in Array, but then it tells me: cannot find symbol - class...
  4. Replies
    8
    Views
    365

    Re: How to change my code?

    Then I thought I could use this:

    {

    int [] [] myNumbers = {
    {new int[5]}, {new int[5]}, {new int[5]}, {new int[5]}, {new int[5]}
    };

    Scanner sc = new Scanner(System.in);
    for (int...
  5. Replies
    8
    Views
    365

    How to change my code?

    This is the question I was trying to answer:
    Courier service. You have a courier service where the different routes are fixed. Create an
    application (for example using array) where you can include...
  6. Re: How to show a question again when a wrong answer is entered?

    Works now, thanks a lot. I just started learning Java, have to work on the brackets.
  7. How to show a question again when a wrong answer is entered?

    I wrote the code below for my homework. It should ask the user to calculate two things and it should stop when null is entered. It works, except from one thing and that is that it should show the...
Results 1 to 7 of 7