Custom Collection Development Part 6 | Core Java Tutorial | Mr. Hari Krishna

preview_player
Показать описание
Core Java Tutorial | Mr. Hari Krishna

Welcome to the Core Java Tutorial Series! In this video, we introduce the essential concepts of Core Java and guide you through building a strong foundation in Java programming. Perfect for beginners and those refreshing their Java skills!

🔹 Course Details :
• Topic: Core Java Course Overview | NareshIT

🔹 Join Our Community For Latest Updates:

• 📚 Learn Core Java with NareshIT and take your Java development expertise to the next level. Don’t forget to like, comment, and subscribe for more tutorials and updates!

#corejava #javatutorial #javaprogramming #learnjava #nareshit #javaforbeginners #javacourse #programmingbasics #javadevelopment #javaskills #javalearning #enterprisejava #javatraining #javaseries #javacode #javaframeworks #javatips #springframework #javaconcepts #codingwithjava

*💡 About NareshIT:

"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
________________________________________________________________________________________________________________

💡 Our Online Training Features:
• 🎈 Training with Real-Time Experts
• 🎈 Industry-Specific Scenarios
• 🎈 Flexible Timings
• 🎈 Soft Copy of Material
• 🎈 Recorded Videos of Each Session
________________________________________________________________________________________________________________

Please write back to us at
Рекомендации по теме
Комментарии
Автор

thank you, sir, for handling all the edge cases makes a difference between average and good programmers.

sureshgarine
Автор

Thank you sir...Feeling comfortable and confident because of one and only ..You Sir

MUKESHKUMAR-vhmb
Автор

Hello sir, you haven't teach how to override the toString method to display the all contents(objects) of the Collection object at a time.Thank you.

gopichinna
Автор

Hi
Please make videos on hash code & toString topics

SassyLishC
Автор

when i run the program "system.out.println(col);

AbdulRehman-jbon
Автор

sir, one question ask in interview that

Q -> i have ArrayList in that array list duplicate object is there to remove the duplicate from ArrayList without using Set or remove() i have to remove duplicate how can i do this

Anilpal-hrwd
Автор

public class Test {


Object objarr[]=new Object[10];
public int elementCount=0;

public void add(Object obj){



incrementCapacity();
}

objarr[elementCount]=obj;
elementCount++;
}
private void incrementCapacity() {
// TODO Auto-generated method stub
int newCapacity=objarr.length*2;

Object nextArray[]=new Object[newCapacity];
for(int i=0;i<objarr.length;i++){

nextArray[i]=objarr[i];
}
objarr=nextArray;
}

private void getArrayElement() {
// TODO Auto-generated method stub

for(int i=0;i<objarr.length;i++){

System.out.print(objarr[i]+" ");
}

}

public void remove(int index){

if(index < 0 || index>=elementCount){

throw new not exist");
}

else{

for(int


objarr[elementCount]=null;
}
}
}

public void replace(int index, Object rep_obj){

if(index<0 || index >=elementCount){

throw new not replace");
}
else{

objarr[index]=rep_obj;

}


}
public static void main(String[] args) {
// TODO Auto-generated method stub

Test test=new Test();
test.add("1");
test.add('2');
test.add(3);
test.add(4);

System.out.println("Element before deletion");
test.getArrayElement();
test.replace(0, "Sach");
// test.remove(3);
// System.out.println();
System.out.println("Element after replace");
test.getArrayElement();
}

}

sachinpandey
welcome to shbcf.ru