Cheat Sheet - Java

Created: 2022-01-13 | 1 min


My Cheat Sheet for: Java.

Gathering quick references I used to search over and over again. Good to have them handy and supposed to (slowly) grow.

  1. Which Functional Interface fits better for my use case? This answer from stackoverflow gives exactly what my brain can't

retain and forces me to read this more than once: https://stackoverflow.com/a/62434813

  1. How can I prettify this one line of java object data? : https://codebeautify.org/javaviewer

Before prettify

ClassA{id=1, name='My ClassA', classB=[ClassB{id=100, name='My ClassB (1)'}, ClassB{id=101, name='My ClassB (2)'}]}

After prettify

ClassA {
  id = 1, name = 'My ClassA', classB = [ClassB {
    id = 100, name = 'My ClassB (1)'
  }, ClassB {
    id = 101, name = 'My ClassB (2)'
  }]
}

See other cheatsheets here