Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
Hello,
Is the maximum amount of parameters for Union, intersection and complement 2? And is it safe to assume that there can't only be 1 parameter for intersection and union?
Thanks
ANONYMOUS wrote
Dependency can have various meanings, and I am not sure how you are using it here. The same goes for the concept of flexibility.
As a sweeping generalization, I would say that interfaces are "more flexible" than inheritance. Interfaces...
When we use inheritance (extends), we create a dependency on the parent class, correct? Does using an interface instead of an abstract base class make our code more flexible?
emails is an array (or specifically an ArrayList) of objects of the class Email.
The loop is a 'for-each' loop which uses the syntax
for (datatype variableName collection)
...
This means for each item in the collection array, store th...
In the writing of the isPrime method, the question doesn't say whether the method should be static or non-static. Should we be concerned about this, or just assume the default is non-static?
There are a couple of options for how to get input in a Java program that we have covered so far...
You can indeed use Scanner . You can construct a Scanner object wherever it makes sense (probably in main , for a little example like this) and use...
Hello,
I have a question regarding how if I would use Scanner to input different options each time I call the class? Or if there is another way?
This is what I wrote for one of the coding bat questions
public class CaughtSpeeding
public static int ...
Please be aware that all Tuesday and Wednesday labs in CSSE 2.03 have been relocated to CSSE 2.05. As these are relatively recent changes, they do not appear in the timetable system.
Additionally, shortly before the start of semester we were able to a...