Hey!! I have my examination in java on Wednesday and I really appreciate these videos. How much do you have left that you will go through? And how many videos will you have on objects and classes?
I did it this Way : /*Creating a menu program with the following options: a. Add Element b. Remove Element c. Display Elements d. Exit*/ import java.util.ArrayList; import java.util.Scanner; public class JAVA_106_FOR_EACH_LOOP_EX2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList num = new ArrayList(); while(true){ displayMenu(); int opt = sc.nextInt(); int n = 0; System.out.println(); if (opt == 1){ System.out.print("Enter an integer to add : "); n = sc.nextInt(); num.add(n); System.out.println(n + " is added."); continue; } if (opt == 2){ System.out.print("Enter an integer to remove : "); n = sc.nextInt(); if(num.contains(n)) { num.remove(Integer.valueOf(n)); System.out.println(n + " is removed." ); }else{ System.out.println(n + " is not found"); } continue; } if (opt == 3){ if(num.size() == 0){ System.out.println("Your Array is empty"); }else{ System.out.println("Your array is : " + num); } continue; } if(opt == 4){ break; } } System.out.println("Program Ended....!!!"); } public static void displayMenu(){ System.out.println(" 1. Add Element " + " 2. Remove Element" + " 3. Display Elements" + " 4. Exit"); System.out.print("Enter index of your Choice : "); } }
Hi Sir can you tell me that from where I got oop in c++ lecture for very beginner stage. As I am in 2nd semister of BS and yet not able to understand OOp because of online classes as they are not proved very helpful for me.So can you hep me bro for learning oop....As I am vey interested in programming but now I feel myself got tired from it!!
Very happy to see my sir on this topic
object oriented programming
Looking forward for the next topics
Sir, please upload all videos topics as fast as you can in java. We are waiting for the next topics.
thanks for uploading this. beats reading a textbook.
Hey!! I have my examination in java on Wednesday and I really appreciate these videos. How much do you have left that you will go through? And how many videos will you have on objects and classes?
the best channel I know so far
Understanding object and classes can get sooo overwhelming
For real
Your doing gods work sir !!! Bless you
Best teaching ever
I did it this Way :
/*Creating a menu program with the following options:
a. Add Element
b. Remove Element
c. Display Elements
d. Exit*/
import java.util.ArrayList;
import java.util.Scanner;
public class JAVA_106_FOR_EACH_LOOP_EX2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList num = new ArrayList();
while(true){
displayMenu();
int opt = sc.nextInt();
int n = 0;
System.out.println();
if (opt == 1){
System.out.print("Enter an integer to add : ");
n = sc.nextInt();
num.add(n);
System.out.println(n + " is added.");
continue;
}
if (opt == 2){
System.out.print("Enter an integer to remove : ");
n = sc.nextInt();
if(num.contains(n)) {
num.remove(Integer.valueOf(n));
System.out.println(n + " is removed." );
}else{
System.out.println(n + " is not found");
}
continue;
}
if (opt == 3){
if(num.size() == 0){
System.out.println("Your Array is empty");
}else{
System.out.println("Your array is : " + num);
}
continue;
}
if(opt == 4){
break;
}
}
System.out.println("Program Ended....!!!");
}
public static void displayMenu(){
System.out.println("
1. Add Element " + "
2. Remove Element" + "
3. Display Elements" + "
4. Exit");
System.out.print("Enter index of your Choice : ");
}
}
good this programme that was in previous video
Lesgooooo my man 😂😂😂ايوا بقيييييي يا جامد اول مرا اخد بالي منك
Good videos
Hi Sir can you tell me that from where I got oop in c++ lecture for very beginner stage. As I am in 2nd semister of BS and yet not able to understand OOp because of online classes as they are not proved very helpful for me.So can you hep me bro for learning oop....As I am vey interested in programming but now I feel myself got tired from it!!
Difference between classes and structures
Sir please complete the java course quickly....we are waiting😢😢
Plz upload discrete mathematics sir
you saved me thank you sm
Sir please make videos on c++
Thank you so much for you video
sir please complete the discreate mathematics series
Can you do a video on declaring classes in file names
can anyone tell me that in which video he has explianed "newkeyword use ?
Sir please tell which book l will refer for object oriented with java language
which one book do you use ?
Sir do python and c course please
Awesome but would have been better if this video was at number 70 and around
What is deference between Class and Structure???
2:19
previous episodes were lively,, this episode is dark
Dubai or Russian ❤️
can you give a pdf of this slide
Cypher?
Please make a video in bilingual language...
Feels like a Russian teaching in English.
More like Middle eastern
I think this is a lebanese guy
@@jadbouhamdan5218chu men ay uni enta
It's 100% not russian
I wish I had watched this fucking video before the final, I wouldn't have had to fail.
First like and first comment
ha toh ????
I've exam in 30 mins ..
virst of all i love u oright
HABIBI!
are you from mother Russia?
Which accent is that? 🤔
Arabic
@@ابننجيب-ز5غwhat the freek bro it’s not Arabic
toooootlaaaaaaa
Complecated learn
Hiii
Pls improve ur accent... Very confusing
I think you are from Lebanon, I can tell by the accent
Yes