Vince Cheung

Greenhorn
+ Follow
since Dec 06, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vince Cheung

For my opinion, if u lose or write some wrong words, it's nothing, don't worry. but if u don't do some "must" request, u must fail in the end.
Why does the answer is "false"? How do I change it to "true"?
19 years ago
I took it for about 3 months, haha, it's too slow. I think you don't worry about the time. Try you best in the assignment.
good luck to you
19 years ago
i have passed the SCJD. the score is not good but i am still very happy. thank you for every people which helped me. i like JavaRanch and like every people in it.

Test: Sun Certified Developer for the Java 2 Platform (310-027)
Date Taken: 2005-02-23 06:32:57.263
Registration Number: l7esyd511c
Site: cnbu
Grade: P
Score: 361
Comment: This report shows the total number of points awarded for each section. The maximum number of points is 400, to pass you need a score of 320. Section Summary: Section Max Actual Points Points

General Con: 100 85
Documentation: 70 63
OOD: 30 30
GUI: 40 33
Locking: 80 80
Data Store: 40 40
Network Server: 40 30
Total: 400 361
19 years ago
Somebody asked me a question "What's your JTable's model?".
I can't understand and how should I answer to him?
I set up a MyTableModel extends an AbstractTableModel, my JTable used it.

MyTableModel myTableModel = new MyTableModel();
JTable searchResult = new JTable(myTableModel);


How should I answer his question?
Please give me help, thanks
19 years ago

You must provide basic user documentation. This should be sufficient to allow a user who is familiar with the broad purpose of the project to use the application. This documentation must be in one of these three formats:
�HTML
�Plain text (not a wordprocessor format)
�Within the application as a help system.


Is this doccumentation "choices.txt", "userguide.txt" or another?
thanks

Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.


I have a doubt which is "a file called suncertify.properties". What's the meaning of "suncertify"? Is "suncertify" a directory or others?
But Mike says

Current working directory is just where your runme.jar is.


I can't understand.

All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.


1. My first question is can I get configuration from properties.txt and don't let client to config it via GUI? I use sockets so I must use "serverPort" which is the port number of server to create socket at client side. Server side must config it into properties.txt. If I config it via client GUI, it will has a big chance to be different from configging by server.

2. My second question is which directory is the current working directory?
my tree is:
ScjdSubmission__db-1x3.db
________________vertion.txt
________________doc__________choices.txt
_____________________________userguide.txt
_____________________________instructions.html
_____________________________javadoc____________.....
________________code_________suncertify_________db
________________________________________________client
________________________________________________server
________________________________________________common

Thanks for giving me help

[ December 15, 2004: Message edited by: Vince Cheung ]
[ December 15, 2004: Message edited by: Vince Cheung ]
Should I put all classes(server and client) in a jar file or in two jar files(one is server and one is client)??

I have tried to put all classes in a jar file. But I can't start by two commond down.
java -jar suncertify.jar server (Starting Server)
java -jar suncertify.jar client (Starting Client)

I can only start one of two classes(Server, Client)

Manifest-Version: 1.0
Created-By: 1.4.2 (Sun Microsystems Inc.)
Main-Class: suncertify.server.ServerUI (or suncertify client.HotelMain)



How can I do, please give me some help, thanks
I still can't do it, Can someone say how to do detailedly.
thank you

How can i do to start program by commond line?
java -jar suncertify.jar server (Starting Server)
java -jar suncertify.jar client (Starting Client)

What's merit and demerit of Socket Connection?
thanks
thank you, Barend. i will try
hi, Ignacio
i think mine is the same to you.


...the new system must reimplement the database code from scratch without altering the data file format.


i think i don't alter the data file format, only add a flag. but now i don't need use this flag, Andrew told me that when useing Map, i can omit this.

Perhaps i understood wrongly before.
How can i do to start program by commond line?
java -jar suncertify.jar server (Starting Server)
java -jar suncertify.jar client (Starting Client)

thanks
Thank you, Andrew.
You give me a lot of help not only about java but also about javaranch. i will try my best to do everything well. )