Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "StringInfo" Watch "StringInfo" New topic
Author

StringInfo

Michael Roslansky
Greenhorn

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
Sheriff

Joined: Oct 13, 2005
Posts: 37936
    
  22
Yes, that illegible block of unformatted code has that text in, but what the question really means is, “Where is the StringInfo.java 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 :-)


http://plainoldjavaobject.blogspot.in
Michael Roslansky
Greenhorn

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.
 
Don't get me started about those stupid light bulbs.
 
subject: StringInfo
 
Similar Threads
Java Assignment Problem
static method data validation in a dialog box app
Exception in thread "main" java.lang.NullPointerException
alphabetize a string
Valadation problem!!!!!!