src/main/java/Manager.java
/**
     * list all items
     *
     * @return  String with all items
     * @author  Matheus de Andrade
     * @author  Pedro Henrique
     * @version 1.0
     */
list all items
@return  String with all items
@author  Matheus de Andrade
@author  Pedro Henrique
@version 1.0
list all items @return String with all items @author Matheus de Andrade @author Pedro Henrique @version 1 . 0
public String listItems(){
        String text = "\n";
        for (int index = 0 ; index < locations.size() ; index++){
            text = text + locations.get(index).getName() + ":\n";
            for (int index_ = 0 ; index_ < items.size() ; index_++){
                if(items.get(index_).getLocation().getName().equals(locations.get(index).getName())) {
                    text = text + "\t" + items.get(index_).getName() +" " +
                            items.get(index_).getCode() + ":\n\t\t-Description: " + items.get(index_).getDescription() +
                            "\n\t\t-Category: "+ items.get(index_).getCategory().getName() + "\n\n";
                }
            }
        }
        return text;
    }
public String listItems ( ) { String text = "\n" ; for ( int index = 0 ; index < locations . size ( ) ; index ++ ) { text = text + locations . get ( index ) . getName ( ) + ":\n" ; for ( int index_ = 0 ; index_ < items . size ( ) ; index_ ++ ) { if ( items . get ( index_ ) . getLocation ( ) . getName ( ) . equals ( locations . get ( index ) . getName ( ) ) ) { text = text + "\t" + items . get ( index_ ) . getName ( ) + " " + items . get ( index_ ) . getCode ( ) + ":\n\t\t-Description: " + items . get ( index_ ) . getDescription ( ) + "\n\t\t-Category: " + items . get ( index_ ) . getCategory ( ) . getName ( ) + "\n\n" ; } } } return text ; }
list all items
 @return  String with all items
 @author  Matheus de Andrade
 @author  Pedro Henrique
 @version 1.0
list all items @return String with all items @author Matheus de Andrade @author Pedro Henrique @version 1 . 0