When you will explain Array in Detail & When you will explain Multithread in Java? Because you use to explain each and every concept in easy and in detail. So, I really love your videos.
Sir,I am totally depend on you for core java and advance java because its be best for me to learn.it is better than coaching. please just upload all videos so that i could learn and develop application in java.sir please teach me database connectivity also. Thanks sir
Sir why you are not using any IDE like Netbeans or Eclipse, coz of that I have to refer another video, else your videos are more self-explanatory and well explained as everyone can understand easily without any constraint. I am new to programming and found your videos helpful, kindly suggest us if we apply your codes into eclipse sam time as I have installed it.
sir solve this, please Q: You have an array with N elements. Initially ,each element is 0. you can perform the following operations. . Increment operation: choose one element of the array and increment the value by one . . Doubling operation: Double the value of each element. you are given a int[] desired Array containing N elements. compute and return the smallest possible number of operating need to change the array from all Zeros to desired Array. Sample test case: input {2,1} output: 3 one of the optional solution is to apply increment operation to element 0 twice and then element 1 once. total number of operation is 3. input {16,16,16} output: 7 The optimum solution looks as follows first, apply an increment operations to each element. Then apply the doubling operation four times , total number of operations is 3+4=7 . input: {0,0,1,0,1} output: 2 some elements in desired Array may be Zeros. input:{123,234,345,456,567,789} output: 40 .
Hello, I am stuck at a place where we have to use Arrays.toString ()and Arrays.sort() here Array must be a class because its initial is in capital iske alawa kaunse methods hote hain array class mein . I cant find the place where i can study all these things as i am finding my self very low while creating logic in java programs. Please help me out.
SOP(" i want to print"); 1.just try to understand wen you write something that want to print should be in between SOP(" "); 2.but lets say if u want to input and print any variable in beginning we write SOP (var+".... " ); 3.if u want to input and print any variable at the end we write SOP(var+".... " ); 4.combining beginning and end SOP(var+ " " +var); but we want to input var in between( e.g. Var X i = result (2*1=2....2*2=4..- where 2 is user input and i is variable and 4 is the result.....) then that var should be in " " of its own beside " " of as a whole shown in line 1 above let say variable you wanna print is X and Y but you want write like THE VALUE OF X * Y =Result (" THE VALUE OF X * Y = " +Result) then put " " for individual variable only i.e. (" THE VALUE OF " X " * " Y" = " +Result);--------> "X" and "Y" this is extra we did rest are the same note: inverted comma is to be placed additional that we either input is changing
SOP(" i want to print"); 1.just try to understand wen you write something that want to print should be in between SOP(" "); 2.but lets say if u want to input and print any variable in beginning we write SOP (var+".... " ); 3.if u want to input and print any variable at the end we write SOP(var+".... " ); 4.combining beginning and end SOP(var+ " " +var); but we want to input var in between( e.g. Var X i = result (2*1=2....2*2=4..- where 2 is user input and i is variable and 4 is the result.....) then that var should be in " " of its own beside " " of as a whole shown in line 1 above let say variable you wanna print is X and Y but you want write like THE VALUE OF X * Y =Result (" THE VALUE OF X * Y = " +Result) then put " " for individual variable only i.e. (" THE VALUE OF " X " * " Y" = " +Result);--------> "X" and "Y" this is extra we did rest are the same note: inverted comma is to be placed additional that we either input is changing
Sir I want to join a organization where I can utilize my knowledge and skills plzzzz Help me bcoz I saw a video in which you talk to students which got placed then I think u can help me also....
Sir in the slide....initialize declaration u have written arr=new int[3]; which is wrong...it should be arr []= new int [3];...rest all is good...good work and excellent explanation...cleared my concept thoroughly
sir i must say that you are worlds best explainer but one thing i want to complain you that why you do not touch important concepts of (composition , aggregation and associations). also in c++. please upload such type of videos. thanks
Sir mujhe code trace karne mein aur dry run karne mein problem aati hai mein trace nhi kar pati actually code mein hota kya hai ek suggestion do sir mein kaise is cheez ko improve karun
reference variable need for different instance variables value assign in to object....you can direct call static members...no need to create ref.variable
SOP(" i want to print"); 1.just try to understand wen you write something that want to print should be in between SOP(" "); 2.but lets say if u want to input and print any variable in beginning we write SOP (var+".... " ); 3.if u want to input and print any variable at the end we write SOP(var+".... " ); 4.combining beginning and end SOP(var+ " " +var); but we want to input var in between( e.g. Var X i = result (2*1=2....2*2=4..- where 2 is user input and i is variable and 4 is the result.....) then that var should be in " " of its own beside " " of as a whole shown in line 1 above let say variable you wanna print is X and Y but you want write like THE VALUE OF X * Y =Result (" THE VALUE OF X * Y = " +Result) then put " " for individual variable only i.e. (" THE VALUE OF " X " * " Y" = " +Result);--------> "X" and "Y" this is extra we did rest are the same note: inverted comma is to be placed additional that we either input is changing
Sir mein to bolta hun...ki aapse best pure RUclips par koi ni pda skta challenge hai...mera sabhi RUclips channel walo ko dam hai to mysirji jesa pda kar dikho
Please help in this, Source code is : public class Array { public static void main(String[] args) { int result[]; result = new int [4]; int total=0; int i; result[0]=51; result[1]=50; result[2]=54; result[3]=72; for(i=0; i
replace the result = new int [4]; with result = new int [3]; you forgot that 0 1 2 3 counts as in 4 elements of an array and you have described 4 as well but when in the FOR condition it goes to check till 4 which in general counts as 5 elements :)
way of explanation is good, thank you sir 🙂
Did you learn from him?
@@mdsharique2386 may be or he may watching how he teaches 😂
Sir, your videos are very helpful. Thank you sir for providing these Educational videos 🙏🙏.
You are inspiration for us !!
Correct h
thank goodness I learnt how to understand hindi when i was young!
I am not understanding the concept of arrays hopefully this video clears it up!
Same here dude
sir you are very nice becoz you are providing student awareness
Thanku so much sir for explaining the topics very well. We all needs the teachers like you🙂🙂
thanku so much sir, you teaches each and everything in a very deep manner.that's why i am able to clear my concept .
Yeah
Yeah, actually all concept are clear. Thanks sir for all the java video's, bcoz this tym it is very helpful for me...
You and sharad sir, are best teacher of my life
sharad sir?
When you will explain Array in Detail
& When you will explain Multithread in Java?
Because you use to explain each and every concept in easy and in detail.
So, I really love your videos.
.
technolgydrift.blogspot.com/2018/07/programming-language-java-about-java.html
Great Explanation Sir🙏🙇♂
Thank you sooo much sir for being the part of my life
Whatever I got is just because of you😁❤️
So much thank u sir........sir I want chapter 2 of computer of class 10 icse
amazing explanation sir don't need to read book nice explanationn
Wow 🙏
Sir,I am totally depend on you for core java and advance java because its be best for me to learn.it is better than coaching. please just upload all videos so that i could learn and develop application in java.sir please teach me database connectivity also. Thanks sir
+Zaheer Ahmad visit www.mysirg.com
Sir why you are not using any IDE like Netbeans or Eclipse, coz of that I have to refer another video, else your videos are more self-explanatory and well explained as everyone can understand easily without any constraint. I am new to programming and found your videos helpful, kindly suggest us if we apply your codes into eclipse sam time as I have installed it.
sir solve this, please
Q: You have an array with N elements. Initially ,each element is 0. you can perform the following operations.
. Increment operation: choose one element of the array and increment the value by one .
. Doubling operation: Double the value of each element.
you are given a int[] desired Array containing N elements. compute and return the smallest possible number of operating need to change the array from all Zeros to desired Array.
Sample test case:
input {2,1}
output: 3
one of the optional solution is to apply increment operation to element 0 twice and then element 1 once. total number of operation is 3.
input {16,16,16}
output: 7
The optimum solution looks as follows first, apply an increment operations to each element.
Then apply the doubling operation four times , total number of operations is 3+4=7 .
input: {0,0,1,0,1}
output: 2
some elements in desired Array may be Zeros.
input:{123,234,345,456,567,789}
output: 40 .
Sir in the last example if we write the print statement in the same loop that of input. will it be wrong?
At 11:00, error is that it is, "new" keyword is not used to make array. It's just only reference variable and below two lines will give error.
Array ke size se jyada element input kar sakte hai ya nahi.
Sir why u r using 2 for loops in the last example???
fantastic sir... please upload collection concepts repleted videos.
Can reference variable of small size array point to large size array? If yes, why?
Student[] studentArray = new Student[7];
It is also same or Different from which you explain .I am confused.
very nice video, good explanation.
Sir..plz upload ur videos on java Advance
Sir u r awesome teacher
Can we use access modifiers with array?
searching and sorting bhi explain kar deejiye please sir
sir make different videos on array programs in java
Its very helpful,
awesome sir
Hello, I am stuck at a place where we have to use Arrays.toString ()and Arrays.sort() here Array must be a class because its initial is in capital iske alawa kaunse methods hote hain array class mein . I cant find the place where i can study all these things as i am finding my self very low while creating logic in java programs. Please help me out.
Sir, arr["+I+"].........in print()........I don't understand the syntax
SOP(" i want to print");
1.just try to understand wen you write something that want to print should be in between SOP(" ");
2.but lets say if u want to input and print any variable in beginning we write SOP (var+".... " );
3.if u want to input and print any variable at the end we write SOP(var+".... " );
4.combining beginning and end SOP(var+ " " +var);
but we want to input var in between( e.g. Var X i = result (2*1=2....2*2=4..- where 2 is user input and i is variable and 4 is the result.....) then that var should be in " " of its own beside " " of as a whole shown in line 1 above let say variable you wanna print is X and Y but you want write like THE VALUE OF X * Y =Result
(" THE VALUE OF X * Y = " +Result)
then put " " for individual variable only i.e.
(" THE VALUE OF " X " * " Y" = " +Result);--------> "X" and "Y" this is extra we did rest are the same
note: inverted comma is to be placed additional that we either input is changing
sir, last line me println ke baad jo likha he use Sam ja dijiye ki usse kya ho Ra he
thankyu
Enter 5 numbers
1 2 3 4 5
Output
arr[0]=1
arr[1]=2
arr[2]=3
arr[3]=4
arr[4]=5
Aise print hone k liye waise likha hua h
SOP(" i want to print");
1.just try to understand wen you write something that want to print should be in between SOP(" ");
2.but lets say if u want to input and print any variable in beginning we write SOP (var+".... " );
3.if u want to input and print any variable at the end we write SOP(var+".... " );
4.combining beginning and end SOP(var+ " " +var);
but we want to input var in between( e.g. Var X i = result (2*1=2....2*2=4..- where 2 is user input and i is variable and 4 is the result.....) then that var should be in " " of its own beside " " of as a whole shown in line 1 above let say variable you wanna print is X and Y but you want write like THE VALUE OF X * Y =Result
(" THE VALUE OF X * Y = " +Result)
then put " " for individual variable only i.e.
(" THE VALUE OF " X " * " Y" = " +Result);--------> "X" and "Y" this is extra we did rest are the same
note: inverted comma is to be placed additional that we either input is changing
Sir I want to join a organization where I can utilize my knowledge and skills plzzzz Help me bcoz I saw a video in which you talk to students which got placed then I think u can help me also....
sir please do short program khan from canada
sir....why we need to creat reference variable oa an array
beacause we keep adderss of new type array in refrence variable.....
Sir in the slide....initialize declaration u have written arr=new int[3]; which is wrong...it should be arr []= new int [3];...rest all is good...good work and excellent explanation...cleared my concept thoroughly
Thanks a lot sir
Sir Please Upload Lecture On Jagged Array In Java....
sir , int arr[]={2,3,4,5,6}; kaise likh sakte hain....isme bhi toh array ko memory nhi mili hai....values kaise de sakte hain ??
int arr[]=new{2,3,4,5,6} aisy likhty hai h
check at 09:10 in the video ,,,, sir wrote it as : int arr[]={2,4,6,8,10};
i know but it"s wrong we cant write like this in java,,but it is true in C,,,,
we can write int[] arr={10,20,30};, it will also allocate memory but not initialize the array by its default values that is 0
Sir sc.nextInt ka use kya thoda doubt h isme sir please solve
Sir in both for loops you are writing int i why????????? I think only one int is enough in for loop? Please explain
Value of i will be incremented after the first loop that's why.
Sir, if array is char or of other datatype then what value is going to be stored in array?
string
sir how the compiler know how many data he takes
can i apply null value in an array
sir i must say that you are worlds best explainer but one thing i want to complain you that why you do not touch important concepts of (composition , aggregation and associations). also in c++. please upload such type of videos. thanks
THANK YOU SIR UR GREAT
9:11 last one is dynamic or static array?
stackoverflow.com/questions/2814164/differences-between-static-dynamic-data-structures
bohoot acha sir but ap array ka 1 album bana k beej dey Thank You Sir
Sir plis c# me video bna ye kya array similar h c# me bhi
hello sir,how r u?i would know that why does index always starts from 0..neither 1 nor 2????
please answer me when you have time..
because in C the array locates a memory in pointers and there array index refer as a offset .
Sir lenght variable ka concept samj nhi aaya wo variable automatically kese bann jata hai
Sir How to insert char array without deleting older data
Sir ismein input command line arguments se kaise le
int arr[]={1,2,3,4,5} Isn't this declaration becomes static array?
Sir the program is compiled but after running it, says Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
check out your main method again and the values you are giving through console.
Thank you very munch
sir, array ka main use kya hai. Matlab iska istemal kab karna hain.
jab aap multiple data ek sath transfer karna chahte ho tab array ka use karna chahiye
Array is a collection of similar objects
Nice
Sir mujhe code trace karne mein aur dry run karne mein problem aati hai mein trace nhi kar pati actually code mein hota kya hai ek suggestion do sir mein kaise is cheez ko improve karun
Sir u can explain for each loop
sir what is jagged array ? explain in tutorials
sir array me index 0 se start ku hota hai..
thank you sir
Sir please tell me best book java
Variable = default variable ghaitale tar Kai hoeil sir
Thanks Sir.
thankyou sir
sir iss program me kewal one time hi value store kar raha
hai
Sir i am a bit confused in reference variable ..can u please explain dat sir...if you are comfortable
Bro reference variables are those variables which value is static .we cant assign these value again for any object.
reference variables are like a pointer.......which refers object
reference variable need for different instance variables value assign in to object....you can direct call static members...no need to create ref.variable
How are you printing the arrays
Can you plz tell me sir
I did not understand
System.out.println(arr[i]); helps to print array elements in for loop running until the loop reaches the end.
traversing ka concept samjhayee plzzzzz
sir mysirg.com pae kuch samjh nhi aa rha ... how to search programms in it
Nice
sir plzz explain last line ,last example in this lecture ....
his keyboard wasnt working at that time, he knew there is a mistake in last line (+i+) so he had to wrap up quickly
printing mistake
After println what have you written?
SOP(" i want to print");
1.just try to understand wen you write something that want to print should be in between SOP(" ");
2.but lets say if u want to input and print any variable in beginning we write SOP (var+".... " );
3.if u want to input and print any variable at the end we write SOP(var+".... " );
4.combining beginning and end SOP(var+ " " +var);
but we want to input var in between( e.g. Var X i = result (2*1=2....2*2=4..- where 2 is user input and i is variable and 4 is the result.....) then that var should be in " " of its own beside " " of as a whole shown in line 1 above let say variable you wanna print is X and Y but you want write like THE VALUE OF X * Y =Result
(" THE VALUE OF X * Y = " +Result)
then put " " for individual variable only i.e.
(" THE VALUE OF " X " * " Y" = " +Result);--------> "X" and "Y" this is extra we did rest are the same
note: inverted comma is to be placed additional that we either input is changing
apky program min itny error ku hain plz is program ko execute kr k dikhain
In line 1 .java.util.Scanner hota h?
using Scanner errors were not there.
cannot find lecture on scanner, lost in arrays, confused all together, will go through again i guess
+Wasim Bader visit www.mysirg.com and get links of videos in topic wise.
please explain the last example thouroughly... you just done a formality in that last example...
his keyboard wasnt working at that time, he knew there is a mistake in last line (+i+) so he had to wrap up quickly
As u said array in java always dynamiclly created...
But at 9:08, the last method seems to be static.....
dear sir ek touch pad aata hai jiske sath pen bhi milta hai aap uska use karo padhane ke liye ....
or Java ke video upload kariye please advance me jaeye aba core Java ke bad
Sir 3 error arhi h isme compile nhi ho rha h
Vse acha pdate ho sir aap bt kbi kbi thda sa confusing ho jata h may b by our mistake or is it 🙄
Nice sir
how i show arr[1]=
arr[2]=
.
.
.
arrr[5]=
System.out.println("arr["+ (i+1)+" ]= "+arr[i]); this not working as i want above same
last line is by mistake
@@kingfisher8260 bhai bhut late reply kiye m to ab java bhi bhool gya😂😂😂
@@retrogame3138 😂🤣
sir can u upload advanced java.and the number what u have given in the screen is not working sir can u provide any other number for contact
Sir ap na jo ise video me last me program banaya ha us me error ha
Please declare variable int i;
sir is greaT
ye video 5 saal pahle ka h ...... haaye daiya😂
can anyone listen to the clock that's ticking in background?
Sir mein to bolta hun...ki aapse best pure RUclips par koi ni pda skta challenge hai...mera sabhi RUclips channel walo ko dam hai to mysirji jesa pda kar dikho
code with harry ! the best youtuber for programming. challenge won😂😂
@@sarthak8716 ghanta...agr cheezo ko deeply & conceptually smjhna h to...only mysirji
@@honeyverma2755 ha bhai mysir G is best 👍
Sir java me SMA nhi hota
i bet his keyboard was broken at the time of making video
Please help in this,
Source code is :
public class Array {
public static void main(String[] args) {
int result[];
result = new int [4];
int total=0;
int i;
result[0]=51;
result[1]=50;
result[2]=54;
result[3]=72;
for(i=0; i
replace the result = new int [4]; with result = new int [3]; you forgot that 0 1 2 3 counts as in 4 elements of an array and you have described 4 as well but when in the FOR condition it goes to check till 4 which in general counts as 5 elements :)
your array is of 4 elements but for loop does 5 iterations so it tries to access the element that is not in the array.
Ni aya
He don't explain it well 😔😟
bhai smjh nhi aaya 😅🤨🤨😑😑😑😶😶🙄🙄😣😣🥱🥱😫☹😲☹😤😱😱😱