src/Writer.java
/**
     * Converts the Food LinkedList's data values into a list of strings
     */
Converts the Food LinkedList's data values into a list of strings
Converts the Food LinkedList ' s data values into a list of strings
public List<String> foodcleaner() {
        List<String> b = new LinkedList<String>();
        b.add(name + ";" + score); 
        for (int a = 0; a < food.length; a++) {  
            int x = food[a][0];
            int y = food[a][1];
            b.add(x + ";" + y);
        }
        return b;
    }
public List < String > foodcleaner ( ) { List < String > b = new LinkedList < String > ( ) ; b . add ( name + ";" + score ) ; for ( int a = 0 ; a < food . length ; a ++ ) { int x = food [ a ] [ 0 ] ; int y = food [ a ] [ 1 ] ; b . add ( x + ";" + y ) ; } return b ; }
Converts the Food LinkedList's data values into a list of strings
Converts the Food LinkedList ' s data values into a list of strings