symbol : method size()
location: class LispList<java.lang.Integer>
int l = a.size();
this is the error im getting, however reading my notes I think u can only use certain methods with LispList...
Type: Posts; User: Newoor
symbol : method size()
location: class LispList<java.lang.Integer>
int l = a.size();
this is the error im getting, however reading my notes I think u can only use certain methods with LispList...
ok i sorted that problme out,
so why doesn't the size method work for LispLists (they work for Array Lists)
ahhh missing method
public static LispList<Integer> parseIntLispList(String str)
{
String line = str.trim();
String contents = line.substring(1,line.length()-1).trim();
...
Write static method which performs the following operation:
length takes a list and returns the number of integers in it. For example, with [7,3,8,12,9,14]
it would return 6.
import...