urjent code needed

urjent code needed

Coding:

- We have Document domain/entity object with properties of Long id, String fileName, String filePath, int docId.
Please write a java code that will:
1. Implements hashCode() and equals() for this object
2. Write method to search that Document object in List.

Doc(1, test.pdf, "c:\temp\test.pdf", 1234);
Doc(1, test.pdf, "c:\temp\test.pdf", 2222);
Doc(1, test.pdf, "c:\temp\test.pdf", 3333);

Document findDocument(int docId){
// your code is here
}


Document findDocument(Document doc){

//your code is here

}
View Answers

May 13, 2010 at 11:20 AM

Hi Friend,

Please clarify your problem.

Thanks









Related Tutorials/Questions & Answers:
urjent code needed - Java Interview Questions
urjent code needed  Coding: - We have Document domain/entity.... Please write a java code that will: 1. Implements hashCode() and equals...){ // your code is here } Document findDocument(Document doc
Needed java code
Needed java code  1.Java code for the time used to display your name, one character at a time, for 200,000 times . 2.Java code for the time used to display your name, one character at a time in reverse order, for 200,000 times
Advertisements
Code Help Needed
Code Help Needed  I am trying to help a buddy of mine with this program and I can't seem to figure it out. I am still working on it but any help would be appreciated. The program is suppose to write to and read from a file
MySQL take backup of a table - example code needed
MySQL take backup of a table - example code needed  How to take backup of a table in MySQL? I have a database which contains many tables. What is the command to take the backup of one table with data from database? Thanks
Needed jsp codes
Needed jsp codes   jsp code for employee payroll.producing a payslip of every employees monthly calculating the gross pay of a particular employee considering the income tax and producing a report which can be printed out
Packages needed for JDBC in Linux
Packages needed for JDBC in Linux  Can anyone tell me the packages needed to run a program with JDBC in Red Hat 5
Help needed in JSP
Help needed in JSP  Hi .. I want to Update the multiple values of database using checkboxes and want to set the session for selected checkboxes..? please answer if any one knows as soon as possible
degree needed for data scientist
degree needed for data scientist  Hi, I am beginner in Data Science... needed for data scientist Try to provide me good examples or tutorials links so that I can learn the topic "degree needed for data scientist"
degree needed to be a data scientist
degree needed to be a data scientist  Hi, I am beginner in Data...: degree needed to be a data scientist Try to provide me good examples or tutorials links so that I can learn the topic "degree needed to be a data
What degree is needed for AI?
What degree is needed for AI?  Hi, I am beginner in Data Science... degree is needed for AI? Try to provide me good examples or tutorials links so that I can learn the topic "What degree is needed for AI?". Also tell me
help Needed with requirements
help Needed with requirements  Following are my requirements : * Maintain a student database *Based on a student's test results ,reports should be generated so as to project details such as a students weakness in a particular
A program solution needed
A program solution needed   I need a solve for this problem please ! a program that displays grade statistics. The program should read any number of grades (up to 100) and ends when the user enters -1, the program should reject
help needed for a program - Java Beginners
help needed for a program   i am having trouble understanding on what to code, so can some 1 help me out here. thanks in advance. Part I Write, compile and execute a Java program that displays the following prompts
Java help needed
as needed by the number of characters of the chosen word. 2. Add 4 buttons or menu.... 3. In the correct event handler, write program code to check if the entered
data scientist degree needed
data scientist degree needed  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: data scientist degree needed Try to provide me good examples or tutorials links so that I
urgent help needed!!!!
comboboxes for storing in database  how to access values selected from connected comboboxes for storing in database...i'm attatching a code i got...(Exception e){ System.out.println(e); } %> For the above code, we have
urgent help needed!!!!
attatching a code i got from net for connected comboboxes...from this how could i...; For the above code, we have created two database tables: CREATE TABLE `country
What degree is needed for artificial intelligence?
What degree is needed for artificial intelligence?  Hi, I am... to learn: What degree is needed for artificial intelligence? Try to provide... degree is needed for artificial intelligence?". Also tell me which
What skills are needed for a data scientist?
What skills are needed for a data scientist?  Hi, I am beginner... to learn: What skills are needed for a data scientist? Try to provide me good... are needed for a data scientist?". Also tell me which is the good training courses
Needed modifications to ApplicationContext if extending this application
Needed modifications to ApplicationContext if extending this application   I followed the Developing Struts Hibernate and Spring Based Login/Registration Application tutorial and that is very good. Now I need to modify
Needed modifications to ApplicationContext if extending this application
Needed modifications to ApplicationContext if extending this application   I followed the Developing Struts Hibernate and Spring Based Login/Registration Application tutorial and that is very good. Now I need to modify
PHP help needed - Development process
PHP help needed  This is my code that I am using for search engine, can any body answer how to cheange the code if I want limited and per page result display??? code Career Search result Yami says <?php
further clarification needed - Java Beginners
further clarification needed  Dear Experts, I refer to the last answer you have written to me. The good news is that there's no error already but the code is still not working for me. As Tsuch, I hope to clarify about
servlet redirect problem help needed
out and also execute the last portion of the code...and giving error i thought... of the code will not be executed if any any one knows plz tell me what happens
servlet redirect problem help needed
out and also execute the last portion of the code...and giving error i thought... of the code will not be executed if any any one knows plz tell me what happens
what programs are needed in java programming? - Java Beginners
what programs are needed in java programming?  What programs are needed in java programming?   Hi friend, For solving the problem visit to : http://www.roseindia.net/java/] Thanks  Hi friend
Code
Code  code for connecting c lang to database
code
code    how to write this in java
code
code  code for android sample program
code for this is
code for this is  a b c d c b a a b c c b a a b b a a a code
code
code  please provide code for custom tags.by using currdate tag we need to get current date?please give me code
code
code   hi I need help in creating a java code that reminds user on a particular date about their festival. i have no clue of how to do it.. am looking forward to seek help from you
code
the correct code for a program.The output of the program is listed below...: {Block 5} ADDRESS-3: {San Juan} POST CODE:{6745} ENTER CODE (XX TO stop) CODE:{FF1} QUANTITY:{2} CODE:{TR4} QUANTITY:{1} CODE:XX INVOICE FOR YOUR ORDER Harry
code
code to create the RMI client on the local machine: import java.rmi.*; public... : "+e); } } } However, when the preceding code is executed it results... the correct code
code
code  i have four textboxes.whenever i click on up,down,left or down arrows then the cursor move to another textbox based on the key pressed.i want code for this in javascript
code
line of code to print the amount he should be paid as allowance
code
code  write a program to encrypt and decrypt the cipher text "adfgvx"   Hi Friend, Try the following code:ADS_TO_REPLACE_1 import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; import
What level of statistics is needed for data science?
What level of statistics is needed for data science?  Hi, I am... for the tutorials to learn: What level of statistics is needed for data science? Try...;What level of statistics is needed for data science?". Also tell me which
Help needed for J2me and PHP - Development process
Help needed for J2me and PHP  Hello Sir I am a degree student. I have a small CRM application using J2me and PHP. I want to do cryptography using bouncy castle and decrypt the same in php with mcrypt extension. I did try
urgent help needed in JDBC AND JAVA GUI - JDBC
urgent help needed in JDBC AND JAVA GUI  my application allows... want any one to help me convert from scanner to java GUI for this code, and connect it to mysql database thanks the code is //1st class for creating
Help needed for Form Validation please help!
Help needed for Form Validation please help!  I have created a page... clicking the submit button for sign up it also goes through the jsp code and returns incorrect Username/password combination. So how can I make the jsp code confined
Help needed on java standalone app and default browser interaction.
Help needed on java standalone app and default browser interaction.  Hi Developers and tutors, Is anyone able to guide on how am i able to extract the url thats displaying on my default browser to my java standalone application
Further advice needed on my last question - JSP-Servlet
Further advice needed on my last question  Dear Experts, I refer... code. You haven't close scriptlet tag and braces in few places therefore error occurs.Here is your code: Enter ID: Parents NRIC
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP   The Task Write a class whose objects will represent students. The class should have three fields for representing a studentâ??s
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP   Write a class whose objects will represent students.The class should have three fields for representing a studentââ?¬â?¢s name, this studentââ?¬â?¢s
jsf center tag needed - Java Server Faces Questions
, Code to solve the Problem : Thanks
J2ME code hint - MobileApplications
J2ME code hint  I am required to make a mobile application for encryption and decryption of sms messages using RSA. The last day for submission... no... It should b in J2ME with Netbeans (if needed). Thnk u Sneha
Sample JMS Project is NEEDED - JMS
help needed - Java Interview Questions
look up values help needed

Ads