aspose file tools
The moose likes Beginning Java and the fly likes The Diamond Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "The Diamond" Watch "The Diamond" New topic
Author

The Diamond

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 225


OrderedPair.java:32: error: incompatible types
Pair<String,Colour<String>> obj3=new OrderedPair<>("k3",new Colour<>());
^
required: Pair<String,Colour<String>>
found: OrderedPair<String,Colour<Object>>
1 error

Why diamond isn't working for Colour?



OCAJP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The Diamond
 
Similar Threads
question concering hashCode(), equals() and operator ==
Inheriting variable and static functions
Inner classes & Static blocks
inner class/inheritance