This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes what package is this from? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what package is this from?" Watch "what package is this from?" New topic
Author

what package is this from?

John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 189
I have the following in my program


This gets me a printable date time string.

However, I am wondering about the class

DateTimeString

I don't see it in Java JDK 1.4.2 documentation. Where is this class documented?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38064
    
  22
It's not in JDK 1.5 either. It must be somewhere in your app.
John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 189
I don't have this class in my application's package. I don't see it in joda.time and just to make sure, I commented out the import for joda.time.*; and recompiled and I didn't get a compilation error. This is really mystifying.
my imports:

import com.ibm.mq.*;
import com.ibm.mq.pcf.*;
import javax.swing.*;
import java.awt.*;
import javax.mail.*;
import javax.mail.internet.*;
import org.joda.time.*;
import java.util.*;
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38064
    
  22
Can't help any more, I am afraid. You will have to ask around at work. Or try a search engine, eg Google.
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
You could always install an IDE like Eclipse. Makes these little issues SO much easier to deal with.
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Yet another example of why importing using * just shouldn't be done.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what package is this from?
 
Similar Threads
How Do I Pass a String Array to the Constructor of Another Class?
String - is it a valid identifier? (simple question)
How String Can Be A Reference Variable...
java.lang.ClassCastException?
please help in rectifying error :Symbol not found