us Naim

Greenhorn
+ Follow
since Jun 24, 2020
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
5
Given in last 30 days
5
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by us Naim

I got it. "no need to call explicitly constructor when you use String."

Thanks guys, I really appreciate it.
2 weeks ago
Thanks Mikalai.

So I don't need to use  create  the  Array objects., when it Comes to String objects.

This includes the primitv types also?
They didn't use new for index-Array either.

Thr reason why Im asking, is that I had to add this "new" Statement for a similar code,



So I had to add this Statements

for(int i=0; i< 3;i++){
meineBuecher[i]= new Buch();
}

otherwise I got a NullPointerException
2 weeks ago


UPD by MZ: I formatted the code, and don't select "Disable BB Code in this message" checkbox -- it will disable Java code formatter in your message.
2 weeks ago