All Questions
4 questions
0
votes
1
answer
300
views
10
votes
3
answers
4k
views
"Suspicious comparison of integer references" while checking for a monotonically increasing sequence
I have the following code which iterates on an Integer[] and makes sure that the the values in the array are in ascending order and that there are no neighbouring ...
2
votes
2
answers
4k
views
Writing a class for common block of code used in many other classes
In this I have written the setAnalyticsInfo() method. The code inside this is common to almost all other (30) classes, so I have created ...
4
votes
4
answers
226
views
Reference type and constructors [closed]
Code in Java but should be readable also for c#...
Let's assume I have a class with some reference types. Example:
...