Search:

Type: Posts; User: RePT

Search: Search took 0.17 seconds.

  1. Thread: Beginner error

    by RePT
    Replies
    6
    Views
    186

    Re: Beginner error

    Hi Darish,

    I've just had a go at compiling the code, and it seems to run successfully, and do what is expected.


    public class TestClass {

    public static void main(String[] args) {
    ...
  2. Replies
    8
    Views
    226

    Re: HELP! Beginner - .compareTo();

    Norm,

    I understand why I was unable to use >= or > or < in my code.

    This code happily accepts >=, it is part of the compareTo method, I was trying to take integer from compareTo() result and...
  3. Replies
    8
    Views
    226

    Re: HELP! Beginner - .compareTo();

    Sorry you seem to be asking the same question over and over - I apologise for not being clear.



    edit: I have found the solution online.


    package progbydoing;
    import java.util.Scanner;
  4. Replies
    8
    Views
    226

    Re: HELP! Beginner - .compareTo();

    Norm,

    The code is working fine, it compiles as it should.

    The compareTo(); method returns an integer, I am having difficulty translating that to what is required by the task.

    I understand...
  5. Replies
    8
    Views
    226

    Re: HELP! Beginner - .compareTo();

    Hi Norm,

    Thank you for your response.

    package progbydoing;
    import java.util.Scanner;

    public class AlphabeticalOrder {
  6. Replies
    8
    Views
    226

    HELP! Beginner - .compareTo();

    Afternoon All,

    I am a beginner Java programmer and am working my way through some tutorials on programmingbydoing.


    I am stuck on the following tutorial, and would appreciate any pointers.
    ...
  7. Replies
    0
    Views
    431

    .

    .
Results 1 to 7 of 7