Skip to content

Instantly share code, notes, and snippets.

@eoftedal
Created September 20, 2011 07:31
Show Gist options
  • Save eoftedal/1228563 to your computer and use it in GitHub Desktop.
Save eoftedal/1228563 to your computer and use it in GitHub Desktop.
Simple java class with public final field instead of getter
public class Person {
public final String navn;
public Person(String navn) {
this.navn = navn;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment