Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created March 14, 2020 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatilShreyas/f12879f021a8175229b0ea380ef4fb84 to your computer and use it in GitHub Desktop.
Save PatilShreyas/f12879f021a8175229b0ea380ef4fb84 to your computer and use it in GitHub Desktop.
@Singleton
public class Money {
public Job mJob;
@Inject
public Money(Job job) {
this.mJob = job;
if (mJob != null) {
System.out.println("I've Money!");
} else {
System.out.println("I'm not working yet!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment