Computer Science Canada

Tic Tac Toe Program

Author:  Azzy [ 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?

Author:  Tony [ Thu Jan 20, 2005 9:36 am ]
Post 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

Author:  rizzix [ Thu Jan 20, 2005 3:12 pm ]
Post subject: 

what the hell? this is java btw. Confused

Author:  wtd [ Thu Jan 20, 2005 4:15 pm ]
Post 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.

Author:  Tony [ Thu Jan 20, 2005 5:29 pm ]
Post 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

Author:  wtd [ Thu Jan 20, 2005 5:41 pm ]
Post 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.

Author:  Tony [ Fri Jan 21, 2005 9:19 am ]
Post 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


: