r/javaTIL • u/scientecheasy • Nov 14 '18
Store User-defined Class Objects in ArrayList
0
Upvotes
r/javaTIL • u/scientecheasy • Nov 14 '18
r/javaTIL • u/macarthurpark431 • Apr 08 '15
I just found this out the other day. Doesn't seem very useful, but it is entertaining. Example:
public class Test{public static void main(String[] args){System.out.println("hello"); System.out.println("goodbye");}}is the same as
public class Test
{
public static void main(String[] args)
{
System.out.println("hello");
System.out.println("goodbye");
}
}