Find Second Largest Number in an Array in Java (Hindi)
Vložit
- čas přidán 23. 08. 2018
- #java #javatutorials #deepak #smartprogramming
☀ Java Development Course (Upto 80% off) : courses.smartprogramming.in
📞 For more details Call or What's App : +91 98887-55565
------------------------------------------------------------------------------------------
#ArraysInJava #SingleDimensionalArray #MultiDimensionalArray #java #hindi #deepak #JavaTutorials #DeepakPanwar #OnlineTraining #OnlineClasses
Bubble Sort Tutorial :
• Bubble Sort Algorithm ...
------------------------------------------------------------------------------------------------------------
write a java program to find second largest element in the array in the java,
Program to Find Second Largest Number in an Array,
Interview Question: Find Second Largest Number,
Java Program to Find the Second Highest Number in an Array,
Find 1st, 2nd and 3rd highest number in Integer Array in java,
Find the smallest and second smallest elements in an array,
Find First and Second Biggest In An Array, Without Sorting It: C,
How to find largest and smallest values in an array in java?
Largest & Smallest Numbers In Array - Java Interview Questions - 6,
Second largest element using Java,
Java Program To Find Second Largest & Smallest Elements in An Array,
Java Program To Find Largest and Second Largest Number in Array,
Find Second Largest Number in an Array,
C PROGRAMMING - PROGRAM TO FIND SMALLEST AND LARGEST ELEMENT IN AN ARRAY,
how to get 2nd Largest values from an array?
C Program To Find Largest and Second Largest Number in An Array Explained in Hindi,
Java Program to Find the Second Highest Number in an Array,
------------------------------------------------------------------------------------------
Follow Me On Social Media :-
► Website : www.smartprogramming.in
► Instagram : / smart_programming
► Facebook : / smartprogramming.india
🚩🌳Professional Courses + Projects (Upto 80% off) 🌳 courses.smartprogramming.in
🔴 Core Java Playlist : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
🔴 Advance Java Playlist : czcams.com/play/PLlhM4lkb2sEjVsbbZ_kiixY5CcR84IQUg.html
🔴 Android Playlist : czcams.com/play/PLlhM4lkb2sEhdllbTIVF0rzD0coCiuHok.html
=====================================
▶ Core Java Chapter-wise Playlist ◀
⭕ 9. Collection Framework in Java | Java Data Structure : czcams.com/play/PLlhM4lkb2sEiOcuH1g-CUuU288qmMNpyj.html
⭕ 8. Multithreading in Java : czcams.com/play/PLlhM4lkb2sEh1pBs0KBb63PlKKqRx6M1a.html
⭕ 7. Strings In Java : czcams.com/play/PLlhM4lkb2sEh8AARH5oEivYOrMgaVsPFb.html
⭕ 6. Exception Handling : czcams.com/play/PLlhM4lkb2sEjaU-JAASDG4Tdwpf-JFARN.html
⭕ 5. OOP's Concepts : czcams.com/play/PLlhM4lkb2sEhf5NlWeYh_gdcN49pHjVP0.html
⭕ 4. Arrays in Java : czcams.com/play/PLlhM4lkb2sEi4UoqSmobDeA5VNI1f2w3C.html
⭕ 3. Control Statements : czcams.com/play/PLlhM4lkb2sEgQmNKO43i7v60no4bdc3lI.html
⭕ 2. Java Introduction : czcams.com/play/PLlhM4lkb2sEj6zsK25K9f15qNUATqYxGq.html
⭕ 1. Programming Basic Terminologies : czcams.com/play/PLlhM4lkb2sEhwPZhFmlox57kaCgMm5UgC.html
=====================================
▶Advance Java Chapter-wise Playlist ◀
⭕ 1. JDBC (Java Database Connectivity) with MySQL : czcams.com/play/PLlhM4lkb2sEjDXBqaYbwAoDAQKh2yczR7.html
⭕ 2. Servlet & JSP Tutorials for Beginners : czcams.com/play/PLlhM4lkb2sEiiEAP0uSFXiFY8KdXPnN0f.html
Sir as a engineer we need to be highly skilled in programming language ,with the help of your videos it is possible to maintain our technical skills ,I appreciate your work sir thanks for your dedication to provide free videos..
Hello vijay vijju,
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
czcams.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : czcams.com/video/J1TPKWIPFaE/video.html
2. Control Statements in Java (with programs and patterns) : czcams.com/video/OUZkdKFeuK0/video.html
3. Arrays in Java (With Algorithms) : czcams.com/video/dRrjjotgniA/video.html
4. OOPs Concepts in Java : czcams.com/video/7WhnYwoBY24/video.html
What if there are multiple same values in array?
Level of teaching❤️...I wish I could have teacher like u in my school and college
If the largest number is duplicate then first program fails
Great help for freshers to improve in programming I will surely share it with my all friends ......
Thank you so much for such a simple way to learn coding especially using arrays .......
🙏🙏🙏🙏🙏🙏🙏
hai sir, I never had a hope when comes to programming section but after i watched ur videos its very easy to crack in a new way. Thank you so much sir for such a good explanation and to ur effort.
Best teacher for java on CZcams
Thank you sir for lots of efforts ♥️♥️
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
thankyou so much sir finally understood this problem i have watched many tutorials and videos did not understand this solution that but after watching your video i finally understand the question and solution the solution was very clear and it has depth and understandable in your video. you should keep continuing teaching such problem like that we will support you sir
i really respect your effort sir .. you are really doing well sir!!!!!! your explanation with fully clarification sir ..
Hello SANDEEP KUMAR PANDA,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : czcams.com/video/J1TPKWIPFaE/video.html
2. Control Statements in Java (with programs and patterns) : czcams.com/video/OUZkdKFeuK0/video.html
3. Arrays in Java (With Algorithms) : czcams.com/video/dRrjjotgniA/video.html
Show less
U explain in such a way that I understood everything thanks a lot
Well explained!!!!🤗
there is a problem in your 1st program, to find the second largest ,according to program we short
in ascending order, then find the 2nd largest but if two digit repeated like 55 then largest is 5 and also 2nd largest value is 5
Thank you so much sir ji for ur effort ..your making us a real programmers.....@ i want collections concept in java
thank u sir you explain every program in very simple manner that,s great
Awsm. explanation. very easy to understand "Thank you".
Inspired from you even I have started Sharing my Interview Experience with different Mnc's.
All the best
wonderful explain sir .
Well Hindi is not my mother tongue but I do understand a little bit like A2 level, I’m really thankful for ur videos they are helping me understanding. Much love from morocco
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
hats off to you sir..nice explanation.
Nice Bhaiya Aap ase hi humlogo ke lie chote chote concept clear kar dijye. Thanks
kudos for deepak sir!!!!👏👏👏
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Thank you so much sir🙏, I understood fully.
Apke jaisa explanation koi nhi de sakta...
Thank you for your feedback. Keep Watching
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Thanks sir we were waiting for this video
Hello mantu kumar,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
Ur a fabulous lecturers🙏🙏🙏🙏🙏
Very hard logic but sir explain so so easily
Thanks sir
When i get a job then must be meet with you
Sure
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
sir you are the best teacher of computer in this world
Wonderfull you help me a lot
Second logic is best one... Thank you sir ji...
Hello Mallikarjuna S,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : czcams.com/video/J1TPKWIPFaE/video.html
2. Control Statements in Java (with programs and patterns) : czcams.com/video/OUZkdKFeuK0/video.html
3. Arrays in Java (With Algorithms) : czcams.com/video/dRrjjotgniA/video.html
great sir ..i like your way of teching
Sir now i really appreciate your work😊👌
thank you, keep learning 🙂🙂
Too dekho.. is always give a positive vibe ❤ 😅
Excellent sir keep continue
second solution was an epic one :)
Very nice explanation sir🔥🔥🔥
Thank you sir. Can you make a video on this:
How to find all pairs on integer array whose sum is equal to given number?
sure, video will take some time. but below is the code, thank you, keep learning 🙂
class CountSumPairs
{
public static void main(String args[])
{
int[] arr = {2, 4, 7, -1, 6};
int sum = 6;
getPairsCount(arr, sum);
}
public static void getPairsCount(int[] arr, int sum)
{
int count = 0;
for (int i = 0; i < arr.length; i++)
{
for (int j = i + 1; j < arr.length; j++)
{
if ((arr[i] + arr[j]) == sum)
{
count++;
}
}
}
System.out.println("Count of pairs is "+ count);
}
}
Thank you so much sir
really respect your efforts
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Thank you sir❤️
lots of love and thankyou sir
Keep going sir g... ☺️
thank you, keep learning 🙂🙂
very nice explation sir i like
Thanks sir for the wonderful solution.
Always Welcome🙂
You are awesome Deepak.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
you are great sir plz make a video find largest number from array in javascript.
Thank you sir 😍😘
Sir you great......
Hello nnn nnn,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
Best 🙏🏻
Respect forever♾️🙏🏻❤️
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Thank you
Welcome
thank you Bro
Its really helpfull sir
Make more videos
Thank you for your feedback. Sure, will upload soon
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Superb.... sir
Hello mvamsi krishna,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
can you explain the logic to reverse only 1)first half 2) Second Half 3) Even indexed 4) Odd indexed elements of a given array......
we will try to make a tutorial on this concept stay tuned and keep supporting.
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
czcams.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : czcams.com/video/J1TPKWIPFaE/video.html
2. Control Statements in Java (with programs and patterns) : czcams.com/video/OUZkdKFeuK0/video.html
3. Arrays in Java (With Algorithms) : czcams.com/video/dRrjjotgniA/video.html
4. OOPs Concepts in Java : czcams.com/video/7WhnYwoBY24/video.html?
Respect from bhopal.
u r expalnation is so good but use good quality mike plz, ur voice burst sir plz use good mike so that can be easily audible
hello swapnil shah,
Thanks a lot for your valuable feedback and support, keep learning 🙂🙂
Sorry for inconvenience, will try to improve the speaker quality, thank you
Get updated to my new videos in the following link:
czcams.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : czcams.com/video/J1TPKWIPFaE/video.html
2. Control Statements in Java (with programs and patterns) : czcams.com/video/OUZkdKFeuK0/video.html
3. Arrays in Java (With Algorithms) : czcams.com/video/dRrjjotgniA/video.html
4. OOPs Concepts in Java : czcams.com/video/7WhnYwoBY24/video.html
5. Exception Handling in Java : czcams.com/video/y-NlcLcxiKY/video.html
this is very tough program. every company ask this question compulsory in interview. 😓 but your teaching way is wonderful
thnku sir
Sooooooooooooooooooooooooooo
Goooooooooooooooooooooooood
Explaination
Siiiiiiiiiiiiiiiiiiiiir.....ji😄😄😁
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Sir aap udemy kyon nai join karte hain. It is a good platform for talents like you. You are a great teacher sir 🙏🙏
I really appreciate your effect sir... But when go to interview i forgot the logic sir.. do have any suggestions sir?
Please make series of javascript
Sir placement oriented data structure & data algo question please
thank you
Most Welcome 🤗
Nice one
You are best
Hello Sanjaykumarsingh,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : czcams.com/video/J1TPKWIPFaE/video.html
2. Control Statements in Java (with programs and patterns) : czcams.com/video/OUZkdKFeuK0/video.html
3. Arrays in Java (With Algorithms) : czcams.com/video/dRrjjotgniA/video.html
Thank u sir
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : czcams.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
best 2nd largest program
User se input Vale programs Sir plz unke liye b video banaiye 😊😊u r good teacher 😊
do you want to take array values from user, if yes, then i will comment you the basic logic and it will be same for all programs ??
Smart Programming yes sir 👍
class ArrayUserInput
{
public static void main(String[] args)
{
int n, sum = 0;
Scanner s = new Scanner(System.in);
System.out.print("Enter no. of elements you want in array:");
n = s.nextInt();
int a[] = new int[n];
System.out.println("Enter all the elements:");
for(int i = 0; i < n; i++)
{
a[i] = s.nextInt();
}
System.out.println("-----------------------------------------------");
System.out.println("The vaues you have entered in an array are : ");
for(int i = 0; i < a.length; i++)
{
System.out.print(a[i]+" ");
}
}
}
Sir ,collection ka bhi videos banaia
Great sir
Thanks
Sir how to split digit left to right plzz...
Sir collection p video kab aaengay
Sir aap logic ko main method Mai likh K programs banate Ho but Sir aap plz logic K liye alg method bna kr usko main method Mai call krne ka plz sir ek example program ki video banaye qki Sir usme problem aati hai banane Mai plz Sir plzzz 😇😇😊😊😊👍
actually main abhi method ke through islie nhi karva raha because methods are in OOP's concepts and i didnt explained OOP's concepts yet, so by this students may get confused thats why i have created all the logics in main method only.
Thank you for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
OK thnx for your response 😇
Amazing sir,
Sir how can we contact with u??
Nice explanation tq..
Hello shaik maha boob sab,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : czcams.com/video/J1TPKWIPFaE/video.html
2. Control Statements in Java (with programs and patterns) : czcams.com/video/OUZkdKFeuK0/video.html
3. Arrays in Java (With Algorithms) : czcams.com/video/dRrjjotgniA/video.html
😊😊
Bhai plz reply
Ethical hacking ke liye kitne programming language aane chayee.
for Ethical hacking go for python 🙂🙂
Sir plz reverse an arrayy pgm plz
Hello deepka bhai
Sir agar array me two largest number h same tho kaise hoga print wo tho same largest number print kr dega n
program to arrange the digits of a number in ascending order....logic please
for this there are a lot of sorting algorithms, below is the link where you will get all the sorting algorithms one by one :
czcams.com/video/v6hmmfIiKu4/video.html
Thank you, keep learning 🙂🙂
But, sir without using array.Like input number is 5289,then in ascending order program logic
if you dont want to use arrays, then collections can be used, and this concept will be explained after OOP's and strings chapter, thank you, keep learning
Sir please data structures pe video bnao plz i m not able to understand linked list *node 😭
as vídeo aulas do Guanabara são melhores
public static void main(String[] args) {
int arr[] = {10,20,30,40,50};
int largest = arr[0];
int secondLargest = arr[1];
System.out.println("The given array is:" );
for (int i = 0; i < arr.length; i++) {
System.out.print(arr[i]+"\t");
}
for (int i = 1; i < arr.length; i++) {
if (arr[i] > largest) {
secondLargest = largest;
largest = arr[i];
} else if (arr[i] > secondLargest) {
secondLargest = arr[i];
}
}
System.out.println("
Second largest number is:" + secondLargest);
}
What is the difference between this and bubble sort
this is program which can be achieved by using bubble sort, there are many programs based on sorting, searching etc......bubble sort is an algorithm for sorting.
ye bubble sort aur selection sort ka mixture sa hai.
aapke notes ya book milti h kya ??
Nice sir
Hello Wasim,
Thanks a lot for your valuable feedback and support.
If you are new, Please subscribe to get updates about new videos in the following link:
czcams.com/users/smartprogramming
Sir aap bht late se upload krte hn
yes it was because i am not able to provide full time for youtube videos, sorry for inconvenience.
Thank you, keep learning 🙂🙂
@@SmartProgramming ohk
.bhai bhot jada shi h .but ek choti c cheej .apki paatern wali videos jada famous ho ri .usme kuch or video upload krriyo .
.ek choti c demand video thi .
*
***
*****
***
*
.ye wla pattern .bhot cnfusn h .plzz Rply
.bhai pattern glt bna .
---*
-***
*****
-***
--*
.ye wla bs yha .- ni h
Bhai bn ni ra . phle line me 3 space fr 1 star fr 2nd line me 1 space or 3 star .fr last me niche repeat .reverse me .symotry ke saath .bhai lga pta kya ???
Plzz rply
didnt get proper pattern, send me again
@@SmartProgramming sir mne apko mail kiya tha .gmail me .jo site me h mail id . if u don't get .to dobara bhej deta .yha ban e ni rha sir pattern
send me again
apni language meih chizay zada samaj aati hey....