Search:

Type: Posts; User: native

Search: Search took 0.66 seconds.

  1. Replies
    6
    Views
    449

    Re: Use of UserInput.read () ?

    Well turns out its a custom library :/
  2. Replies
    6
    Views
    449

    Re: Use of UserInput.read () ?

    Well it does cover scanners and buffers later in these notes. I think maybe its just a terribly named scanner like you suggested. I kinda hoped it wasn't though :(
    I wish he'd put more of the...
  3. Replies
    6
    Views
    449

    Re: Use of UserInput.read () ?

    Cheers Kevin for your help.
    If its any help in solving the mystery there is also a UserInput.getInt()" ?
  4. Replies
    6
    Views
    449

    Use of UserInput.read () ?

    Hi all,

    Teaching myself Java for an exam coming up next month and in the notes I'm using they have "UserInput.readInt()" as well as "UserInput.readFloat()" - Now in the notes all that's there is a...
  5. Replies
    7
    Views
    467

    Re: Printing an array

    I was having trouble compiling under a different name so I called the array 'array' just to be sure it would compile. Then after I worked out why I was having compile problems so I guess I could...
  6. Replies
    7
    Views
    467

    Re: Printing an array

    Oh right I see! Works a treat. Thank you.

    Here is full working code for anyone who may stumble across this topic in the future.


    import java.io.*;
    class SortAscEdit
    {
    public static void...
  7. Replies
    7
    Views
    467

    Re: Printing an array

    Hi Dlorde,
    Yes it works now! When you say don't use magic numbers instead use array.length what do you mean? Could you possibly show me its use on the above code?
    Thanks
    native
  8. Replies
    7
    Views
    467

    Re: Printing an array

    Gonna reply to my own post, the print part appears to be inside the wrong bracket set! muppet error :D
    New code looks like this

    import java.io.*;
    class SortAsc
    {
    public static void main (...
  9. Replies
    7
    Views
    467

    Printing an array

    Hello all! My first post here :D

    I've started teaching myself java and at the moment am making a really simple number sorter to sort an array in ascending order. As far as I'm aware I have the...
Results 1 to 9 of 9