Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 4 General Forum
Date: Thu Oct 11 2001 9:09 am
Author: Lee, Peter <petel@cmu.edu>
Subject: Re: casting

If you look at the Java API documentation (go to External Links and click on the link to the documentation), you will see that Character is a constructor. So, you should do the following:

HuffmanCharFreq hcf=new HuffmanCharFreq(1,Character(token.charAt(i)));

Post response

Go to the previous messageGo to the following message
Current Thread Detail:
casting      Chen, Richard      Thu Oct 11 2001 6:55 am       
Re: casting      Lee, Peter      Thu Oct 11 2001 9:09 am       
Re: casting      Detwiler, Jay T.      Thu Oct 11 2001 5:40 pm       

Back to previous screen