Skip to content

Conversation

@NIRAV-13
Copy link

Changes made that will make Java Interview program less errorless, readable and Understandable

CollectionsDemo.java
(Methods distributed to make it more understandable)

1). synchronizedCollection()
2). singletonCollection()
3). replaceAndShuffle()
4). immutableCollection()
methodCalling() will make call to each methods

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

CollectionsDemo.java
(Rename Variable)

indexList from iList as list indicates the index of the List that is intialized(line 54).

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

Code Error removed from snippet.java
(divisor string was written which was creating error in the code of package collectionsutils)

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

LinkedListDemo.java
(Rename)

variable named FirstElement from firstElt
variable named lastElement form lastElt
variable named ElementAtZero from eltAtzero
variable named element from elt

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

EncryptionDecryption(package)
AESEncryption.java(Extract Class)

A class has been created named encryptdecrypt which will also move fields.

Note:- (Output has been check initially(before changes) and at Commiting (After changing code) both remains the same).

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.

1 participant