Created
September 7, 2011 20:24
-
-
Save sroebuck/1201627 to your computer and use it in GitHub Desktop.
Revisions
-
sroebuck created this gist
Sep 7, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import java.lang.Readable import java.nio.CharBuffer import java.util.Scanner val readable = new Readable { def read(x: CharBuffer) = { x.put("12 34".reverse); 5} } def s = new Scanner(readable) assert(s.nextInt() == 43)