int n=stmt.executeUpdate(\"insert into cars(carnum)values(\'\"+f.getText()+\"\');\");

대충 내가 하는 프로그램의 쿼리문인데..

f라는 텍스트필드값을 쿼리문에 이용하고 싶어..

(\'\"+f.getText()+\"\');\");  <<< 이게 맞는 문장인지 봐줘.ㅠㅠ