Skip to content

Generics#7

Open
Dolev3 wants to merge 1 commit intomasterfrom
generics
Open

Generics#7
Dolev3 wants to merge 1 commit intomasterfrom
generics

Conversation

@Dolev3
Copy link
Owner

@Dolev3 Dolev3 commented Aug 14, 2025

No description provided.

@Dolev3 Dolev3 changed the title Until exercise 3 Generics Aug 14, 2025
Comment on lines +15 to +17
for (int i = 0; i < arrayList.length; i++) {
arrayList2[i] = arrayList[i];
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve this, but System.arraycopy is faster and cleaner


T getLastestValue();
void Update();
asArray();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your code should compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants