File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Import create a directory "planets"

 
René van der ven
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

package com.scjaexam.tutorial;

- This statements creates the directories: com\scjaexam\tutorial

However a directory planets is created as well

import com.scjaexam.tutorial.planets.*;

-Is it true that the line above creates the directory planets?

Thanks in advance for your reply.

All the code
===================================
package com.scjaexam.tutorial;
import com.scjaexam.tutorial.planets.*;

public class GreetingsUniverse {

public static void main(String[] args) {
System.out.println("Greetings, Universe!");

Earth e = new Earth();
Mars m = new Mars();
Venus v = new Venus();
}
}


 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the simple import won't create a directory for you, however, some GUI tools will.

The import name is simply a reference to a folder structure. So, when a class is in a given 'package', that class must be in a folder structure that is the same as the package. You'd have to create the folder structure manually.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic