src/Visualizer.java
/**
     * Displays the code instruction sequence as an indexed list.
     */
Displays the code instruction sequence as an indexed list.
Displays the code instruction sequence as an indexed list .
private void displayCode() {
        String[] instructions = interp.getInstructions();
        for (int pc = 0; pc < instructions.length; pc++) {
            System.out.format("%-6s%-8s| ", pc, instructions[pc]);
            if (pc % 8 == 7 || pc == instructions.length - 1)
                System.out.println();
        }
    }
private void displayCode ( ) { String [ ] instructions = interp . getInstructions ( ) ; for ( int pc = 0 ; pc < instructions . length ; pc ++ ) { System . out . format ( "%-6s%-8s| " , pc , instructions [ pc ] ) ; if ( pc % 8 == 7 || pc == instructions . length - 1 ) System . out . println ( ) ; } }
Displays the code instruction sequence as an indexed list.
Displays the code instruction sequence as an indexed list .