Results 1 to 5 of 5
- 01-29-2010, 08:37 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 3
- Rep Power
- 0
WordSearchAPI cannot be applied to (java.lang.String)
Receiving an err and can not figure it out:
WordSearchAPI cannot be applied to (java.lang.String)
[javac] if (api.executeKey1(word)) {
[javac] ^
WordSearch.java
WordSearchAPI.javaJava Code:public void doNext() { int x = 0; ICD9WordSearchAPI api = new ICD9WordSearchAPI(); ICD9SearchAPI number_api = new ICD9SearchAPI(); if (api.executeKey1(word)) { while (api.next() && x < 10) { ICD9Word ic = new ICD9Word(api.getRecord()); records.add(number_api.getRecordFromIndex(ic.getIcd9Code())); //records.add(api.getRecord()); x++; } } api.close(); }
Any help would be greatly appreciated.Java Code:public boolean executeKey1(String word, String sequence) { PicX pword = new PicX(25, word); PicX psequence = new PicX(18, sequence); PicX passin = new PicX(43, pword.toStringWithSpaces() + psequence.toStringWithSpaces()); Boolean returnstatus = new Boolean(false); boolean returnVal = false; Object[] objs = { returnstatus, passin}; try { returnVal = runtime.cobcall_boolean("JAPISL211SEARCHKEY1", objs); } catch (COBOLException ex) { System.out.println(ex.toString()); } catch (Exception ex) { System.out.println(ex.toString()); } return returnVal; }
- 01-29-2010, 09:53 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Your code:
Their code:Java Code:api.executeKey1(word)
Do you recognize something here?Java Code:public boolean executeKey1(String word, String sequence) {
kind regards,
Jos
- 01-29-2010, 09:55 PM #3
Member
- Join Date
- Jan 2010
- Posts
- 3
- Rep Power
- 0
Yikes!
:eek: two parameters!
- 01-29-2010, 09:57 PM #4
Member
- Join Date
- Jan 2010
- Posts
- 3
- Rep Power
- 0
"He can't see without his glasses!"
Thank you,
- 01-29-2010, 09:57 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Operator < cannot be applied to java.lang.Object, Object
By Albert in forum Advanced JavaReplies: 2Last Post: 11-26-2010, 02:12 AM -
[SOLVED] operator / cannot to applied to java.lang.string,int
By tpyq in forum NetBeansReplies: 3Last Post: 12-01-2008, 05:40 AM -
Error Message: operator * cannot be applied to java.lang.String, int
By MICHAELABICK in forum Java AppletsReplies: 4Last Post: 11-27-2008, 06:09 AM -
Error: cannot resolve symbol' on Person (java.lang.String, java.lang.String)
By baltimore in forum New To JavaReplies: 2Last Post: 09-18-2008, 07:30 AM -
Error: cannot be applied to (java.lang.String)
By carl in forum New To JavaReplies: 1Last Post: 08-05-2007, 06:33 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks