“Class header expected instead” error

前端 未结 2 1679
遇见更好的自我
遇见更好的自我 2021-01-27 21:38

Why do I get this error?

I\'ve been trying to solve it.

package Controller;

import View.ViewGegevens; //Error
import Model.Persoon;
{
private String Voo         


        
相关标签:
2条回答
  • 2021-01-27 22:06

    whatever the variables your declaring must be enclosed within a class because class is a type of Wrapper Mechanism unless they are declared inside the class those will not be available to your class

    0 讨论(0)
  • 2021-01-27 22:13

    These lines should be within any of class or interface

    {
    private String Voornaam;
    private String Tussenvoegsels;
    private String Achternaam;
    private String Woonplaats;
    private int Telefoonnummer;
    private String Aardappel;
    }
    
    0 讨论(0)
提交回复
热议问题