Hi! Dear Friends...
I have got a problem
I can't import java.text library
http://img30.imageshack.us/img30/4135/sorun1v.jpg
Please help me...
Printable View
Hi! Dear Friends...
I have got a problem
I can't import java.text library
http://img30.imageshack.us/img30/4135/sorun1v.jpg
Please help me...
2 problems:
Java is case sensitive, and java.text is a package, not a class. So, you need to do something like this:
Code :import java.text.*; // imports everything in the java.text package
You' re right but ı saw this example at the book and I can' t runs this program...
http://img84.imageshack.us/img84/3440/sorun3.jpg
i dont' have any think for this problem :(:(:(
Code :import java.text.*;
you forgot to add the askterisk.......
placing that asterisk sign means that you are calling all the classes in a package..
is there any 'Text Class' in java.text package?
we are using the same IDE . you can check if there is such a Class in a package.
i've check the text package there's no Text class inside of it
I am using NetBeans IDE
How can I ?
There are many ways. This kind of a problem isn't IDE dependent, though. Java.text is a standard java package, and Java.text.Text is not a standard java class.
If you don't know if your class has access to another class (probably because it doesn't exist) try:
where package is the package the class is in, and className is the name of the class. If it works, everything's good. If it doesn't and you get some error(s), then it either doesn't exist your your program doesn't have access to that class.Code :import package.className;
I am studying java from e-book. This e-book' s writer use "import java.Text;" you can see at first example. But i don't understand. Why can' t I ?
typo on their part? That's the only thing I can think of unless they have a custom build of Java (could happen, but not likely), in which case it's hopeless unless you can get the same build :P