The Artima Developer Community
Sponsored Link

Java Answers Forum
What is this

1 reply on 1 page. Most recent reply: Jun 15, 2005 10:50 PM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Clinton

Posts: 1
Nickname: dutchman
Registered: Jun, 2005

What is this Posted: Jun 15, 2005 5:30 PM
Reply to this message Reply
Advertisement
Hi all,
I am new to this, so I would like some friendly help.
I need a discription of these ASAP please.
what is import javax.swing.*;
what is import java.awt.event.*;
what is import javax.swing.border.*;
what is import java.util.Random;
what is import java.util.*;

Thanks
Dutchman


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: What is this Posted: Jun 15, 2005 10:50 PM
Reply to this message Reply
This is practically a search list for classes.

Instead of writing everytime java.util.Vector, you can just write Vector.
The compiler then uses this list to find Vector

1. the compiler looks for javax.swing.Vector --- does not exist
2. the compiler looks for java.awt.event.Vector --- does not exist
3. the compiler looks for javax.swing.border.Vector --- does not exist
4. java.util.Random --- the compiler won't look at it, because instead of including every class in java.util only the class Random is "imported"
5. the compiler looks for java.util.Vector --- found! For compilation the class java.util.Vector will be used everytime you write just Vector

Flat View: This topic has 1 reply on 1 page
Topic: about socket programming Previous Topic   Next Topic Topic: Remote Paired Programming?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use