Code example for Console

Methods: readPassword

0
        } 
    } 
 
    public void test_readPassword_LString_LObject() { 
        try { 
            console.readPassword("%d", 3);
            fail();
        } catch (IOError expected){
        } 
        String prompt = new String(((ByteArrayOutputStream)out).toByteArray());
        assertEquals("3", prompt);
    } 
 
    /** 
     * @tests {@link java.io.Console#writer()} 
     */ 
    public void test_writer() { 
        PrintWriter writer1 = console.writer();
        PrintWriter writer2 = console.writer();
        assertSame(writer1, writer2);
Connect your IDE to all the code out there  Get Codota for Java