Thread: Compiler Error
View Single Post
  #3 (permalink)  
Old 12-13-2007, 02:39 PM
daprodigy daprodigy is offline
Member
 
Join Date: Dec 2007
Location: Roggwil, Switzerland
Posts: 8
daprodigy is on a distinguished road
like you wrote ... the problem is line 76. the declaration:

public build2dArray(String[] otherArray)

this declaration misses the return-object-type. you have to write:

public String build2dArray(String[] otherArray)

... then you have to edit the return values:

line 99: return (String (city)); ... String (city) is interpreted as function call ... you can write: return city;

same issue at line 116

line 124: write return "";

... then you can compile the code.

greets
daprodigy
Reply With Quote