Code example for PushbackReader

Methods: readskipunread

0
     * java.io.PushbackReader#unread(int) 
     */ 
    public void test_unreadI() throws IOException { 
        PushbackReader tobj;
 
        tobj = new PushbackReader(underlying);
        tobj.unread(23); // Why does this work?!?
        tobj.skip(2);
        tobj.unread(23);
        assertEquals("Wrong value read!", 23, tobj.read());
        tobj.unread(13);
        try { 
            tobj.unread(13);
            fail("IOException not thrown (ACTUALLY NOT SURE WHETHER IT REALLY MUST BE THROWN!).");
        } catch (IOException e) {
            // expected 
        } 
    } 
 
    /** 
Connect your IDE to all the code out there  Get Codota for Java