
-----------------------------------
Azzy
Wed Jan 19, 2005 7:34 pm

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?

-----------------------------------
Tony
Thu Jan 20, 2005 9:36 am


-----------------------------------

import "class_name"
...
ClassType foo = new ClassType(arguments)


that creates a new instance of ClassType :? If your class is located who knows where, you might have to require an absolute path

-----------------------------------
rizzix
Thu Jan 20, 2005 3:12 pm


-----------------------------------
what the hell? this is java btw.  :?

-----------------------------------
wtd
Thu Jan 20, 2005 4:15 pm


-----------------------------------
Methinks the Ruby and Java parts of Tony's brain are crossed.  :)

No import should be required in Java, so long as the class file for your "external" class is in the same directory.

-----------------------------------
Tony
Thu Jan 20, 2005 5:29 pm


-----------------------------------
haha, thx guys :lol: 

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 :lol:

-----------------------------------
wtd
Thu Jan 20, 2005 5:41 pm


-----------------------------------
haha, thx guys :lol: 

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 :lol:

Don't worry.  You can laugh at me when I start writing Java code with C# syntax.

-----------------------------------
Tony
Fri Jan 21, 2005 9:19 am


-----------------------------------
Don't worry.  You can laugh at me when I start writing Java code with C# syntax.
hey, I can see that happening :lol: Martin was showing me some C# code the other week and I though it was Java :?

this is getting way off topic - you guys want to move this thread into [GP] and rename it into something about confusing syntax? :)
