aspose file tools
The moose likes Beginning Java and the fly likes StringInfo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "StringInfo" Watch "StringInfo" New topic


Michael Roslansky

Joined: Mar 12, 2013
Posts: 10
I'm trying to compile this block of code, but I keep recieving the error message "cannot find symbol - class StringInfo". Help would be appreciated.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Have you defined StringInfo?

return new StringInfo (s).parseDouble (-1);
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 42538
Yes, that illegible block of unformatted code has that text in, but what the question really means is, “Where is the file?”
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Are you sure you are compiling from the right directory ???

If you are compiling from the command prompt make sure to include the StringInfo class location in the javac command

cheers :-)
Michael Roslansky

Joined: Mar 12, 2013
Posts: 10

Sorry about not formatting it. I thought that StringInfo was a default class of Java or something. I ended up finding the StringInfo class.

My problem now is that I'm trying to run the IO class, but everytime I try to enter a string parameter I get the "Error: cannot find symbol- variable "xxx"". I realize I need to define the parameters, but I have no idea how to go about that. This is suppose to be a complete program, so I'm pretty sure I'm doing something wrong if I can't run it. Sorry for the basic question.
jQuery in Action, 2nd edition
subject: StringInfo