Accidentally deleted the code from the lesson in Java


#1

Is there a refresh button?
Here is the link:

https://www.codecademy.com/en/courses/learn-java/lessons/introduction-to-java/exercises/generalizations


#2

Refresh your browser it should come back. :slight_smile:


#3

I'm not so sure about refreshing the page having any effect.

You need something to start happening when the file is run, that means the class needs to be public and have the same name as the file, and contain a main method.

public class Generalizations {
    public static void main(String[] args) {

There is a reset button under 'Get Help' but I've had bad experiences with it, it may reset more exercises than you'd like.


#4

Thanks for the help!


#5