Assigment q2- package calculator; import java.util.Scanner; public class Hello { public static void main(String ar[]) {
System.out.println("enter two numbers"); Scanner input=new Scanner(System.in); int num1=input.nextInt(); int num2=input.nextInt(); System.out.println("1 for addition 2 for substraction 3 for multiplication 4 for division"); Scanner in=new Scanner(System.in); int choice=in.nextInt(); sample obj=new sample(); switch(choice) { case 1:int add=obj.sum(num1,num2); System.out.println("result:"+add); break; case 2:int red=obj.sub(num1,num2); System.out.println("result:"+red); break; case 3:int dob=obj.mal(num1,num2); System.out.println("result:"+dob); break; case 4:int sep=obj.div(num1,num2); System.out.println("result:"+sep); break; }
} } -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- class public class sample { int sum(int a,int b) { int c; c=a+b; return c; } int sub(int a,int b) { int c; c=a-b; return c; } int mal(int a,int b) { int c; c=a*b; return c; } int div(int a,int b) { int c; c=a/b; return c; }}
Oru base illat njn successfully part 7 vare aayi.... Kurache days aayi start cheytit, Ennalum enike manasilaakunnu...... Hats off to u sir. Thank you so much for creating such a channel....😇🙏
Programing was a dream to me when I was on my Intermediate, But on some basis I had to choose Bio , after that TBH I actually lost interest on everything, After finishing 12th because of Science I had so many Directions in front of me Here, But still luckily I had this thing for Programming deep inside of me so I choose Tech above my other options I decided going to a tech related course I am now B-Tech CSE 2nd year no idea what my teachers are explaining about c / java, But this man right here opened my love for programming and got me through that even the newbies can Do it! Man Hats off to you and your team ~ Keep up the Good Work!!
Your Programme Co-Ordinator Shimna Aswin Is Doing A Great Job. She Will Reply Within 5 Minutes After Asking A Doubt. She Is A Great Employee For Your Company🙂
default: System.out.println("Your have Entered Wrong Choice");
} } }
o/p Enter First Number 30 Enter Second Number 70 Choice are: 1.Addition 2.Subtraction 3.Multiplication 4.Division Enter your Choice: 1 Result is :100 Enter First Number 20 Enter Second Number 10 Choice are: 1.Addition 2.Subtraction 3.Multiplication 4.Division Enter your Choice: 2 Result is:10 Enter First Number 2 Enter Second Number 5 Choice are: 1.Addition 2.Subtraction 3.Multiplication 4.Division Enter your Choice: 3 Result is:10 Enter First Number 50 Enter Second Number 50 Choice are: 1.Addition 2.Subtraction 3.Multiplication 4.Division Enter your Choice: 4 Resut is:1 Enter First Number 17 Enter Second Number 30 Choice are: 1.Addition 2.Subtraction 3.Multiplication 4.Division Enter your Choice: 5 Your have Entered Wrong Choice
Bro you got the right answer but this is not the assignment. The program should contain 4 functions and using the class object we should call those functions.
Note if you get error while coding Pls check 1 wheather s in System.out Is capital letter 2 wheather I in nextInt(); Is capital or not Etc........ (Tips for beginners😁)
Coding താല്പര്യം തോന്നി computer commerce എടുത്തപ്പോൾ വേണ്ടില്ലായിരുന്നു എന്നായിരുന്നു. പ്രാക്ടിക്കൽ എക്സാമിന് ഒക്കെ കാണാതെയാണ് പഠിച്ച എഴുതിയത്. ഇത്രയും സിമ്പിളായിപഠിക്കാൻ പറ്റും എന്ന് വിചാരിച്ചില്ല ഇതിന് സഹായിച്ച സാറിനും സാറിൻറെ ഒപ്പം ഉള്ളവർക്കും ഒരുപാട് നന്ദി❤️❤️❤️❤️❤️❤️❤️.
Assignment 7.2 import java.util.Scanner; public class MathsChoice { public static void main(String su[]) { Scanner val = new Scanner(System.in); System.out.println("Enter 2 Values"); int num1 = val.nextInt(); int num2 = val.nextInt(); System.out.print(" 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division Enter Your Choice: "); selection s1 = new selection(); int choice = val.nextInt(); if (choice == 1) { s1.sum(num1, num2); } else if (choice == 2) { s1.sub(num1, num2); } else if (choice == 3) { s1.multi(num1, num2); } else if (choice == 4) { s1.div(num1, num2); } else { System.out.println("fool!!!"); } } } class selection { int c; void sum(int a, int b) { c = a + b; System.out.println("Result is: " + c); } void sub(int a, int b) { c = a - b; System.out.println("Result is: " + c); } void multi(int a, int b) { c = a * b; System.out.println("Result is: " + c); } void div(float a, float b) { float c = a / b; System.out.println("Result is: " + c); } }
Assignment :1 import java.util.Scanner; public class Prime { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println("Enter a number :"); int Num = sc.nextInt(); int flag=0;
vallaatha chaithaayipoyi.. maahn a.x=10... adyam full variablin value koduthernnath variable dot (.) vachiternnath.. last sum kanunna prblathil.. int a=10.. int kerivann pettann onn parayarnn athoode🤝 classil alla objectilaan
Assignment 7.2 switch case import java.util.Scanner; public class MathsChoice { public static void main(String su[]) { Scanner val = new Scanner(System.in); System.out.println("Enter 2 Values"); int num1 = val.nextInt(); int num2 = val.nextInt(); System.out.print(" 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division Enter Your Choice: "); selection s1 = new selection(); int choice = val.nextInt(); switch (choice){ case 1: s1.sum(num1, num2); break; case 2: s1.sub(num1,num2); break; case 3: s1.multi(num1,num2); break; case 4: s1.div(num1,num2); break; default: System.out.println("fool!!!");} } } class selection { int c; void sum(int a, int b) { c = a + b; System.out.println("Result is: " + c); } void sub(int a, int b) { c = a - b; System.out.println("Result is: " + c); } void multi(int a, int b) { c = a * b; System.out.println("Result is: " + c); } void div(float a, float b) { float c = a / b; System.out.println("Result is: " + c); } }
Should create a class object and call the appropriate function as user prefers in the main function ithinte meaning enthuva object enna class undakiyitt athil addition(), substraction(), multiplication() and division() enna function undaki ennit main functionil user kodukunna preference anusarich main ill call cheyuka ith ano
Assignment 7.1 Q) Write a Java Program to Check User Entered Number is Prime or not ? //Default Package gets Error while Run the program, So i Created Custom one called 'prime', when creating Class;☺ Answer 👇 package prime; import java.util.Scanner; public class Prime { public static void main(String ar[]) { Scanner sc=new Scanner(System.in); System.out.println("Enter a Number"); int Number=sc.nextInt(); int flag=0; for(int i=2;i
Assaignment 2 ______________ import java.util.Scanner; public class MathematicalOperations { public static void main(String ar[]) { System.out.print("Enter 2 Numbers :"); Scanner s=new Scanner(System.in); int num1=s.nextInt(); int num2=s.nextInt(); System.out.println("Enter 1 For Addition"+ " Enter 2 For Substraction"+ " Enter 3 For Multiplication"+ " Enter 4 For Division"); System.out.print("Choose An Option :"); int c=s.nextInt(); Function f1=new Function(); if (c==1) { f1.addition(num1,num2); } else if (c==2) { f1.substraction(num1,num2); } else if (c==2) { f1.multiplication(num1,num2); } else if (c==4){ f1.division(num1,num2); } else { System.out.println("---Invalid Option---"); } } } CLASS "Name : Function" _______ public class Function { void addition (int num1, int num2){ int add=num1+num2; System.out.println("Result Is : "+add); } void substraction (int num1, int num2) { int sub=num1-num2; System.out.println(""+sub); } void multiplication (int num1, int num2) { int mul=num1*num2; System.out.println(""+mul); } void division (int num1, int num2) { int div=num1/num2; System.out.println(""+div); } }
Example of class and object _________________ package carmodel; import java.util.Scanner; public class smn { public static void main(String a[]) { Scanner num=new Scanner(System.in);
Car volkswagen =new Car(); Car toyota=new Car(); volkswagen.model=2012; volkswagen.name= "polo"; toyota.name="landcruiser"; System.out.println("enter model number"); int modeln =num.nextInt(); toyota.model= modeln;
System.out.println("which vehicle whant to check "); System.out.println("1:volkswagen "); System.out.println("2:toyota "); int choice =num.nextInt(); switch(choice) { case 1 : System.out.println("name is "+volkswagen.name); System.out.println("model is "+volkswagen.model); if(volkswagen.model>2021) { System.out.println("this car is new "); }else { System.out.println("this car is old"); } break; case 2: System.out.println("name is "+toyota.name); System.out.println("model is "+toyota.model); if(toyota.model>2021) {System.out.println("this car is new "); }else {System.out.println("this car is old"); } }
} }class Car{ int model; String name; } ______________________ enter model number 2020 which vehicle whant to check 1:volkswagen 2:toyota 1 name is polo model is 2012 this car is old
Assignment 2: import java.util.Scanner; public class MathematicalOperation { public static void main(String ar[]) { Scanner sc=new Scanner(System.in); System.out.println("Enter 2 numbers : "); int num1=sc.nextInt(); int num2=sc.nextInt(); System.out.println(" 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division \t Enter your selection: "); Function f1 = new Function (); int choice =sc.nextInt(); switch(choice) { case 1: f1.sum(num1,num2); break; case 2: f1.sub(num1,num2); break; case 3: f1.multi(num1,num2); break; case 4: f1.divi(num1, num2); break; default: System.out.println("Wrong selection"); } }} o/p Enter 2 numbers : 2 3 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division Enter your selection: 1 Resullt is: 5
Assaignment 1 import java.util.Scanner; public class prime { public static void main(String ar[]) { System.out.print("Enter A Number :"); Scanner s=new Scanner(System.in); int a=s.nextInt(); int flag=0; for(int i=2; i
ASSIGNMENT NO:1 import java.util.Scanner; public class Prime { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the number"); int num1 = sc.nextInt(); int flag=0; for(int i=2;i
***Assignment 2 *** ***Type With OOP*** import java.util.Scanner; public class MainFunction { public static void main(String ar[]) { // Conditions From ConditionClass ConditionClass CS1 = new ConditionClass(); // Get Value From User System.out.println("Enter 2 Numbers : "); Scanner val = new Scanner(System.in); // Get Value InTo inp1 and inp2 int inp1 = val.nextInt(); int inp2 = val.nextInt(); // User Choice System.out.println("Choose One 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division"); int choice = val.nextInt(); // Conditions switch (choice) { case 1: { int sum = CS1.add(inp1, inp2); System.out.println("Result : "+sum); break; } case 2: { int sub = CS1.sub(inp1, inp2); System.out.println("Result : "+sub); break; } case 3: { int mul = CS1.mul(inp1, inp2); System.out.println("Result : "+mul); break; } case 4: { int divi = CS1.divi(inp1, inp2); System.out.println("Result : "+divi); break; } default: System.out.println("Choose One Option From 1 To 4 : Try Again"); }
} } // Object// public class ConditionClass { static int add(int num1,int num2) { int sum = num1 + num2; return sum; }
static int sub(int num1,int num2) { int sub = num1 - num2; return sub; }
static int mul(int num1,int num2) { int mul = num1 * num2; return mul; }
static int divi(int num1,int num2) { int divi = num1 / num2; return divi; } }
**Assignment 2 A ** **Type Without OOP** import java.util.Scanner; public class FunctionSample { public static void main(String ar[]) { System.out.println("Enter 2 Numbers : "); Scanner nums = new Scanner(System.in);
int num1 = nums.nextInt(); int num2 = nums.nextInt();
System.out.println("Choose One Condition 1 for Addition 2 for Subtraction 3 for Multiplication 4 Division Numbers : "); Scanner choose = new Scanner(System.in);
int choice = choose.nextInt();
switch (choice) { case 1: { int add = addition(num1, num2); System.out.println("Result : "+add); break; } case 2: { int sub = subtraction(num1, num2); System.out.println("Result : "+sub); break; } case 3: { int multi = multiplication(num1, num2); System.out.println("Result : "+multi); break; } case 4: { int divi = division(num1, num2); System.out.println("Result : "+divi); break; } default: System.out.println("Choose Anyone Between 1 To 4 : Try Again"); }
}
static int addition(int num1,int num2) { int sum = num1 + num2; return sum; } static int subtraction(int num1,int num2) { int sub = num1 - num2; return sub; } static int multiplication(int num1,int num2) { int multi = num1 * num2; return multi; } static int division(int num1,int num2) { int divi = num1 / num2; return divi; }
sir value store cheyth run cheyuboll ignee kanikunnu. Exception in thread "main" java.lang.Error: Unresolved compilation problems: scanner cannot be resolved to a type scanner cannot be resolved to a type system cannot be resolved to a variable at Sample.main(Sample.java:6)
Assibnment 1: import java.util.Scanner; public class prime { public static void main(String a[]) { System.out.println("enter a number"); Scanner s=new Scanner(System.in); int num=s.nextInt(); int flag=0; for(int i=1;i
Hi Sir ...Could you explain how to write arrays in Java programming? If you could explain it, it would be very helpful. Your classes are amazing. I´m from Mavelikara and now I live in Spain and I´m a musician. I´ve been thinking to study coding for many years. When I started watching your videos, I could fulffill my ambition forever. Especially at this time, I have to find another job in order to stay here as there are no live music programms. You really give me a good path in my life. Millions of Thanks.
sir, I have completed watching 7/10 your 100k coding challenge !! these videos are very useful for me!! I am soo thankful to you !! I would like to ask you one doubt!! since from the beginning I am practicing using online gdb compiler !! but from the bigining of java I am facing some trouble in using that especially sample object problem!! can you recommend some better java compiler in online
@@naufanff8759 Try cheythittilla bro ith Eclipse IDE ila cheythe. Pakshe Onlinegdb il class creation okke pattum njn ath use aakkiyittillathond crct way ariyilla.
_Menu Driven Calc Assaignment_ public class Sample { public static void main(String ar[]) { System.out.println("Enter Two Numbers"); Scanner s=new Scanner(System.in);
int num1=s.nextInt(); int num2=s.nextInt();
System.out.println("1 for Addition 2 for Substractin 3 for multiplication 4 for division"); try (Scanner in = new Scanner(System.in)) { Hello s1= new Hello();
I can't find File>New > Java Project ( In Java - Eclipese IDE) i have download and install the file (eclipse-jee-2020-06-R-win32-x86_64) System shows File>New>Maven Project shows Please assist Waiting for your kindness at the earliest
prime or not in java import java.util.Scanner; public class Prime { public static void main(String ai[]) { Scanner s=new Scanner(System.in); int a,flag=0; System.out.print("enter a no "); a=s.nextInt(); for(int i=2;i
ജോലി കഴിഞ്ഞു രാത്രി ഒരു മണി കഴിഞ്ഞിട്ടും ഉറങ്ങാതെ നമുക്ക് വേണ്ടി ക്ലാസ് എടുക്കുന്ന ആ ഔദാര്യത്തിന് ഒരുപാട് നന്ദി
@Shepherd Gus ❤️
❤️
Hats Off ...
Nikhil sir and team
Pulli self promote cheyyunnathanne mister allathe autharyam alla, kashttam
kasargod level cringe
Sir faceill apolum oru ചിരി end
Aa ചിരി ann enna class kanan പ്രേരിപ്പിക്കുന്നത്. Some postive feelings 🙏 thanks nikhil sir
🥰
Geany IDE... Java.. Php.. Okke support cheyyuoo
Adhe .. very interesting and otum bore adupikunila
Covid timum college um illa online class onnum manasilakunnumilla. Recommended by a friend Crossroads Bayankara helpful anu ..Thank you so much🙏
Me also💕💕💕💕
39:45 The sum should be 55.
Either use "i
@@ks-subinraj4754 sure
njn 1 week ayullu sir inte channel watch cheyan tudangiyitt .really helpful.100k coding challenge cheytha timeil undavan kazhinjillallo enna oru sangadm mathrm und.njn part 7il ethy nilkkunnu.ella viedosum intresting anu.thank you sir.
Assigment q2-
package calculator;
import java.util.Scanner;
public class Hello {
public static void main(String ar[]) {
System.out.println("enter two numbers");
Scanner input=new Scanner(System.in);
int num1=input.nextInt();
int num2=input.nextInt();
System.out.println("1 for addition
2 for substraction
3 for multiplication
4 for division");
Scanner in=new Scanner(System.in);
int choice=in.nextInt();
sample obj=new sample();
switch(choice) {
case 1:int add=obj.sum(num1,num2);
System.out.println("result:"+add);
break;
case 2:int red=obj.sub(num1,num2);
System.out.println("result:"+red);
break;
case 3:int dob=obj.mal(num1,num2);
System.out.println("result:"+dob);
break;
case 4:int sep=obj.div(num1,num2);
System.out.println("result:"+sep);
break;
}
}
}
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
class
public class sample {
int sum(int a,int b) {
int c;
c=a+b;
return c;
}
int sub(int a,int b) {
int c;
c=a-b;
return c;
}
int mal(int a,int b) {
int c;
c=a*b;
return c;
}
int div(int a,int b) {
int c;
c=a/b;
return c;
}}
Subscribe um supporting deserve cheyunna malayalathile oru good youtuber aan Ninghal... Great hard working..
Superb way of teaching...Really easy to grasp the concepts through your explanation...Thank you Sir
Oru base illat njn successfully part 7 vare aayi.... Kurache days aayi start cheytit, Ennalum enike manasilaakunnu......
Hats off to u sir.
Thank you so much for creating such a channel....😇🙏
Its our pleasure ❤️
Keep going and all the very best ❤️
@@BrototypeMalayalam of course sir...
Job kittiyit for sure I will post a comment...
@@aparnasnair5143assignment kudi chy
Enthaayi job set aayo
@@aparnasnair5143 job kitiyo
Programing was a dream to me when I was on my Intermediate, But on some basis I had to choose Bio , after that TBH I actually lost interest on everything, After finishing 12th because of Science I had so many Directions in front of me Here, But still luckily I had this thing for Programming deep inside of me so I choose Tech above my other options I decided going to a tech related course I am now B-Tech CSE 2nd year no idea what my teachers are explaining about c / java, But this man right here opened my love for programming and got me through that even the newbies can Do it! Man Hats off to you and your team ~ Keep up the Good Work!!
Thank you so much man ❤️
Keep going 💪🏼
Discipline =Freedom
Please mention the upper cases of S in "String" and "System". I took half a day to figure it out , coz I am entirely new to java.
Okay
Tnx man. ഒരു മണിക്കൂറായിട്ട് ഇതിൽ കുടുങ്ങി നിക്കായിരുന്നു. ഇപ്പോഴാണ് കമെന്റ് നോക്കിയത്. ഇപ്പൊ റെഡിയായി
Tnx bro
Thanks man
Thanks bro .you just saved my whole day..
thanks for brototype,
especially for nikhil sir for easy and understandable classes
Your Programme Co-Ordinator Shimna Aswin Is Doing A Great Job.
She Will Reply Within 5 Minutes After Asking A Doubt. She Is A Great Employee For Your Company🙂
Shimna aanu ee company ile main! 😀
@@BrototypeMalayalam Aaha😁👍
Non CS batch padich infosysil join chyth........Trainingil avr padipicha programming onnum manasilakathe ...joli resign chythalon karuthi irunapo...avasaana sremam aayit youtubil keri ee video kandatha.....Adipoli Class🙌.....Concept ellam nalla clear aayii....Thankuu so much.
Eth branch ayrnu
/* Arthamatic operation in java using switch */
public class Calc {
public static void main(String arg[]) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter First Number");
int num1=sc.nextInt();
System.out.println("Enter Second Number");
int num2=sc.nextInt();
System.out.println("Choice are:");
System.out.println("1.Addition");
System.out.println("2.Subtraction");
System.out.println("3.Multiplication");
System.out.println("4.Division");
System.out.println("Enter your Choice:");
int ch=sc.nextInt();
switch (ch) {
case 1:
System.out.println("Result is :" + (num1 + num2));
break;
case 2:
System.out.println("Result is:"+ (num1 - num2));
break;
case 3:
System.out.println("Result is:"+ (num1 * num2));
break;
case 4:
System.out.println("Resut is:"+ (num1 / num2));
break;
default:
System.out.println("Your have Entered Wrong Choice");
}
}
}
o/p
Enter First Number
30
Enter Second Number
70
Choice are:
1.Addition
2.Subtraction
3.Multiplication
4.Division
Enter your Choice:
1
Result is :100
Enter First Number
20
Enter Second Number
10
Choice are:
1.Addition
2.Subtraction
3.Multiplication
4.Division
Enter your Choice:
2
Result is:10
Enter First Number
2
Enter Second Number
5
Choice are:
1.Addition
2.Subtraction
3.Multiplication
4.Division
Enter your Choice:
3
Result is:10
Enter First Number
50
Enter Second Number
50
Choice are:
1.Addition
2.Subtraction
3.Multiplication
4.Division
Enter your Choice:
4
Resut is:1
Enter First Number
17
Enter Second Number
30
Choice are:
1.Addition
2.Subtraction
3.Multiplication
4.Division
Enter your Choice:
5
Your have Entered Wrong Choice
Omg 😲
@@shameemali7275 wow
Bro you got the right answer but this is not the assignment. The program should contain 4 functions and using the class object we should call those functions.
Note if you get error while coding
Pls check
1 wheather s in System.out
Is capital letter
2 wheather I in nextInt();
Is capital or not
Etc........
(Tips for beginners😁)
Tysm❤️
Tqq uu😅😍
I really loved that point,indication of growing !!
Super class.👍 i don't had understand java when sir taken class. Brother you are doing great job.🤩 Now iam understand what is java. Great work💖
Thanks bro
Please add android studio app development course. It would be great.
Hello bro app developer anno
#1:14:41
A Big Salute to you Sir🥰❤
Chiri ang ishtay... Positive vibes.😊❣️
പ്രകാശം പരക്കട്ടെ ✨
veruthee collegilokke poyi time wase aakki....poli class..... thank youuuu
its our pleasure ♥️
1:14:30 Huge respect for the efforts u took 🙏🙏
Coding താല്പര്യം തോന്നി computer commerce എടുത്തപ്പോൾ വേണ്ടില്ലായിരുന്നു എന്നായിരുന്നു.
പ്രാക്ടിക്കൽ എക്സാമിന് ഒക്കെ കാണാതെയാണ് പഠിച്ച എഴുതിയത്.
ഇത്രയും സിമ്പിളായിപഠിക്കാൻ പറ്റും എന്ന് വിചാരിച്ചില്ല ഇതിന് സഹായിച്ച സാറിനും സാറിൻറെ ഒപ്പം ഉള്ളവർക്കും ഒരുപാട് നന്ദി❤️❤️❤️❤️❤️❤️❤️.
Its our pleasure helping you to learn ❤️
Assignment 7.2
import java.util.Scanner;
public class MathsChoice {
public static void main(String su[]) {
Scanner val = new Scanner(System.in);
System.out.println("Enter 2 Values");
int num1 = val.nextInt();
int num2 = val.nextInt();
System.out.print(" 1 for Addition
2 for Subtraction
3 for Multiplication
4 for Division
Enter Your Choice: ");
selection s1 = new selection();
int choice = val.nextInt();
if (choice == 1) {
s1.sum(num1, num2);
} else if (choice == 2) {
s1.sub(num1, num2);
} else if (choice == 3) {
s1.multi(num1, num2);
} else if (choice == 4) {
s1.div(num1, num2);
} else {
System.out.println("fool!!!");
}
}
}
class selection {
int c;
void sum(int a, int b) {
c = a + b;
System.out.println("Result is: " + c);
}
void sub(int a, int b) {
c = a - b;
System.out.println("Result is: " + c);
}
void multi(int a, int b) {
c = a * b;
System.out.println("Result is: " + c);
}
void div(float a, float b) {
float c = a / b;
System.out.println("Result is: " + c);
}
}
Hlo ningal online gdb ano use cheyyunne
@@Ihsan-qd2sl edo than online gdb aanoo
Thank you sir, actually due to the mistake in the (obj1 display x) obj 1 calculate sum i understood how it is
👍🏼👍🏼
Good Oop tutorial i have ever seen. Thank you guys. You made it.
🥰
Athyam enikku onnum manasilayailla pinne veedum kandu manasilayailla pinne kandu kandu manasilaye
Ella karyavum parayunnudu pakshe nammal kelkkathathannu
Ippe manasilayi
NEVER GIVE UP 🔥🔥🔥
pinnella, ath athrollu 💪
your videos are very helpful sir , thank you so much!!
Coming from DS coding challenge...
Assignment :1
import java.util.Scanner;
public class Prime {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number :");
int Num = sc.nextInt();
int flag=0;
for(int i=2;i
Vallare systematic aayya presentation. Easy-going conversation style. Athe polle deep content. Thank you.
Welcome ❤️
assignments 7 two qst sum finish cheythu. thank you
100% Helpfull you guys are awsome😍
its our pleasure 💖
Oru raksha illatha class nalla rethiyil confidence kitunund ee videos kanumbol
thank you, keep going 💪🏼
Night kashtapattu program padippikkunnathinu big thanks 🥰
thank you
Best java tutorial.. Thnku soo much👏
Another adipoli ashan like sharique sir
Thank you From Bottom of Hearts 😢❤
vallaatha chaithaayipoyi.. maahn
a.x=10...
adyam full variablin value koduthernnath variable dot (.) vachiternnath..
last sum kanunna prblathil..
int a=10..
int kerivann pettann onn parayarnn athoode🤝
classil alla objectilaan
Thalaivaa.....🔥🔥🙏
Assignment 7.2 switch case
import java.util.Scanner;
public class MathsChoice {
public static void main(String su[]) {
Scanner val = new Scanner(System.in);
System.out.println("Enter 2 Values");
int num1 = val.nextInt();
int num2 = val.nextInt();
System.out.print(" 1 for Addition
2 for Subtraction
3 for Multiplication
4 for Division
Enter Your Choice: ");
selection s1 = new selection();
int choice = val.nextInt();
switch (choice){
case 1:
s1.sum(num1, num2);
break;
case 2:
s1.sub(num1,num2);
break;
case 3:
s1.multi(num1,num2);
break;
case 4:
s1.div(num1,num2);
break;
default:
System.out.println("fool!!!");}
}
}
class selection {
int c;
void sum(int a, int b) {
c = a + b;
System.out.println("Result is: " + c);
}
void sub(int a, int b) {
c = a - b;
System.out.println("Result is: " + c);
}
void multi(int a, int b) {
c = a * b;
System.out.println("Result is: " + c);
}
void div(float a, float b) {
float c = a / b;
System.out.println("Result is: " + c);
}
}
Thank you Roshan&Ameer sir..simple aayi doubts ellam clear cheyth thannuuu...free course aayittum ningal ethrakkum assist cheyyunuu!!!..Thank u so much....
❤️❤️❤️
Oru rekshyum illa...super class
Thanks for the video, keep going!
You r great sir ♥️
45:36 int a and b entha ath evideya use akkiyathh
Join our Telegram group, our team will help you brototype.com/learningclub/org/fullstack/?ref=youtube%20malayalam
Part 7 completed ❤️❤️
Great, keep going 💪🏼
Thank u soo much❤️
Java ഒരു ബാലികേറാമല ആയിരുന്നു. Ithukanumbo ആണ് എല്ലാം മനസ്സിലാകുന്നത്..
❤️
Should create a class object and call the appropriate function as user prefers in the main function ithinte meaning enthuva
object enna class undakiyitt athil addition(), substraction(), multiplication() and division() enna function undaki ennit main functionil user kodukunna preference anusarich main ill call cheyuka ith ano
very useful class ,thank you
please add details about array declaration and all other feature in java
I will watch untill i will get an idea about thiss
Assignment 7.1
Q) Write a Java Program to Check User Entered Number is Prime or not ?
//Default Package gets Error while Run the program, So i Created Custom one called 'prime', when creating Class;☺
Answer 👇
package prime;
import java.util.Scanner;
public class Prime {
public static void main(String ar[]) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter a Number");
int Number=sc.nextInt();
int flag=0;
for(int i=2;i
Bro 1st assignment wrongaanu
Assaignment 2
______________
import java.util.Scanner;
public class MathematicalOperations {
public static void main(String ar[]) {
System.out.print("Enter 2 Numbers :");
Scanner s=new Scanner(System.in);
int num1=s.nextInt();
int num2=s.nextInt();
System.out.println("Enter 1 For Addition"+ "
Enter 2 For Substraction"+ "
Enter 3 For Multiplication"+ "
Enter 4 For Division");
System.out.print("Choose An Option :");
int c=s.nextInt();
Function f1=new Function();
if (c==1) {
f1.addition(num1,num2);
}
else if (c==2) {
f1.substraction(num1,num2);
}
else if (c==2) {
f1.multiplication(num1,num2);
}
else if (c==4){
f1.division(num1,num2);
}
else {
System.out.println("---Invalid Option---");
}
}
}
CLASS "Name : Function"
_______
public class Function {
void addition (int num1, int num2){
int add=num1+num2;
System.out.println("Result Is : "+add);
}
void substraction (int num1, int num2) {
int sub=num1-num2;
System.out.println(""+sub);
}
void multiplication (int num1, int num2) {
int mul=num1*num2;
System.out.println(""+mul);
}
void division (int num1, int num2) {
int div=num1/num2;
System.out.println(""+div);
}
}
Assignment 1:
import java.util.Scanner;
public class PrimeNumberOrNot {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter a number");
int Number=sc.nextInt();
boolean isPrime=true;
for(int i=2;i
Which channel
Mention name
Wow! Finally, I completed this video. Thank you so much for your help.......
arre wwaah 🤩🤩 good job
Old eclipse uninstall cheytho??
By reading the description I understand that nikhil bro Isa sambavam
♥️♥️♥️
Example of class and object
_________________
package carmodel;
import java.util.Scanner;
public class smn {
public static void main(String a[]) {
Scanner num=new Scanner(System.in);
Car volkswagen =new Car();
Car toyota=new Car();
volkswagen.model=2012;
volkswagen.name= "polo";
toyota.name="landcruiser";
System.out.println("enter model number");
int modeln =num.nextInt();
toyota.model= modeln;
System.out.println("which vehicle whant to check ");
System.out.println("1:volkswagen ");
System.out.println("2:toyota ");
int choice =num.nextInt();
switch(choice) {
case 1 :
System.out.println("name is "+volkswagen.name);
System.out.println("model is "+volkswagen.model);
if(volkswagen.model>2021) {
System.out.println("this car is new ");
}else {
System.out.println("this car is old");
}
break;
case 2:
System.out.println("name is "+toyota.name);
System.out.println("model is "+toyota.model);
if(toyota.model>2021) {System.out.println("this car is new ");
}else {System.out.println("this car is old");
}
}
}
}class Car{
int model;
String name;
}
______________________
enter model number
2020
which vehicle whant to check
1:volkswagen
2:toyota
1
name is polo
model is 2012
this car is old
Super class... Thank you sir
you’re welcome ♥️
codeing padikkunnathinekalum paade IDE instal cheyyunnathanu
😅Join the Learning Club, our tech support will help you. Join here: brototype.com/learningclub/org/fullstack/?ref=ytdescription
Sathyam🤧
Correct 💯🥵
@@ahmedzuhair4355 Use VS code
Arhe
Thank you brototype. Its really helping out. hoping to finish this series in one more day.
wonderful, join our telegram group if you haven't joined yet. so you can get free tech support to clear the doubts as well. join here :bit.ly/3QRbrri
ഇതിനെക്കൾ നന്നായി oops concept ഒരാൾക്ക് പറഞ്ഞ് തരാൻ പറ്റുമെന്ന് എനിക്ക് തോന്നുന്നില്ല...Only things I wanto say You sir "THANKYOU"
🥰🥰🥰
breakpoint set cheithu debug cheithu kanichal concept and flow kore koode easy aayi manasilaaville.
Assignment 2:
import java.util.Scanner;
public class MathematicalOperation {
public static void main(String ar[]) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter 2 numbers : ");
int num1=sc.nextInt();
int num2=sc.nextInt();
System.out.println("
1 for Addition
2 for Subtraction
3 for Multiplication
4 for Division
\t Enter your selection: ");
Function f1 = new Function ();
int choice =sc.nextInt();
switch(choice) {
case 1:
f1.sum(num1,num2);
break;
case 2:
f1.sub(num1,num2);
break;
case 3:
f1.multi(num1,num2);
break;
case 4:
f1.divi(num1, num2);
break;
default:
System.out.println("Wrong selection");
}
}}
o/p
Enter 2 numbers :
2
3
1 for Addition
2 for Subtraction
3 for Multiplication
4 for Division
Enter your selection:
1
Resullt is:
5
Hloo
Assaignment 1
import java.util.Scanner;
public class prime {
public static void main(String ar[]) {
System.out.print("Enter A Number :");
Scanner s=new Scanner(System.in);
int a=s.nextInt();
int flag=0;
for(int i=2; i
Challenging and interesting 🔥🔥
sir onlinegdb cheyyunnavar just java select cheythaal mathiyoo athoo java rhino angane eetheelm aano
Join our Telegram group, our team will help you. Join here :brototype.com
How about this?
Class-> A family
Object-> One of the family members
🙂
correct
No i think..
Object member1,member2 etc
Then variable is name,age,gender,etc
Right?
ASSIGNMENT NO:1
import java.util.Scanner;
public class Prime {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number");
int num1 = sc.nextInt();
int flag=0;
for(int i=2;i
Hii
Can you please consider automation testing classes soon
assignment :1
public class Assignment {
int n,i,flag=0;
void prime() {
Scanner s=new Scanner(System.in);
System.out.println("enter number");
n=s.nextInt();
if((n==0)||(n==1)) {
System.out.println("not prime");
}else {
for(i=2;i
***Assignment 2 ***
***Type With OOP***
import java.util.Scanner;
public class MainFunction {
public static void main(String ar[]) {
// Conditions From ConditionClass
ConditionClass CS1 = new ConditionClass();
// Get Value From User
System.out.println("Enter 2 Numbers : ");
Scanner val = new Scanner(System.in);
// Get Value InTo inp1 and inp2
int inp1 = val.nextInt();
int inp2 = val.nextInt();
// User Choice
System.out.println("Choose One
1 for Addition
2 for Subtraction
3 for Multiplication
4 for Division");
int choice = val.nextInt();
// Conditions
switch (choice) {
case 1: {
int sum = CS1.add(inp1, inp2);
System.out.println("Result : "+sum);
break;
}
case 2: {
int sub = CS1.sub(inp1, inp2);
System.out.println("Result : "+sub);
break;
}
case 3: {
int mul = CS1.mul(inp1, inp2);
System.out.println("Result : "+mul);
break;
}
case 4: {
int divi = CS1.divi(inp1, inp2);
System.out.println("Result : "+divi);
break;
}
default:
System.out.println("Choose One Option From 1 To 4 : Try Again");
}
}
}
// Object//
public class ConditionClass {
static int add(int num1,int num2) {
int sum = num1 + num2;
return sum;
}
static int sub(int num1,int num2) {
int sub = num1 - num2;
return sub;
}
static int mul(int num1,int num2) {
int mul = num1 * num2;
return mul;
}
static int divi(int num1,int num2) {
int divi = num1 / num2;
return divi;
}
}
Great effort
sir, ingal super anu. thank you
Very helpful 👍
vere level dedication
**Assignment 2 A **
**Type Without OOP**
import java.util.Scanner;
public class FunctionSample {
public static void main(String ar[]) {
System.out.println("Enter 2 Numbers : ");
Scanner nums = new Scanner(System.in);
int num1 = nums.nextInt();
int num2 = nums.nextInt();
System.out.println("Choose One Condition
1 for Addition
2 for Subtraction
3 for Multiplication
4 Division Numbers : ");
Scanner choose = new Scanner(System.in);
int choice = choose.nextInt();
switch (choice) {
case 1: {
int add = addition(num1, num2);
System.out.println("Result : "+add);
break;
}
case 2: {
int sub = subtraction(num1, num2);
System.out.println("Result : "+sub);
break;
}
case 3: {
int multi = multiplication(num1, num2);
System.out.println("Result : "+multi);
break;
}
case 4: {
int divi = division(num1, num2);
System.out.println("Result : "+divi);
break;
}
default:
System.out.println("Choose Anyone Between 1 To 4 : Try Again");
}
}
static int addition(int num1,int num2) {
int sum = num1 + num2;
return sum;
}
static int subtraction(int num1,int num2) {
int sub = num1 - num2;
return sub;
}
static int multiplication(int num1,int num2) {
int multi = num1 * num2;
return multi;
}
static int division(int num1,int num2) {
int divi = num1 / num2;
return divi;
}
}
sir value store cheyth run cheyuboll
ignee kanikunnu.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
scanner cannot be resolved to a type
scanner cannot be resolved to a type
system cannot be resolved to a variable
at Sample.main(Sample.java:6)
Easy to understand...thank you so much bro...
❤️
Prime or Not :
import java.util.Scanner;
public class PrimeOrNot {
public static void main(String ar[]) {
System.out.println("Enter a number : ");
Scanner s=new Scanner(System.in);
int num=s.nextInt();
int flag=0;
for(int i=2; i
Idhil 4 koduthal prime enn answer kittum so I
Assibnment 1:
import java.util.Scanner;
public class prime {
public static void main(String a[])
{
System.out.println("enter a number");
Scanner s=new Scanner(System.in);
int num=s.nextInt();
int flag=0;
for(int i=1;i
perfect class .....
package menu;
import java.util.Scanner;
public class sample {
public static void main(String ar[]) {
Scanner c=new Scanner(System.in);
System.out.println("enter two numbers");
int a=c.nextInt();
int b=c.nextInt();
hello s=new hello();
System.out.println("choose a number 1.addition 2.multiplication 3.subtraction 4.division");
int r=c.nextInt();
if(r==1) {
s.addition(a,b);
}
else if(r==2){
s.multiplication(a,b);
}
else if(r==3){
s.subtraction(a, b);
}
else if(r==4){
s.division(a, b);
}
else{
System.out.println("enter a valid number");
}
}
}
package menu;
public class hello {
static void addition(int num1,int num2) {
int add;
add=num1+num2;
System.out.println("addition :"+add);
}
void multiplication(int num1,int num2) {
int mul;
mul=num1*num2;
System.out.println("multiplication :"+mul);
}
void subtraction(int num1,int num2) {
int sub;
sub=num1-num2;
System.out.println("subtraction :"+sub);
}
void division(int num1,int num2) {
int div;
div=num1/num2;
System.out.println("division :"+div);
}
}
package menu;
public class hello {
static void addition(int num1,int num2) {
int add;
add=num1+num2;
System.out.println("addition :"+add);
}
void multiplication(int num1,int num2) {
int mul;
mul=num1*num2;
System.out.println("multiplication :"+mul);
}
void subtraction(int num1,int num2) {
int sub;
sub=num1-num2;
System.out.println("subtraction :"+sub);
}
void division(int num1,int num2) {
int div;
div=num1/num2;
System.out.println("division :"+div);
}
}
Hi Sir ...Could you explain how to write arrays in Java programming? If you could explain it, it would be very helpful. Your classes are amazing. I´m from Mavelikara and now I live in Spain and I´m a musician. I´ve been thinking to study coding for many years. When I started watching your videos, I could fulffill my ambition forever. Especially at this time, I have to find another job in order to stay here as there are no live music programms. You really give me a good path in my life. Millions of Thanks.
Array declaration and instantiation in java
int a[]=new int[5];
Its our pleasure to help you guys to learn.
All the best ❤️
@@BrototypeMalayalam Thanks a lot for replaying me.....Best Regards.......
1:14:34 😘😘🥰🥰
sir, I have completed watching 7/10 your 100k coding challenge !! these videos are very useful for me!! I am soo thankful to you !!
I would like to ask you one doubt!! since from the beginning I am practicing using online gdb compiler !!
but from the bigining of java I am facing some trouble in using that especially sample object problem!!
can you recommend some better java compiler in online
Just search for online compiler on Google, and pick one which suits you
Assignment Q2:-
import java.util.Scanner;
public class Basic {
public static void main(String ar[]) {
Scanner s=new Scanner(System.in);
System.out.println("Enter two numbers");
int num1=s.nextInt();
int num2=s.nextInt();
System.out.println("Choice:
1-Addition
2-Subtraction
3-Multiplication
4-Division");
int choice=s.nextInt();
Operation o=new Operation();
switch(choice) {
case 1:
o.sum(num1, num2);
break;
case 2:
o.sub(num1, num2);
break;
case 3:
o.mul(num1, num2);
break;
case 4:
o.div(num1, num2);
break;
default:
System.out.println("Wrong choice");
}
}
}
(New Class):-
public class Operation {
int sum(int a, int b){
int c=a+b;
System.out.println("Result:"+c);
return c;
}
int sub(int a, int b) {
int c=a-b;
System.out.println("Result:"+c);
return c;
}
int mul(int a,int b) {
int c=a*b;
System.out.println("Result"+c);
return c;
}
float div(float a, float b) {
float c=a/b;
System.out.println("Result:"+c);
return c;
}
}
Bro ith phone il onlinegdb vazhi cheyyaan pattuo
@@naufanff8759 Try cheythittilla bro ith Eclipse IDE ila cheythe. Pakshe Onlinegdb il class creation okke pattum njn ath use aakkiyittillathond crct way ariyilla.
@@naufanff8759 bro play storil c-compiler enna oru app und ... Athil coding cheyyan kayiyum
1:14:40 ived ethiyappo samyam ethrayinn nokkunna njan 2.50 am
_Menu Driven Calc Assaignment_
public class Sample {
public static void main(String ar[]) {
System.out.println("Enter Two Numbers");
Scanner s=new Scanner(System.in);
int num1=s.nextInt();
int num2=s.nextInt();
System.out.println("1 for Addition
2 for Substractin
3 for multiplication
4 for division");
try (Scanner in = new Scanner(System.in)) {
Hello s1= new Hello();
int r=in.nextInt();
if(r==1) {
Hello.addition(num1,num2);
}
else if(r==2) {
s1.substraction(num1,num2);
}
else if(r==3) {
s1.multiplication(num1,num2);
}
else if(r==4) {
s1.division(num1,num2);
}
else {
System.out.println("enter a valid number");
}
}
}
------------------------------------------------------------------------------------------------------------
_class_
static void addition(int num1,int num2) {
int add;
add=num1+num2;
System.out.println("Result is:"+add);
}
void substraction(int num1,int num2) {
int sub;
sub=num1-num2;
System.out.println("Result is:");
}
void multiplication(int num1,int num2) {
int mul;
mul=num1*num2;
System.out.println("Result is:"+mul);
}
void division(int num1,int num2) {
int div;
div=num1/num2;
System.out.println("Result is:"+div);
}
I can't find File>New > Java Project ( In Java - Eclipese IDE)
i have download and install the file (eclipse-jee-2020-06-R-win32-x86_64)
System shows File>New>Maven Project shows
Please assist
Waiting for your kindness at the earliest
Got it. Thanks a lot
import java.util.Scanner;
public class First {
public static void main(String ar[]) {
int iFirst=0, iSecond =0,iResult =0;
Scanner s =new Scanner(System.in );
System.out.println("Enter 2 Numbers");
iFirst = s.nextInt();
iSecond = s.nextInt();
iResult = iFirst+iSecond;
System.out.println("Sum of " + iFirst + "+" + iSecond +"="+ iResult);
}
}
Same error
How did you resolve this issue?
Me also same problem
Amazing presentation god bless you sir
prime or not in java
import java.util.Scanner;
public class Prime {
public static void main(String ai[])
{
Scanner s=new Scanner(System.in);
int a,flag=0;
System.out.print("enter a no
");
a=s.nextInt();
for(int i=2;i
try to make it more short, there are a lot of unnecessary code in there + i don't think this will work in all cases.
At 1:03:20 I'm getting ERROR as "a and b cannot bee resolved or isn't a field" 🙁🙁 why?
connect our team 7034395811, our team will help you 👍🏼
നല്ല ക്ലാസ് .ലളിതമായ അവതരണം .ആർക്കും മനസ്സിലാകും . Thanks sir..SQL ന്റെ ക്ലാസ് കൂടി ഇടുമോ
thank you 👍🏼 sure, we can think about that 👍🏼
sir, java elipse install aayi but ath open aakumbl ithepole varunnilla pazhaya C yude interface aa kidakkunne
workspace switch cheythu kodukku
object1.calculateSum mistake vannathethayalum nannayi valiyoru doubt angand solve aaaayi😊😊😊😊😊
👍🏼👍🏼👍🏼
Assignment Q1:-
import java.util.Scanner;
public class Prime {
public static void main(String p[]) {
Scanner s=new Scanner(System.in);
System.out.println("Enter a number");
int n=s.nextInt();
int flag=0;
for (int i=2;i
Dedication level 🌠
🥰
java applet ne kurich video iduo