i 'm beginning for java, so pls help me ??? i doing my exersize ab the java multithread and using synchronized....can any body solve my error ???? pls (send to my email if can >> jeffliew2001@yahoo.com)
this is my coding and this program still hv one error go out ...
InetAddress destination =rcv_client.getInetAddress(); int eport=rcv_client.getPort();
//data.append("\n"); data.append("Received from "+rcv_client.getInetAddress()); data.append("\n with port "+rcv_client.getPort()); data.append("\n Your course : "+ course); data.append("\n Name : "+ name); data.append("\n Matrix Number : "+ matrik); data.append("\n Address : "+ address); data.append("\n Birth date: "+ birth); data.append("\n I/C Number : "+ ic); data.append("\n Your information is succeful store in database "); data.append("\n Information will be give to "+rcv_client.getInetAddress()); data.append("");
DataOutputStream dataOut = new DataOutputStream(rcv_client.getOutputStream()); dataOut.flush(); }
C:\Documents and Settings\liew\Desktop\Multithread test\ThreadServer.java:71: cannot find symbol symbol: method saveLog(java.lang.String) saveLog(file); ^ here is the code if(e.getSource() == save) { String file = data.getText(); saveLog(file); Thread t1=new Thread1(); t1.start(); } }
actually i put all the program is , beside the error come out, i think my program still got another error if the upper one if solve .....can u all tell me why like that as soon as possible ...pls .....
1) Get your head checked coz you can't seem to follow instructions. (Matthias had asked you to reformat your code and you chose to ignore that). 2) Either take up ESL (English as a Second Language) or find a Java forum whose medium of communication is in your venacular (your mother tougue). I'm not trying to be a wise guy, but clearly you have problems expressing yourself in English - I definitely have a problem trying to understand what it is you are trying to say.