New to Java

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2003
Posts: 7
Reputation: Bob4life2000 is an unknown quantity at this point 
Solved Threads: 0
Bob4life2000 Bob4life2000 is offline Offline
Newbie Poster

New to Java

 
1
  #1
Oct 9th, 2003
Hello,

I have been working with Java for appox the last six months but I still am very un-sure of myself. I need help figuring out how to import one Java file to the current one running. I am using Jcreator LE as a source editor/compiler and I wish to rum my program in the Console mode. Any help will be appreciated.

Thank you

Bob
Reply With Quote Quick reply to this message  
Join Date: Apr 2003
Posts: 46
Reputation: Dante Shamest is an unknown quantity at this point 
Solved Threads: 0
Dante Shamest's Avatar
Dante Shamest Dante Shamest is offline Offline
Light Poster

Re: New to Java

 
1
  #2
Oct 10th, 2003
If the java class files are in the same directory, you do not need to import them.
Reply With Quote Quick reply to this message  
Join Date: Oct 2003
Posts: 7
Reputation: Bob4life2000 is an unknown quantity at this point 
Solved Threads: 0
Bob4life2000 Bob4life2000 is offline Offline
Newbie Poster

Re: New to Java

 
0
  #3
Oct 11th, 2003
how though, do i have the program call that class???
Reply With Quote Quick reply to this message  
Join Date: Oct 2003
Posts: 7
Reputation: Bob4life2000 is an unknown quantity at this point 
Solved Threads: 0
Bob4life2000 Bob4life2000 is offline Offline
Newbie Poster

Re: New to Java

 
0
  #4
Oct 13th, 2003
I figured it out in case you were wondering. Boy do I love Java, lol!!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2003
Posts: 7
Reputation: Bob4life2000 is an unknown quantity at this point 
Solved Threads: 0
Bob4life2000 Bob4life2000 is offline Offline
Newbie Poster

Re: New to Java

 
0
  #5
Oct 13th, 2003
Ok,

New issue...
I currently have this for source code for the Enemies in my game. class Enemy
{String name=("George");
int Hp;
int Pp;
}

what I want to do is set up a seperate file forenemystorage and then everytime an enemy is created, (I have that working) I want it to go to that file, and randomly (although based on character level) pick an enemy to create, with differen stats names etc etc etc...
Reply With Quote Quick reply to this message  
Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

Re: New to Java

 
0
  #6
Oct 16th, 2003
This might work. Have a different class for each "type" of enemy. Each "type" of enemy can pull random weapons, items, etc. But then make an array of classes, and whenever you want to make a new enemy, pull a random number (with some sort of method) and use that method number as the index number for the array. That way, you get a semingly unique enemy each time.
I hope this made sense
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Join Date: Oct 2003
Posts: 7
Reputation: Bob4life2000 is an unknown quantity at this point 
Solved Threads: 0
Bob4life2000 Bob4life2000 is offline Offline
Newbie Poster

Re: New to Java

 
0
  #7
Oct 16th, 2003
Huh??????

I don't know about the arrays. As i said I have only been working with Java for a relativly short time and I am not sure of how to pull from an array of classes.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC