Well turns out its a custom library :/
Type: Posts; User: native
Well turns out its a custom library :/
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...
Cheers Kevin for your help.
If its any help in solving the mystery there is also a UserInput.getInt()" ?
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...
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...
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...
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
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 (...
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...