Mike Tango

Greenhorn
+ Follow
since Jul 10, 2017
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mike Tango

Carey Brown wrote:Seems like you've done it. It's immutable. You don't have any setter's (good thing).



No the object is not Immutable using a Date.
10 months ago
Hello ALL,

How can I modify the body of the code (this can include the body of the constructor) to protect Person instances against alteration: Once a Person is created, it should not be possible to modify it.



Regards,
10 months ago
Thanks for the feedback;

sorry I didn't get it ?

int[][] multipliers = new int[10][] works
int[][] multipliers = new int[][] doesn't work

And how to read the nextline:
int[] quotes[] = ....
1 year ago
Hello,

Why there are different ways to declare 2D array ?

What's the real reason behind it ?

int[][] squares = new int[3][2];

int[][] multipliers = new int[10][]; ==> OK
int[][] multipliers = new int[][]; ==> Compile Error!

int[] quotes[] = new int[2][2];



Regards,
1 year ago
Thank you for your support.

regards
1 year ago
Dear ALL,

Sorry to post here,

I write java code since 3 years (at work), (Most of the time copy paste from internet/forum...)
Sometimes it works but I don't know why / sometime it doesn't work and don't know why either .....

I really want to understand the core of java...
After 3 years I figure out that I write dirty code 


How can you advice me to solve this problem...

Regards,
Mike
1 year ago