Ramesh Kadur

Greenhorn
+ Follow
since Nov 13, 2000
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 Ramesh Kadur

Balaji Sambandam and Matt Delacey -
Thank you for your interpretation and it is very helpful to me.
Sanjeev Kumar-
Your design looks logical to me. I am also planning to use RMI.
Thanks again everybody.
Ramesh Kadur
Hi,
In the instruction, under Overall Architecture, it says that the application has 3 key parts:
1. The server-side database with network server functionality
2. The client-side graphical user interface
3. A client-side database that handles the networking on behalf of the user interface.
The second part is clear. Can any body (Balaji Sambandam ??) explain what 1 and 3 are and difference between them? Is the instruction telling me that I have to have two databases - one on the client side and another on the server side? If we have two databases then they should be identical and the application should assure the synchronization of the databases. Having two databases does not make sense to me.
Is this a 3 tier application? I can only see two tiers - Client side GUI and Data Server. If the database, flat file in our case, is itself considered as another layer then it becomes three tier.
Your explanations are appreciated.

Thank you.
Ramesh Kadur
Sanjeev and Mike,
I feel that we might need to discuss on our assingment as how to proceed with the design and implementation since all of us have similar assignment. I am giving my e-mail address below and appreciate if you can give your address also, if you are interested in exchanging the ideas.
Thanks.
Ramesh Kadur
rameshkadur@hotmail.com
Mike,
I don't know how the Data Conversion Tool is going to provide extensibility. My feeling is, if the data base file is in ASCII format then it needs to be converted to binary file, which necessitates the Data Conversion Tool. Binary files are not easy to edit without knowing its structure and thus provide some kind of security to the database. ASCII files do not provide the same security since it can be easily edited using any text editor. In our case, the file is already is in the binary format and the Data class provides the methods to create/read the tables and find, modify, add, delete the records to the table in binary format. Therefore, I feel that Data Conversion Tool is irrelevant to our assignment.
Please correct me if I am wrong.
Thanks.
Ramesh
Yes. There is no mention of Data Conversion tool in the instructions I downloaded. My download consists of following items:
1. Instructions in HTML format
2. Source code which is the starting point for the assignment
3. A binary database file.
What I must do as per the instructions:
1. A GUI for viewing flight information and booking a flight.
2. Extenstions to the database code to support a more flexible search and record locking
3. Network server functionality for the database system. I can use either RMI or sockets
4. Program must also be able work in a non-networked mode.

I can not find anything about the Data Conversion Tool that everybody is talking about.
I guess my assignment is different from others.
Ramesh
Hi,
I downloaded the FBN assignment on 3rd Jan. 2001. The instruction says I have a binary database file. Data class is using RandomAccessFile to read and write the information to this file. I have seen few questions in this forum about the data conversion tool that they are writing. I don't know where this conversion tool fit in the assignement. The instruction does not mention anything about it either. Could anybody please tell me what is this conversion tool everybody is talking about?
Thanks.

Ramesh
Amit,
See whether you get any class file when you compile an empty file. You don't get any. That means there is nothing to compile. To answer your second part, in Java, everything has to be in a class. You can not have free standing methods or variables as in C. If you have some variable or method not inside any class, then compiler issues this error message:
Class or interface declaration expected
Ramesh.
Hi,
All of the comparisons result is false value. My question was not that. I guess, I was not clear in my question. If you look closely in the print statement, you will see that a number and a bracket is also included. I expect the number with a bracket also to be printed out. Like:

1) false
2) false
3) false
4) false
To my surprise the numbers and brackets don't print. It just prints like this:
false
false
false
false
I wanted to know the reason behind skipping the number and a bracket.
Thanks.
Billesh, your questions are great.
I am rethrowing Billesh's questions with a modification:
public class Test{
public static void main(String arg[]) {
String a = "JAVARANCH";
String b = new String(a);
StringBuffer sb = new StringBuffer("JAVARANCH");
// inserted lines here
System.out.println("1) " + b.toString()==a);
System.out.println("2) " + sb.toString()==b.toString());
System.out.println("3) " + b==a);
System.out.println("4) " + b.toString()==b);
}
}
What is the output and can someone explain why?

Thanks.