Search:

Type: Posts; User: Carolineawood

Search: Search took 0.07 seconds.

  1. Replies
    9
    Views
    2,861

    Re: Help! Whats wrong with my code?

    thank you!
    i know have this




    import java.util.Scanner;
    public class SmallestAndAverageCh5
    {
  2. Replies
    9
    Views
    2,861

    Re: Help! Whats wrong with my code?

    I think I am doing something wrong because I keep getting the same error message for my else if statement




    public static double smallest(double x, double y, double z)
    {
    if (x < y && x < z)...
  3. Replies
    9
    Views
    2,861

    Re: Help! Whats wrong with my code?

    Thank you! I now only have one error and its with the else if this is what its saying...

    ----jGRASP exec: javac -g SmallestAndAverageCh5.java
    SmallestAndAverageCh5.java:26: error: 'else' without...
  4. Replies
    9
    Views
    2,861

    Help! Whats wrong with my code?

    Hello I'm a beginner java student and can't figure out what I'm doing wrong.

    Write the following methods and provide a program to test them

    A. double smallest(double x, double y, double z),...
Results 1 to 4 of 4