|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Aug 2005
Città: Erba
Messaggi: 146
|
[Java]Illegal Start Of Type
Codice:
package core;
import java.io.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
public class rOperation{
public final String dispPath = null;// "C://bRub/disp/bmagdb.db";
private String dbPath = null;
public void setdbPath(String newPath){
dbPath = newPath;}
File f = new File(dispPath);
try {
f.createNewFile();
}
catch (IOException ex) {
ex.printStackTrace();
}
}
Linea 14: Illegal start of type Linea 15: ";" expected Con questo codice ottengo questi errori eppure il cod. mi pare giusto; come mai?Sto utilizzando netbeans 6.5
__________________
-BoB~ |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Mar 2008
Messaggi: 401
|
Codice:
public void setdbPath(String newPath){
dbPath = newPath;}
File f = new File(dispPath);
try {
f.createNewFile();
}
catch (IOException ex) {
ex.printStackTrace();
}
|
|
|
|
|
|
#3 |
|
Member
Iscritto dal: Aug 2005
Città: Erba
Messaggi: 146
|
?
__________________
-BoB~ |
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Oct 2006
Città: milano
Messaggi: 1439
|
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:58.




















