package com.example; public class ChompExample { private final Thing thing; private final OtherThing otherThing; public ChompExample() { this.thing = ... your thing this.otherThing = ... } }