Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Karthik Balasubramanian

Ranch Hand
+ Follow
since Dec 13, 2002
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 Karthik Balasubramanian

Thanks to you all guys. As you guys suggested, I converted them into string then copied into a atring array.
Thanks for your help.
Karthik
Hi,
I am working on the Bodgitt and Scarper assignment. I was trying to arite this function:
public String[] read(int recNo) throws RecordNotFoundException;
I created a byte array, where the recors values are read into. But when I look at the method definition its return type is array of string. I dont know how to convert byte[] into string[]...sorry for asking this basic question.please help me out guys...
Thanks
Thanks Bill and Jay. It was very helpful.

Karthik
Hi,
I just started working on Bodgitt & Scarper assignment. I wrote a method to read the DB file. It is working fine. But when I read the requirements of the assignment, it says:
"Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface:
package suncertify.db;
public interface DB
{
// Reads a record from the file. Returns an array where each
// element is a record value.
public String[] read(int recNo) throws RecordNotFoundException;"
From above, I understood that "public String[] read(int recNo)" method should return the particular record based on the parameter we pass. That is, if we pass 3, it should return just the 3rd record..Is my understanding correct?
If my understanding is correct, can you guys suggest me how to get this done? Because, the db records does not have any index...I dont know how to do this...please help me out on this.
Thanks
Karthik
Hi Guys,
I see there are lot of discussions on "Max Book"...what is this book? who is the author? I went to SCJD FAQs page and I dont find any books on that author's name...by looking at the level of discussion, it seems like a good book? Is it worth buying..I am struggling on where to start my project...
please give me the book info, so that I can buy then?
Please reply me...
Karthik
Thanks Guys. Today I tried using Random Access File methods to read from the data base. The magic cookie, rec length, no of fields came out ok. And for the no of fields, name length was read, but when I tried to read the field name for the name length...It is not working. I am sure I am doing something wrong.
look at my code for this part:
char name[] = new char[nameLength],temp;
for (int count=0;count<name.length;count++){
temp=raf.readChar();
name[count]=temp;
It is returning some strange characters...Please suggest me what is the best way to read the field name and other fields. That would be of great help.
Thanks
Karthik
Hi all,
I am working on my Contractors assignment. Just started with trying to read from DB File.
I saw this in our forum
*********************************
The Data class reads from the file using the RandomAccessFile class. All you have to do is use this class to interrogate the database.
***********************************

I think RandomAccessFile is the easier way to read from the DB...Are thery any document, where I can learn more about this and start using it...Please help me on this.
Thanks
Karthik
Thank you very much Guys...As you suggested I gave a search for DB creation, got lot of useful info. Thanks a lot.
Karthik
Hi All,
As I went through this page, I assume you all are way ahead in your project. I am just the beginner. I just got my assignment few days ago and thought of starting off with GUI Design. I hope every one has started from here. If not, please let me know guys and guide me.
One more thing I wanted t kno is, The assignment came with Data File. I wanted to see how the Data File looks like..But I dont know how to open that, I mean...in which aplication...Please help me on that
Thanks
Karthik
SCJP, SCWCD
Thanks Andrew for your reply.
I have a proble in downloading the assignment. It's been more than 24 hrs since I have bought the exam. When I go to the link and try to download "Sun Certified Java Developer Assignment for Java 2", it says I do not have the rights. I emailed to Sun asking for the rights. Why is it? This happened to you all or to me only. Is there any phone no where I can reach those guys and ask directly...Please let me know.. Thanks
Karthik
Hi Guys,
I have just purchased my SCJD Exam...Yet to download the assignment...waiting for the access...
Meanwhile, I thought I can ask you guys of "where to start" and "waht to start with", once I download my assignment...
Give me your suggestions on most adopted steps in sequence...as I have no idea about? I have Kathy sierra's book, even that didn't say anything about what should be the first step, second and so on...
Please give me your suggestions, or share your experience with me...that will be very helpful to me...
Thanks
Karthik
Thanks Badari...Yes I bought the Java 2 Assignment...Still I was not given access to download the assignment...so, I wait for Sun's confirmation for granting access...
Thanks
Karthik
Hi,
I have just purchased my SCJD Assignment. They sent me an email saying, they are setting up the permission for me to download the assignment at http://www.certmanager.net/sun/, and also said they will send me an e-mail message to confirm this is complete within 24 business hours.
However, out of eagerness, I went into this website and clicked "Test History". It gave three options in there...
1. Sun Certified Developer Assignment for Java 1.1
2. Sun Certified Developer Assignment for Java 2
3. Sun Certified Enterprise Architect for Java 2 Platform
Ofcourse, 3rd one is not for me. Which one I should choose from the first two. I hope Java 2 is the latest...But still I want to confirm with you guys...Please give me a reply
Or, should I wait until I receive the confirmation email from them?
Please give me your suggestions as soon as possible...I want to download as soon as I can....
Thanks
Karthik
SCJP, SCWCD
Thanks Andrew! I didn't know that you will be assigned an assignment by Sun. Then its ok. Whatever comes lets do it.
Thanks a lot!
Karthik
SCJP, SCWCD
Hi Guys,
I have completed my SCJP and SCWCD. Now I want to take my SCJD. I know it is very tough...I am working in C Programming in my job. Though, I am comfortable with JAVA, I do not have any real time experience.
How difficult it is?
I saw in the FAQ, that it has three assigments. I want to take an easier assignment. Form your experience which one is easier? How did you guys choose yours? Just random...or how...Please advise me on this as I have no clue about those?
Thanks
Karthik