Search:

Type: Posts; User: javapenguin

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    2,010

    Re: [Y/N] Option

    I meant 'R' and 'r'.

    I had 6 hours of sleep yesterday.

    However, it will compile and, once it is changed to 'R' and 'r', should work.

    I did compile and test this one.

    Had a lot of things...
  2. Replies
    4
    Views
    2,010

    Re: [Y/N] Option

    Here is the code, it appears to do what you want it to now:


    import java.util.Scanner;
    public class phonebill
    {
    public static void main(String[] args)
    {
    char customertype = 't'; // R - for...
  3. Replies
    4
    Views
    2,010

    Re: [Y/N] Option

    Consider a while loop for the options thing

    while (!options.equalsIgnoreCase("N"))

    and put that around all the stuff you want done till they hit N.

    Also, get rid of if and else if at the end...
Results 1 to 3 of 3