Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Java, Java 7 Edition
This is the forum to discuss the Wrox book Ivor Horton's Beginning Java, Java 7 Edition by Ivor Horton ; ISBN: 978-0-470-40414-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Java, Java 7 Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2015, 10:13 AM
Registered User
 
Join Date: Feb 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 13: TryFlexibleBinaryTree

Hello,

Someone tried the small application TryFlexibleBinaryTree? When i compile this, i got the following error:

C:\Temp\TryFlexibleBinaryTree>javac TryFlexibleBinaryTree.java
TryFlexibleBinaryTree.java:4: error: type argument Manager is not within bounds
of type-variable T
BinaryTree<Manager> people = new BinaryTree<>();
^
where T is a type-variable:
T extends Comparable<T> declared in class BinaryTree
TryFlexibleBinaryTree.java:4: error: cannot infer type arguments for BinaryTree<
>;
BinaryTree<Manager> people = new BinaryTree<>();
^
reason: no instance(s) of type variable(s) T exist so that BinaryTree<T> confo
rms to BinaryTree<Manager>
where T is a type-variable:
T extends Comparable<T> declared in class BinaryTree
2 errors

C:\Temp\TryFlexibleBinaryTree>

Someone any idea to fix it?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13 Try It! MikersSU BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 11 April 1st, 2012 05:14 AM
Chapter 13 thepianoguy BOOK: Professional iPhone and iPad Application Development 3 April 6th, 2011 09:42 AM
Chapter 13 rock1233 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 October 6th, 2009 12:18 PM
Chapter 13 bwoll BOOK: Beginning Access 2003 VBA 1 June 7th, 2007 03:57 PM
Chapter 13 ElMorenito BOOK: Beginning ASP 3.0 0 January 14th, 2005 02:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.