0

Angle braces < > ?

Can someone tell me the use for angle braces? I understand that curly braces {} are for code blocks and parenthesis () for methods or functions. Any help is appreciated

26th Aug 2022, 10:44 AM
Brent Tyson
Brent Tyson - avatar
1 ответ
+ 3
They can be used when creating an Array list, declaring what type of items are in the list. E.g. ArrayList<String> stringArr = new ...
26th Aug 2022, 12:07 PM
Ausgrindtube
Ausgrindtube - avatar