2/28/2007

Dodo Tales: Finally fischy ','

Why did not the complier complain of having a "," as the final element in an array initialization?

List initList = Arrays.asList(new Integer[] {
new Integer(1),
new Integer(2),
new Integer(1),
new Integer(2),
});

Why is this a part of Java Language Specification ..?

No comments:

Tired of seeing that 500 Bad gateway error while deploying a Springboot application in AWS...?

By default, Spring Boot applications will listen on port 8080. Elastic Beanstalk assumes that the application will listen on port 5000. Th...