Computer Science Canada
Programming C, C++, Java, PHP, Ruby, Turing, VB
Username:
Password:
Register
Wiki
Blog
Search
Turing
Chat Room
Members
Tic Tac Toe Program
Index
->
Programming, Java
->
Java Help
Author
Message
Azzy
Posted:
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
Tony
Posted:
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
If your class is located who knows where, you might have to require an absolute path
rizzix
Posted:
Thu Jan 20, 2005 3:12 pm
Post subject: (No subject)
what the hell? this is java btw.
wtd
Posted:
Thu Jan 20, 2005 4:15 pm
Post subject: (No subject)
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
Posted:
Thu Jan 20, 2005 5:29 pm
Post subject: (No subject)
haha, thx guys
yeah, too much Ruby, not enough Java... lack of caffee is starting to show a toll
but as long as I know what I'm doing, right? the rest is just syntax
wtd
Posted:
Thu Jan 20, 2005 5:41 pm
Post subject: (No subject)
tony wrote:
haha, thx guys
yeah, too much Ruby, not enough Java... lack of caffee is starting to show a toll
but as long as I know what I'm doing, right? the rest is just syntax
Don't worry. You can laugh at me when I start writing Java code with C# syntax.
Tony
Posted:
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
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?
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Index
->
Programming, Java
->
Java Help
Page
1
of
1
[ 7 Posts ]
Jump to:
Select a forum
CompSci.ca
------------
- Network News
- General Discussion
General Forums
-----------------
- Hello World
- Featured Poll
- Contests
Contest Forums
-----------------
- DWITE
- [FP] Contest 2006/2008
- [FP] 2005/2006 Archive
- [FP] 2004/2005 Archive
- Off Topic
Lounges
---------
- User Lounge
- VIP Lounge
Programming
--------------
- General Programming
General Programming Forums
--------------------------------
- Functional Programming
- Logical Programming
- C
C
--
- C Help
- C Tutorials
- C Submissions
- C++
C++
----
- C++ Help
- C++ Tutorials
- C++ Submissions
- Java
Java
-----
- Java Help
- Java Tutorials
- Java Submissions
- Ruby
Ruby
-----
- Ruby Help
- Ruby Tutorials
- Ruby Submissions
- Turing
Turing
--------
- Turing Help
- Turing Tutorials
- Turing Submissions
- PHP
PHP
----
- PHP Help
- PHP Tutorials
- PHP Submissions
- Python
Python
--------
- Python Help
- Python Tutorials
- Python Submissions
- Visual Basic and Other Basics
VB
---
- Visual Basic Help
- Visual Basic Tutorials
- Visual Basic Submissions
Education
-----------
- Student Life
Graphics and Design
-----------------------
- Web Design
Web Design Forums
---------------------
- (X)HTML Help
- (X)HTML Tutorials
- Flash MX Help
- Flash MX Tutorials
- Graphics
Graphics Forums
------------------
- Photoshop Tutorials
- The Showroom
- 2D Graphics
- 3D Graphics
Teams
------
- dTeam Public
Style:
Appalachia
blueSilver
eMJay
subAppalachia
subBlue
subCanvas
subEmjay
subGrey
subSilver
subVereor
Search:
You can syndicate this boards posts using the file
backend.php
or view the
topic map using sitemap.php.
Terms of Use
|
Privacy Policy