Hello , I am a newbie to in Java on Vaadine. Can anyone tell me why I am getting error :void is an invalid type for the variable main on line 12 highlight? thanks
Code:
package com.example.tayo;
import com.vaadin.Application;
import com.vaadin.ui.*;
public class TayoogundehindeApplication extends Application {
@Override
public void init() {
Window mainWindow = new Window("tayoApplication");
[COLOR=red]public static void main(String[]args);[/color]{
System.out.println("Hello Teacher");
System.out.println("This is Tayo");
System.out.println("Well this is getting better!");
System.out.println("I've even got some buttons!");
System.out.println("Please click my buttons");
}
Label label = new Label("The right Button");
Label label1 = new Label("The wrong Button");
mainWindow.addComponent(label1);
setMainWindow(mainWindow);
}
}