Search:

Type: Posts; User: 07.350

Search: Search took 0.07 seconds.

  1. Replies
    17
    Views
    1,470

    Re: Java Method Help

    I got it to work! Thanks for your help and baring with me!
  2. Replies
    17
    Views
    1,470

    Re: Java Method Help

    When I type in String it doesn't recognize it as a string variable.
  3. Replies
    17
    Views
    1,470

    Re: Java Method Help

    Would I define it was a char or string? That's what I'm confused about
  4. Replies
    17
    Views
    1,470

    Re: Java Method Help

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    a cannot be resolved to a variable
    Monthly cannot be resolved to a variable
    Syntax error on token "Compounded",...
  5. Replies
    17
    Views
    1,470

    Re: Java Method Help

    Sorry, it won't compile but the error is the method displayInterest(double,double, double, char,double) in the type InterestCalculator4 is not applicable for the arguments (double, double,double,...
  6. Replies
    17
    Views
    1,470

    Re: Java Method Help

    I changed it to

    /** display interest **/
    public static void displayInterest(double numb1, double numb2, double numb3, char word1, double numb4, double numb5 ) {
    numb5 = numb1 + numb4; ...
  7. Replies
    17
    Views
    1,470

    Re: Java Method Help

    It won't compile it gives me an error at
    System.out.println("+numb1", "+numb2", "numb3", "+word1", "+numb4", "+numb5");
    saying the method...
  8. Replies
    17
    Views
    1,470

    Re: Java Method Help

    Sorry!
    Purpose: To display the result of the calculated interest to the user. Parameters: You will need to determine the number of parameters and their appropriate data type of each parameter to...
  9. Replies
    17
    Views
    1,470

    Java Method Help

    I'm trying to create a method for the display interest and I'm struggling with how to come up with how to get it to work. Any help would be great!


    import java.util.Scanner;
    public class...
Results 1 to 9 of 9