This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes i need some other logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "i need some other logic" Watch "i need some other logic" New topic
Author

i need some other logic

tulasi reddy
Greenhorn

Joined: Oct 08, 2008
Posts: 1
My Requirement is

public String MethodName(String query, List listValues)
{
//Here your code

}

There should be a test method i.e main in the class you are going to create
Tasks to be done:
1.Query =" VouchNumber='~VouchNum~' AND BusinessUnit='~BU~' AND InvoiceNumber='~IN~' "
HashMap will contain key value pair all strings VouchNum=00005, BU=0231,IN=3443

Output should be :

" VouchNumber='00005' AND BusinessUnit='0231' AND InvoiceNumber='3443' "

I have done like this

can you just check the code.let me know what are the changes to be done.
or can i use some other logic.

with regards,
Tulasi.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3504
    
  14
The Search logic might help. This is at least the third post asking for help on this question.


Joanne
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19684
    
  20

Which means that either someone is using multiple accounts, or this is a homework assignment.

Anyway, this thread already has been handling this topic.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38517
    
  23
Several people on the same course. The person who has got the farthest has been given an additional related assignment which seems even more difficult.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i need some other logic