Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Tic Tac Toe Program
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Azzy




PostPosted: Wed Jan 19, 2005 7:34 pm   Post subject: Tic Tac Toe Program

I'm making a tic tac toe program and I need to know two things.

1. How do I open a class from another file in the same window?
2. How do I open a class into a new window from another file?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Jan 20, 2005 9:36 am   Post subject: (No subject)

Java:

import "class_name"
...
ClassType foo = new ClassType(arguments)


that creates a new instance of ClassType Confused If your class is located who knows where, you might have to require an absolute path
rizzix




PostPosted: Thu Jan 20, 2005 3:12 pm   Post subject: (No subject)

what the hell? this is java btw. Confused
wtd




PostPosted: Thu Jan 20, 2005 4:15 pm   Post subject: (No subject)

Methinks the Ruby and Java parts of Tony's brain are crossed. Smile

No import should be required in Java, so long as the class file for your "external" class is in the same directory.
Tony




PostPosted: Thu Jan 20, 2005 5:29 pm   Post subject: (No subject)

haha, thx guys Laughing

yeah, too much Ruby, not enough Java... lack of caffee is starting to show a toll Wink

but as long as I know what I'm doing, right? the rest is just syntax Laughing
wtd




PostPosted: Thu Jan 20, 2005 5:41 pm   Post subject: (No subject)

tony wrote:
haha, thx guys Laughing

yeah, too much Ruby, not enough Java... lack of caffee is starting to show a toll Wink

but as long as I know what I'm doing, right? the rest is just syntax Laughing


Don't worry. You can laugh at me when I start writing Java code with C# syntax.
Tony




PostPosted: Fri Jan 21, 2005 9:19 am   Post subject: (No subject)

wtd wrote:
Don't worry. You can laugh at me when I start writing Java code with C# syntax.

hey, I can see that happening Laughing Martin was showing me some C# code the other week and I though it was Java Confused

this is getting way off topic - you guys want to move this thread into [GP] and rename it into something about confusing syntax? Smile
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: