Monday, November 7, 2011

Error: E:\Count.java:47: variable length might not have been initialized?

As the error message says, you never initialized the variable "length". At some point after you get the user's input, you should initialize it to the value of phrase.length().

No comments:

Post a Comment