Search:

Type: Posts; User: darkestfright

Search: Search took 0.09 seconds.

  1. Re: Implementing Multiple Interfaces with Generics

    I get nearly the same error, using this implementation as well.



    C:\Users\username\Documents\Programming>javac BSTree.java
    BSTree.java:42: cannot find symbol
    symbol : method clone()...
  2. Re: Implementing Multiple Interfaces with Generics

    The compiler seems to accept <E extends Comparable, Cloneable>, but as soon as it reaches


    data = element.clone()

    I get:


    C:\Users\username\Documents\Programming>javac BSTree.java...
  3. Implementing Multiple Interfaces with Generics

    I know that it is possible to force generic parameters to implement certain interfaces like the following:



    public class Stuff <E extends Comparable>
    {
    //...
    }
Results 1 to 3 of 3