Please everyone i need some help here, why do i keep getting this error .
i want the informations submited to the database.

C:\RMI\Client>javac *.java
CustomerInformation.java:121: ';' expected
String insertDetails(cid, name, dob, cms, address, city, state , zcode
, cnum, nod);
^

Recommended Answers

All 3 Replies

What exactly are you trying to do on that line of code? It doesn't appear to be a valid statement at all.

i was trying to implement the insertDatails but it keeps displaying error ( shoowing this ';' expected)

String insertDetails (cid, name, dob, cms, address, city, state , zcode
, cnum, nod);

If that is supposed to be a method, then it is not a valid declaration at all. There is no type information for the parameters and method declarations do not end in a semi-colon (unless it's an interface or abstract method).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.