hi,
lets say i have 2 classes 1 is to process the data and another 1 is to connect to mysql.
P.java to process the data and Connection.java to connect to mysql.i use JDBC to connect and pass the data through constructor P way=new P(String side).after process the data, i want to pass the output result to Connection.java and the output is in String too.how can i do that?
lets say i want to count the area of triangle.i get the data from database and after count the area in P.java, i want to pass to Connect.java so that i can send it to database.im sorry if my prob annoys you....