Search:

Type: Posts; User: NoobOfTheMonth

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    It got rid of the problem error, and now I just have some more minor stuff that I can take care of, thanks a lot :D
  2. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    I was trying to get 25 percent of the product of those numbers, however I didn't know that the percentage was the problem. I could just use .25, correct?
  3. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    This is my attempt at printf on the problem areas, thanks!



    if (hours_worked <= 40 )
    System.out.printf( "Withholding Tax: %d", hours_worked*pay_rate*25% );

    else
    System.out.printf(...
  4. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    Which print method should I use? printf produces the same result :(
  5. Replies
    9
    Views
    1,222

    Illegal start of expression!

    I'm new to the forums, I am sorry if I do this incorrectly.

    Here is my code :

    1import java.util.Scanner;
    2
    3public class Lab4b
    4
    5{
    6
Results 1 to 5 of 5