任何想法爲什麼NetBeans 7標記中的此代碼與Deletion(刪除是客戶端軟件包中的類)一致爲錯誤?NetBeans中的編譯錯誤
package client;
/**
*
* @author Arth
*/
public class Client_Main
{
final String ORIGINAL_SEQUENCE = "AAGCTGT";
// Sample sequences demonstrating each type of DNA error
final String MUTATION_SEQUENCE = "AATCTGT";
final String TRANSPOSITION_SEQUENCE = "AAGTCGT";
final String INSERTION_SEQUENCE = "AAGACTG";
final String DELETION_SEQUENCE = "AGCTGTA";
final String SEQUENCE_A = "AAAAACCCCCGGGGGTTTTT";
final String SEQUENCE_B = "AAAACACCCCGGGGGTTTTT";
public void check()
{
Deletion d("1","2");
}
}
線:
Deletion d("1","2");
產生錯誤:
';' is expected
也許可以解釋一下嗎? –
謝謝,忘記了這不是C++ – smallB