Search:

Type: Posts; User: Mellowhype

Search: Search took 0.08 seconds.

  1. Need more help, this time requiring the Comparable interface

    What I need to do is compare a floating point value from the numerator and denominator for both
    rational objects.


    public class Rational implements Comparable
    {

    public int...
  2. Re: Making sure I answered this question completely.

    Yep, all good now.
  3. Re: Making sure I answered this question completely.

    yeah sure, I figured out i need to put in the parameter sentence, but NOW it says i need to initialize sentence.


    import java.util.Scanner;
    public class PigLatin
    {
    ...
  4. Re: Making sure I answered this question completely.

    Right, I replaced the new statement in PigLatin with PigLatinTranslator.translate(); but it gives me an error saying ican't apply () to translate.
  5. Re: Making sure I answered this question completely.

    I didn't edit PigLatin but it runs perfectly.
  6. Making sure I answered this question completely.

    Here's the question first of all: Change the PigLatinTranslator from chapter 4 so that its translatemethod is static. Change the PigLatin class so it invokes the method correctly.

    Original...
Results 1 to 6 of 6