Search:

Type: Posts; User: dunnage888

Search: Search took 0.19 seconds.

  1. How do I print item facilities in another class?

    I am creating a hotel booking system and I have come across a problem. Here is my main method:


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor....
  2. Replies
    1
    Views
    1,249

    How do I print my 2d array?

    I am making a hotel booking system and can only take bookings in the month of April. I am having trouble creating the booking calendar and am using a 2d array for the month April I am not sure if...
  3. Re: How do I get my answers to out with 2 decimal places?

    I still don't really understand? I have been trying for hours and just can't seem to get it right.
  4. How do I get my answers to out with 2 decimal places?

    Hi I have my program working all I need now is to output the answers to 2 decimal places. Could somebody help me out with this? Below is my code.




    /*
    * To change this template, choose Tools...
  5. Replies
    2
    Views
    1,316

    How do I stop my answer from looping?

    I have achieved the output I want for my program but the answer just continuously loops I have tried to stop the loop but I can't seem to figure out how to. Could someone help me out please?


    ...
  6. Replies
    1
    Views
    1,245

    What do I need to do?

    program requests and reads a list of file names (one per line). Program ends when a blank line is entered.

    If a file name endsWith ".txt" then print "Text File: xxxx" where xxxx is the full file...
  7. Replies
    1
    Views
    1,374

    Finding the range of 2 integer inputs

    I need to create a program that reads in 2 integers and finds the range. With this it then produces the sum of all the odd numbers within the range. Can anyone help me out with this problem?
  8. Replies
    5
    Views
    1,539

    How do I loop this if statement?

    How do I loop this if statement from my program?


    if (fileNames.contains(".txt")) {

    System.out.println("Text File:" + fileNames);
    fileNames = scan.nextLine();
    ...
  9. Re: How do I change my output to 1 decimal place?

    Yess! It works thank you so much!
  10. Re: How do I change my output to 1 decimal place?

    Nope that does the same as before hmmm. Just incase this helps when I enter number 1 and number 2 I input the following:

    Enter number 1: 5.2
    Enter number 2: 16.8093

    Then this is the output...
  11. Re: How do I change my output to 1 decimal place?

    Ahhh thank you that works! However, my integerResult is now displaying 0 and no answer.
  12. Re: How do I change my output to 1 decimal place?

    The line of code redlines and displays the message

    ';' expected

    cannot find symbol
    symbol: variable number
    location: class assignment1.Casting
  13. Re: How do I change my output to 1 decimal place?

    Yeah I tried doing that but it still has a problem with that line of code. I don't get why?
  14. Re: How do I change my output to 1 decimal place?

    Everything is fine from that piece of code you gave me apart from one line of code.....

    double finalValue = number2 / number 1;

    There is an error here and the programme wont run.
  15. Re: How do I change my output to 1 decimal place?

    Sorry to be a pain but where about in the code do I put it or does that not matter?
  16. How do I change my output to 1 decimal place?

    I need a bit of help setting one of my programmes outputs to only the 1 decimal place each time the doubleResult displays it's result it is to like 12 decimal places or something like that. How do I...
Results 1 to 16 of 16