chapter_002/src/main/java/ru/job4j/start/StartUI.java
private void printList(boolean programOnline) {
        if (programOnline) {
            for (int i = 0; i < doList.length; i++) {
                System.out.printf("%d. %s \n", i, doList[i]);
            }
        } else {
            System.out.println("Bye bye");
        }
    }
/**
     * Print menu of program.
     *
     * @param programOnline boolean
     */
Print menu of program.
@param programOnline boolean
Print menu of program . @param programOnline boolean
private void printList(boolean programOnline) {
        if (programOnline) {
            for (int i = 0; i < doList.length; i++) {
                System.out.printf("%d. %s \n", i, doList[i]);
            }
        } else {
            System.out.println("Bye bye");
        }
    }
private void printList ( boolean programOnline ) { if ( programOnline ) { for ( int i = 0 ; i < doList . length ; i ++ ) { System . out . printf ( "%d. %s \n" , i , doList [ i ] ) ; } } else { System . out . println ( "Bye bye" ) ; } }
Print menu of program.
Print menu of program .