Search:

Type: Posts; User: Newoor

Search: Search took 0.12 seconds.

  1. Replies
    10
    Views
    2,699

    Re: Errors with LispList

    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...
  2. Replies
    10
    Views
    2,699

    Re: Errors with LispList

    ok i sorted that problme out,
    so why doesn't the size method work for LispLists (they work for Array Lists)
  3. Replies
    10
    Views
    2,699

    Re: Errors with LispList

    ahhh missing method


    public static LispList<Integer> parseIntLispList(String str)
    {
    String line = str.trim();
    String contents = line.substring(1,line.length()-1).trim();
    ...
  4. Replies
    10
    Views
    2,699

    Errors with LispList

    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...
Results 1 to 4 of 4