Search:

Type: Posts; User: andaji

Search: Search took 0.25 seconds.

  1. Replies
    3
    Views
    383

    Re: Problems with a code

    if you look at your variable, you cannot declare as "volume of box", "volume of cylinder", and "3.14", in all volume of box or volume of cylinder has space on it, declare it without the spaces then...
  2. Replies
    3
    Views
    320

    Re: Variable error help

    You actually closed your main method and class bracket before your for loop, so the computer never understands what is your for loop for, change your bracket and it should take out those errors it's...
  3. Replies
    9
    Views
    661

    [SOLVED] Re: Not initializing

    What Herah wrote will make your code work fine.. declare all the variables in class before any method rather than declare inside each method, by doing that if you call the variable outside of that...
  4. Replies
    6
    Views
    674

    Re: I need help with my code

    Can you put your code and error in code tag? It's too hard and confusing to read through all these codes you gave here
  5. Replies
    6
    Views
    530

    Re: Scanner code won't work

    I also copied and paste your code into my compiler & it compiled and ran totally fine. So, there is NO error in your code. I guess it's the problem with saving these two files. Remember to save the...
  6. Replies
    1
    Views
    4,890

    How to take a char value in scanner

    Hello,
    Anyone know how can i take a character value from user in Scanner package? I've been trying by



    char grades;

    grades = console.next().charAt(0);
  7. Thread: GUI

    by andaji
    Replies
    1
    Views
    1,436

    GUI

    Why do you need labels in a GUI program?
  8. Replies
    2
    Views
    39,999

    Re: Limiting decimal places in a double

    yes... to show the output into 3 decimal place.. you have to use..

    System.out.printf ("%.3f" , Math.PI);

    This will convert the output into 3 decimal places. In other output system like...
  9. Replies
    1
    Views
    1,922

    Re: The printf() method explanation needed

    I think it's the only reason you use the printf() method.
    In other methods like print or println it just only print the thing in the computer screen but you can't format the output.
    but with the...
  10. Thread: upper case

    by andaji
    Replies
    2
    Views
    684

    [SOLVED] Re: upper case

    Thanks..!
    It worked. i did use the Character.toUpperCase(); but i didn't put in right order,
    as you shown in ur reply... i = Character.toUpperCase();
    i forgot to did that, instead i was just...
  11. Thread: upper case

    by andaji
    Replies
    2
    Views
    684

    [SOLVED] upper case

    Anyone know how to put any char value to upper case? I thought it's Character.toUpperCase();
    But it's not working. Please help me out. Thank you!
Results 1 to 11 of 11