gpt4 book ai didi

java - "Class header expected instead"错误

转载 作者:行者123 更新时间:2023-12-02 06:32:48 25 4
gpt4 key购买 nike

为什么我会收到此错误?

我一直在努力解决这个问题。

package Controller;

import View.ViewGegevens; //Error
import Model.Persoon;
{
private String Voornaam;
private String Tussenvoegsels;
private String Achternaam;
private String Woonplaats;
private int Telefoonnummer;
private String Aardappel;}
public class InvullenData implements ActionListener {

@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub

最佳答案

这些行应该位于任何类或接口(interface)内

{
private String Voornaam;
private String Tussenvoegsels;
private String Achternaam;
private String Woonplaats;
private int Telefoonnummer;
private String Aardappel;
}

关于java - "Class header expected instead"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19929173/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com