├── .DS_Store ├── Demo-Jan3-2022 ├── abc.png ├── xyz.png └── .DS_Store ├── git-demo-13jan ├── abc.png ├── def.png └── ghi.png ├── Concept_Jan_13 ├── Session-1.png ├── Session-2.png └── HTML │ ├── Header.html │ ├── Task1.html │ ├── Division.html │ └── css.html ├── Practise_Oct_27 ├── white-bg.jpeg ├── logicaloperators.java ├── tableOfSeven.java ├── oddEven.java ├── Factors.java ├── tableOfAllNumbers.java ├── doublefloat.java ├── printAllEvenNumbers.java ├── whileAnddowhile.java ├── PrimeNumber.java ├── greatestin3numbers.java ├── Elseif.java └── forLoop.java ├── Concept_Jan_27_2022 ├── Session-1.png ├── Session-2.png └── HTML │ ├── demo2.html │ ├── Heading.html │ ├── Task1.html │ ├── Para.html │ ├── Structure.html │ └── Paragraph.html ├── FirstHand_April_05_2022 ├── .DS_Store ├── Class-notes │ ├── .DS_Store │ ├── Byte.txt │ ├── DataTypes.txt │ └── IDE.txt ├── HelloWorld.java ├── IFElse.java ├── RelationalOperators.java └── LogicalOperators.java ├── Concept_Feb_09 ├── Notes │ └── Session-1.png ├── demo.html ├── Paragraph.html ├── Division.html └── Format.html ├── Concept_Oct-25 ├── Notes │ ├── Session-2.png │ └── Pre-Course_Oct-25.png └── Concept │ └── HTML │ ├── Skelton.html │ ├── Image.html │ ├── Heading.html │ ├── Paragraph.html │ ├── Division.html │ ├── Task3.html │ └── Task1.html ├── Concept_Oct_04 ├── Notes │ ├── Session-2.png │ ├── Food_Webpage.png │ └── Pre-course_oct_04.png └── HTML │ ├── Heading.html │ ├── span.html │ ├── Anchor.html │ ├── Task1.html │ ├── Paragraph.html │ ├── Table.html │ ├── Food_world │ └── index.css │ └── Image.html ├── FirstHand_Oct_12 ├── Notes │ ├── Session-1.png │ └── Session_3.png └── HTML │ ├── first.html │ ├── Second.html │ ├── List.html │ ├── Heading.html │ ├── Paragraph.html │ ├── Division.html │ ├── Table.html │ └── Image.html ├── Concept_21-Mar-2022 ├── Notes │ ├── Session-1.png │ └── Session-2.png └── HTML │ ├── heading.html │ ├── image.html │ ├── attribute.html │ ├── border_Padding.html │ ├── Paragraph.html │ ├── margin.html │ ├── cssdemo.html │ └── division.html ├── Concept_Mar_03_2022 ├── Notes │ ├── Session-1.png │ └── Session-2.png └── HTML │ ├── heading.html │ ├── margin.html │ ├── cssdemo.html │ ├── Structure.html │ ├── Paragraph.html │ ├── para.html │ └── div.html ├── FirstHand_Oct_17 ├── HelloWorld.java ├── GreaterNumber.java ├── ifelse.java └── Variables.java ├── Concept_May_27_2022 ├── Area.java ├── Greater.java ├── Equality.java └── Strings.java ├── Practise_Oct_18 ├── whilevsdowhile.java ├── factors.java ├── oddeven.java ├── elseif.java ├── number_of_factors.java ├── prime.java ├── operators.java └── loops.java ├── Concept_Jan_03 ├── index.html ├── Task1.html ├── Image.html ├── fetch.html ├── table.html ├── float.html └── BMP.html ├── FirstHand_Dec_22 ├── HelloWorld.java ├── IfElse.java ├── TypeCasting.java ├── LogicalOperators.java ├── RelationalOperators.java └── Variables.java ├── FirstHand_Oct_26 ├── HelloWorld.java ├── TypeCasting.java ├── Variable.java └── ifelse.java ├── Practise_Oct_09 ├── sum.java ├── oddeven.java ├── loops.java ├── Prime.java ├── elseif.java └── operators.java ├── Practise_Nov_26 ├── TableOf7.java ├── forloopExamples.java ├── Modulo.java ├── Greatest3Numbers.java ├── loops.java ├── assignment.java ├── Factors.java ├── ElseIf.java ├── whileLoopsAndDoWhileLoops.java └── LogicalOperators.java ├── Concept_May_26_2022 ├── HelloWorld.java ├── ArithemeticOperators.java ├── Calculations.java ├── RelationalOperators.java └── Variables.java ├── Practise_May_30_2022 ├── ForLoop1.java ├── NotOperator.java ├── PatternAstric.java ├── ForLoop2.java ├── PatternReverse.java ├── TableOf7.java ├── Updation.java ├── OrOperator.java ├── Multipleof3and5.java ├── Greater2.java ├── Prime.java ├── Greatest3Numbers.java └── NestedIf.java ├── Practise_Jan_28_2022 ├── HelloWorld.java ├── TypeCasting.java ├── IfElse.java ├── RelationalOperators.java └── Variables.java ├── Practise_Nov_14 ├── TableOf7.java ├── AllOddNumbers.java ├── ForLoopExamples.java ├── updation.java ├── NumberOfFactors.java ├── PrimeNumbers.java ├── OddEven.java ├── ForLoop.java ├── whileAndDoWhileLoops.java └── LogicalOperators.java ├── FirstHand_Nov_25 ├── TakeInput.java ├── GreaterNumberUsingInput.java ├── Typecasting.java ├── HelloWorld.java ├── ifElse.java ├── RelationalOperators.java └── Variables.java ├── Practise_Dec_10 ├── TableofSeven.java ├── LoopsContinued.java ├── OddEven.java ├── PrimeNumbers.java ├── Loops.java ├── updation.java ├── Factors.java ├── WhileLoopAndDoWhileLoop.java └── LogicalOperators.java ├── Practise_Dec_23 ├── ForLoopExamples.java ├── GreatestBetween3Numbers.java ├── Prime.java ├── Tableof7.java ├── Assignment.java ├── Loops.java ├── OddEven.java ├── Count_of_Factors.java └── Elseif.java ├── FirstHand_Dec_09 ├── HelloWorld.java ├── IfElse.java ├── TypeCasting.java ├── IfElseIf.java ├── RelationalOperators.java └── Variable.java ├── FirstHand_Sep_25 ├── count.java ├── sum.java ├── Hello.java ├── largest.java ├── Loops.java ├── prime.java └── Session3.java ├── FirstHand_Jan_04_2022 ├── HelloWorld.java ├── TypeCasting.java ├── IfElse.java ├── RelationalOperators.java └── Variables.java ├── FirstHand_Nov_13 ├── HelloWorld.java ├── IfElse.java ├── Typecasting.java ├── NestedIf.java ├── Operators.java └── variables.java ├── FirstHand_Oct_08 ├── HelloWorld.java ├── Datatypes.java └── Typecasting.java ├── Practise_April_06_2022 ├── TableOf7.java ├── usingTwoIfs.java ├── Updation.java ├── LoopsContd.java ├── ElseIf.java ├── Loops.java ├── NestedIfs.java └── OddEven.java ├── Practise_Sep_24 └── Hello.java └── Practise_Jan_05_2022 ├── TableOf7.java ├── Assignment.java ├── ElseIf.java ├── Factors.java ├── OddEven.java ├── Loops.java ├── CountOfFactors.java └── LogicalOperators.java /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/.DS_Store -------------------------------------------------------------------------------- /Demo-Jan3-2022/abc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Demo-Jan3-2022/abc.png -------------------------------------------------------------------------------- /Demo-Jan3-2022/xyz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Demo-Jan3-2022/xyz.png -------------------------------------------------------------------------------- /git-demo-13jan/abc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/git-demo-13jan/abc.png -------------------------------------------------------------------------------- /git-demo-13jan/def.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/git-demo-13jan/def.png -------------------------------------------------------------------------------- /git-demo-13jan/ghi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/git-demo-13jan/ghi.png -------------------------------------------------------------------------------- /Demo-Jan3-2022/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Demo-Jan3-2022/.DS_Store -------------------------------------------------------------------------------- /Concept_Jan_13/Session-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Jan_13/Session-1.png -------------------------------------------------------------------------------- /Concept_Jan_13/Session-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Jan_13/Session-2.png -------------------------------------------------------------------------------- /Practise_Oct_27/white-bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Practise_Oct_27/white-bg.jpeg -------------------------------------------------------------------------------- /Concept_Jan_27_2022/Session-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Jan_27_2022/Session-1.png -------------------------------------------------------------------------------- /Concept_Jan_27_2022/Session-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Jan_27_2022/Session-2.png -------------------------------------------------------------------------------- /FirstHand_April_05_2022/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/FirstHand_April_05_2022/.DS_Store -------------------------------------------------------------------------------- /Concept_Feb_09/Notes/Session-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Feb_09/Notes/Session-1.png -------------------------------------------------------------------------------- /Concept_Oct-25/Notes/Session-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Oct-25/Notes/Session-2.png -------------------------------------------------------------------------------- /Concept_Oct_04/Notes/Session-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Oct_04/Notes/Session-2.png -------------------------------------------------------------------------------- /Concept_Oct_04/Notes/Food_Webpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Oct_04/Notes/Food_Webpage.png -------------------------------------------------------------------------------- /FirstHand_Oct_12/Notes/Session-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/FirstHand_Oct_12/Notes/Session-1.png -------------------------------------------------------------------------------- /FirstHand_Oct_12/Notes/Session_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/FirstHand_Oct_12/Notes/Session_3.png -------------------------------------------------------------------------------- /Concept_21-Mar-2022/Notes/Session-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_21-Mar-2022/Notes/Session-1.png -------------------------------------------------------------------------------- /Concept_21-Mar-2022/Notes/Session-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_21-Mar-2022/Notes/Session-2.png -------------------------------------------------------------------------------- /Concept_Mar_03_2022/Notes/Session-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Mar_03_2022/Notes/Session-1.png -------------------------------------------------------------------------------- /Concept_Mar_03_2022/Notes/Session-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Mar_03_2022/Notes/Session-2.png -------------------------------------------------------------------------------- /Concept_Jan_27_2022/HTML/demo2.html: -------------------------------------------------------------------------------- 1 | Welcome to HTML Welcome to HTML Welcome to HTML Welcome to HTML Welcome to HTML 2 | Welcome to HTML 3 | -------------------------------------------------------------------------------- /Concept_Oct-25/Notes/Pre-Course_Oct-25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Oct-25/Notes/Pre-Course_Oct-25.png -------------------------------------------------------------------------------- /Concept_Oct_04/Notes/Pre-course_oct_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/Concept_Oct_04/Notes/Pre-course_oct_04.png -------------------------------------------------------------------------------- /FirstHand_April_05_2022/Class-notes/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geeksterin/Pre-course/HEAD/FirstHand_April_05_2022/Class-notes/.DS_Store -------------------------------------------------------------------------------- /Concept_Oct-25/Concept/HTML/Skelton.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/FirstHand_Sep_25/sum.java:
--------------------------------------------------------------------------------
1 | package FirstHand_Sep_25;
2 |
3 | public class sum {
4 | public static void main(String args[]) {
5 |
6 | // sum of N numbers = 100
7 | // 1+ 2 + 3 + ... 100
8 | // n (n+1)/2 == 100 * 101 /2 = 101 * 50 = 5050
9 |
10 | int sum = 0;
11 |
12 | for (int i = 1; i<= 100000000000; i= i +1) {
13 | sum = sum + i;
14 | }
15 |
16 | System.out.println(sum);
17 |
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Concept_Oct_04/HTML/span.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 10 | In this HTML tutorial, you will find more than 200 examples. With our 11 | online "Try it Yourself" editor, you can edit and test each example 12 | yourself! 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /Practise_Oct_27/doublefloat.java: -------------------------------------------------------------------------------- 1 | package Practise_Oct_27; 2 | 3 | public class doublefloat { 4 | 5 | 6 | public static void main (String args[]) { 7 | 8 | int i = 10; 9 | 10 | float j = i; 11 | System.out.println(j);//10.0 12 | 13 | 14 | double k = i; 15 | System.out.println(k);//10.0 16 | 17 | 18 | double m = 10; 19 | System.out.println(m); 20 | float p = 10; 21 | System.out.println(p); 22 | } 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Concept_May_27_2022/Greater.java: -------------------------------------------------------------------------------- 1 | // "static void main" must be defined in a public class. 2 | public class Greater { 3 | public static void main(String[] args) { 4 | // print the greater number between 500 and 1000; 5 | 6 | int num1 = 500; 7 | int num2 = 1000; 8 | 9 | if (num1 > num2){ 10 | System.out.print(num1); 11 | }else{ 12 | System.out.print(num2); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Practise_Nov_14/ForLoopExamples.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_14; 2 | 3 | public class ForLoopExamples { 4 | 5 | public static void main (String args[]) { 6 | 7 | // 500 to 1 8 | for (int num = 500; num >= 1; num = num-1) { 9 | System.out.println(num); 10 | } 11 | 12 | 13 | //all multiples of 2 14 | for (int my_num = 2; my_num <= 100; my_num = my_num+2) { 15 | System.out.println(my_num); 16 | } 17 | 18 | 19 | 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Practise_Nov_26/forloopExamples.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_26; 2 | 3 | public class forloopExamples { 4 | public static void main(String args[]) { 5 | 6 | int num; 7 | for ( num = 100; num >=1 ; num = num-1) { 8 | System.out.println(num); 9 | } 10 | 11 | 12 | for (int i = 1; i<=100 ; i=i+2) { 13 | System.out.println(i); 14 | } 15 | 16 | 17 | for (int i = 2; i<=100 ; i=i+2) { 18 | System.out.println(i); 19 | } 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Concept_Oct-25/Concept/HTML/Heading.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
15 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/FirstHand_Nov_25/GreaterNumberUsingInput.java:
--------------------------------------------------------------------------------
1 | package FirstHand_Nov_25;
2 |
3 | import java.util.*;
4 |
5 |
6 | public class GreaterNumberUsingInput {
7 |
8 |
9 | public static void main(String args[]) {
10 |
11 | Scanner sc = new Scanner(System.in);
12 | int num1 = sc.nextInt();
13 | int num2 = sc.nextInt();
14 |
15 | if (num1 > num2) {
16 | System.out.print(num1);
17 | }else {
18 | System.out.print(num2);
19 | }
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/FirstHand_Sep_25/Hello.java:
--------------------------------------------------------------------------------
1 | package FirstHand_Sep_25;
2 |
3 | public class Hello {
4 |
5 | public static void main(String args[]) {
6 | System.out.println("Hello Worldzzz");
7 | }
8 | }
9 |
10 |
11 | // IDE
12 | // Integrated Development Environment
13 | // e.g. Eclipse
14 |
15 |
16 | // JDK -- Java Development Kit
17 |
18 |
19 | // JVM - Java Virtual Machine
20 |
21 |
22 | // JRE -- Java Runtime Environment
23 |
24 | // Write code --> Save your code --> Build Code --> Run our code
25 |
26 | // 100 / 0
27 |
28 |
29 | // hello I am vvikas
--------------------------------------------------------------------------------
/Practise_April_06_2022/usingTwoIfs.java:
--------------------------------------------------------------------------------
1 | package April_06_2022;
2 |
3 | public class usingTwoIfs {
4 |
5 | public static void main(String[] args) {
6 |
7 |
8 | int num = -20;
9 |
10 | if (num>0) { //20>0
11 | System.out.println("hello");//hello
12 | }
13 |
14 | else if (num > 10) {//20>10
15 | System.out.println("welcome");//welcome
16 | }
17 |
18 |
19 | else if (num > 15){
20 | System.out.println("geekster");
21 | }
22 |
23 | else {
24 | System.out.println("India");
25 | }
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/FirstHand_Sep_25/largest.java:
--------------------------------------------------------------------------------
1 | package FirstHand_Sep_25;
2 |
3 | public class largest {
4 | public static void main(String args[]) {
5 |
6 | // sum of N numbers = 100
7 | // 1+ 2 + 3 + ... 100
8 | // n (n+1)/2 == 100 * 101 /2 = 101 * 50 = 5050
9 |
10 | int n1 = 10;
11 |
12 | int n2 = 30;
13 |
14 | int n3 = 5;
15 |
16 |
17 | int highest = 0;
18 |
19 | for (int i =0 ; i < n; i++) {
20 |
21 | if(arr[i] > highest ) {
22 | highest = arr[i];
23 | }
24 |
25 | }
26 |
27 | System.out.print(highest);
28 |
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Practise_April_06_2022/Updation.java:
--------------------------------------------------------------------------------
1 | package April_06_2022;
2 |
3 | public class Updation {
4 |
5 | public static void main(String[] args) {
6 |
7 | //int num = 20;
8 |
9 | int num; // declaration
10 | num = 20; // assignment / initialisation
11 |
12 | // updation
13 | num = num + 5;
14 | System.out.println(num); //25
15 |
16 | num = num * 10; //
17 | System.out.println(num);//250
18 |
19 | num = num /25;
20 | System.out.println(num);//10
21 |
22 | num = num - 3;
23 | System.out.println(num);//7
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Practise_Oct_27/whileAnddowhile.java:
--------------------------------------------------------------------------------
1 | package Practise_Oct_27;
2 |
3 | public class whileAnddowhile {
4 | public static void main (String args[]) {
5 |
6 |
7 |
8 | int j = 100;
9 | do {
10 | System.out.println(j);
11 | j = j+1;
12 | } while (j<=10);
13 |
14 |
15 | }
16 | }
17 |
18 | /*
19 | *
20 | * for (initialisation; condition; updation){
21 | * action
22 | * }
23 | *
24 | *
25 | * initialisation
26 | * while (condition){
27 | *
28 | * action
29 | * updation
30 | * }
31 | *
32 | *
33 | *
34 | *
35 | */
36 |
--------------------------------------------------------------------------------
/FirstHand_April_05_2022/Class-notes/DataTypes.txt:
--------------------------------------------------------------------------------
1 | In Java
2 |
3 | Data types -->
4 | The type of data any variable can store
5 |
6 | 1. Primitive Data Types --> Pre-existing data types
7 | byte, short, int, long, float, double, char, boolean ==> 8
8 |
9 |
10 | byte, short, int, long, ==>
11 | used to store whole Integers. (+ve, 0, -ve, not a decimal/fraction) 100, -34, 0, not 0.56
12 |
13 |
14 |
15 | 2. Non Primitive Data types --> Data types that are created by user
16 | Strings ==> 1
17 |
18 |
19 | Arrays,
20 | Objects
21 | Interface
22 | Classes
--------------------------------------------------------------------------------
/Practise_Nov_26/Modulo.java:
--------------------------------------------------------------------------------
1 | package Practise_Nov_26;
2 |
3 | public class Modulo {
4 | public static void main(String args[]) {
5 |
6 | int num = 201;
7 |
8 | if (num % 2==0) {
9 | System.out.print("EVEN NUMBER");
10 | }else {
11 | System.out.print("ODD NUMBER");
12 | }
13 | }
14 | }
15 |
16 | // if any number is divisible by 2, it is even
17 |
18 | // if x is divisible by y ,
19 |
20 | // when you divide x by y, and if the remainder is 0,
21 | //then we say that x is divisible by 0
22 |
23 | // modulo operator -- % --remainder
24 |
25 | // 7 % 2
26 |
--------------------------------------------------------------------------------
/FirstHand_Nov_13/IfElse.java:
--------------------------------------------------------------------------------
1 | package FirstHand_Nov_13;
2 |
3 | public class IfElse {
4 |
5 | public static void main (String args[]) {
6 |
7 | int num1 = 1200;
8 | int num2 = 500;
9 |
10 | if(num1 > num2) {
11 | System.out.print(num1);
12 | }else {
13 | System.out.print(num2);
14 | }
15 |
16 |
17 | }
18 | }
19 |
20 | /*
21 | *
22 | * if your name is Rahul, then switch on your video
23 | * otherwise switch on your mic
24 | *
25 | * if (condition){
26 | * // action 1
27 | * }
28 | * else{
29 | * // action 2
30 | * }
31 | *
32 | *
33 | */
--------------------------------------------------------------------------------
/Concept_May_27_2022/Equality.java:
--------------------------------------------------------------------------------
1 | // "static void main" must be defined in a public class.
2 | public class Equality {
3 | public static void main(String[] args) {
4 | // WAP to check if 13*2349 is equal to 17*1172
5 |
6 | int num1 = 13*2349;
7 | int num2 = 17*1172;
8 |
9 | /* if (num1 == num2){
10 | System.out.println(true);
11 | }else{
12 | System.out.println(false);
13 | }
14 | */
15 |
16 | boolean res = num1 == num2;
17 | System.out.println(res);
18 | }
19 | }
--------------------------------------------------------------------------------
/Practise_Jan_28_2022/TypeCasting.java:
--------------------------------------------------------------------------------
1 | package Practise_Jan_28_2022;
2 |
3 | public class TypeCasting {
4 |
5 | public static void main(String[] args) {
6 |
7 | // widening, small-> big, implicit, automatic
8 | byte age = 29;
9 | int new_age = age;
10 | System.out.println(new_age);
11 |
12 |
13 | //narrowing, big-> small, explicit, manual
14 | int salary = 20000;
15 | short new_salary = (short) salary;
16 | System.out.println(new_salary);
17 |
18 | float per = 92.9f;
19 | int new_per = (int) per;
20 | System.out.println(new_per);//92
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/Practise_Nov_14/NumberOfFactors.java:
--------------------------------------------------------------------------------
1 | package Practise_Nov_14;
2 |
3 | public class NumberOfFactors {
4 | public static void main (String args[]) {
5 | int num = 10;
6 | int count_of_factors = 0;
7 |
8 | for (int i = 1; i<=num; i=i+1) {
9 |
10 | if(num % i ==0) {
11 | count_of_factors = count_of_factors + 1;
12 | }
13 | }
14 |
15 | System.out.print(count_of_factors);
16 |
17 | }
18 | }
19 |
20 | //10 -- 1,2,5,10 == 4
21 | //9 - 1,3,9 == 3
22 | //6 - 1,2,3,6 == 4
23 |
24 | //3 - 1,3 = 2
25 | //7 - 1,7 = 2
26 |
27 | //100 - 1,2,4,5,10,20,25,50,100 = 9
--------------------------------------------------------------------------------
/Practise_Oct_27/PrimeNumber.java:
--------------------------------------------------------------------------------
1 | package Practise_Oct_27;
2 |
3 | public class PrimeNumber {
4 |
5 | public static void main (String args[]) {
6 |
7 | // print whether a number is prime
8 |
9 | int num = 17;
10 | int count_of_factors = 0;
11 |
12 | for (int i = 1; i <= num; i+=1) {
13 |
14 | if(num % i ==0) {
15 | count_of_factors = count_of_factors +1;
16 | }
17 | }
18 |
19 | if(count_of_factors == 2) {
20 | System.out.println("Prime number");
21 | }else {
22 | System.out.println("Not Prime number");
23 | }
24 |
25 |
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/FirstHand_April_05_2022/Class-notes/IDE.txt:
--------------------------------------------------------------------------------
1 | IDE
2 |
3 | Integrated Development Environment
4 |
5 | Software Developers --> Build Softwares ---> Write code
6 |
7 | a place to
8 |
9 | - write our code
10 | - execute/ run the code
11 | - test the code
12 |
13 | IDE is a software where you can do all these things
14 |
15 | VS code
16 | Eclipse
17 | Netbeans
18 | IntelliJ
19 |
20 | Folders ---> Package
21 |
22 | Files ---> Class
23 |
24 | A folder is a collection of files and sub-folders
25 |
26 | A package is a colelction of classes and sub-packages
27 |
28 | //package.com.company
29 |
--------------------------------------------------------------------------------
/FirstHand_Oct_26/TypeCasting.java:
--------------------------------------------------------------------------------
1 | package FirstHand_Oct_26;
2 |
3 | public class TypeCasting {
4 | public static void main (String args[]) {
5 |
6 | // automatic/widening
7 | byte age = 29; //byte
8 | int new_age = age; // bigger container
9 | System.out.println(new_age); //29
10 |
11 | // manual / narrowing
12 | int salary = 30000;
13 | short new_salary = (short) salary;
14 | System.out.println(new_salary); //30000
15 |
16 |
17 | float percentage = 85.9f;
18 | int new_percentage = (int) percentage;
19 | System.out.println(new_percentage); //85
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Practise_April_06_2022/LoopsContd.java:
--------------------------------------------------------------------------------
1 | package April_06_2022;
2 |
3 | public class LoopsContd {
4 |
5 | public static void main(String[] args) {
6 |
7 | /*
8 | // print all numbers from 500 to 1
9 | int num;
10 | for (num = 500; num >=1; num = num -1) {
11 | System.out.println(num);
12 | }
13 | */
14 |
15 | //1, 3, 5,7, 9
16 | // print all odd numbers from 1 to 100
17 | int num;
18 | for (num = 1; num <=100; num = num+2) {
19 | System.out.println(num);
20 | }
21 | }
22 | }
23 |
24 | /*for (assignment; condition; updation){
25 | * // repeating code here
26 | * }*/
--------------------------------------------------------------------------------
/Practise_Oct_09/Prime.java:
--------------------------------------------------------------------------------
1 | package PrecourseBeta;
2 |
3 | public class Prime {
4 |
5 | public static void main (String args []) {
6 |
7 | int num = 11;
8 |
9 | int count_of_factors = 0;
10 |
11 | for (int i = 1; i<=num; i ++) {
12 | if(num % i == 0) {
13 | count_of_factors = count_of_factors + 1;
14 | }
15 | }
16 |
17 | System.out.println(count_of_factors);
18 | if(count_of_factors == 2 ) {
19 | System.out.print("Prime");
20 | }else {
21 | System.out.print("not prime");
22 | }
23 |
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Concept_Oct_04/HTML/Anchor.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Concept_21-Mar-2022/HTML/attribute.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 |
21 | 10 | If you're new to Web development, be sure to read our HTML Basics article 11 | to learn what HTML is and how to use it 12 |
13 |HTML Tutorials
15 | 16 |18 | In our extensive HTML reference section, you'll find the details about 19 | every element and attribute in HTML. 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /FirstHand_Dec_22/IfElse.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_22; 2 | 3 | public class IfElse { 4 | public static void main(String[] args) { 5 | int num1 = 1000; 6 | int num2 = 200; 7 | 8 | if(num1>num2) { //1000 > 200 --> true 9 | System.out.print(num1); 10 | }else { 11 | System.out.print(num2); // 200 12 | } 13 | } 14 | } 15 | 16 | /* 17 | * 18 | * if (condition is True){ 19 | * // do action 1 20 | * }else{ 21 | * // do action 2 22 | * } 23 | * 24 | * 25 | * if your name is Rahul, 26 | * turn on your video 27 | * 28 | * else 29 | * turn on your mic 30 | * 31 | * 32 | * 33 | */ -------------------------------------------------------------------------------- /FirstHand_Oct_12/HTML/Paragraph.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |This module sets the stage, getting you used to important concepts and syntax such as looking at applying HTML to text, how to create hyperlinks, and how to use HTML to structure a web page.
9 | 10 |This module explores how to use HTML to include multimedia in your web pages, including the different ways that images can be included, and how to embed video, audio, and even entire other webpages.
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /FirstHand_April_05_2022/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package April_05_2022; 2 | 3 | public class HelloWorld { 4 | 5 | public static void main(String[] args) { 6 | 7 | System.out.println("Hello World!"); 8 | System.out.println("Welcome to geekster"); 9 | System.out.print("My name is Vikas"); 10 | 11 | } 12 | 13 | // println 14 | // ln -> next line / new line 15 | 16 | } 17 | 18 | // method/function --> where we do stuff 19 | 20 | // public 21 | // static 22 | // void 23 | // String[] args 24 | 25 | 26 | // package --> class --> method/function 27 | 28 | //main --> why is it called? 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Practise_Dec_23/Assignment.java: -------------------------------------------------------------------------------- 1 | package Practise_Dec_23; 2 | 3 | public class Assignment { 4 | 5 | public static void main(String[] args) { 6 | // TODO Auto-generated method stub 7 | 8 | int n = 20; 9 | 10 | //updating/changing 11 | n = n + 10; // n += 10; 12 | System.out.println(n);//30 13 | 14 | //updating/changing 15 | n = n - 5; // n -= 5; 16 | System.out.println(n); //25 17 | 18 | //updating/changing 19 | n = n * 2; // n *= 2; 20 | System.out.println(n); //50 21 | 22 | //updating/changing 23 | n = n /10; // n /= 10; 24 | System.out.println(n); //5 25 | 26 | 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /FirstHand_Nov_25/Typecasting.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Nov_25; 2 | 3 | public class Typecasting { 4 | public static void main(String args[]) { 5 | 6 | // Automatic/widening type casting 7 | byte age = 29; 8 | int new_age = age; 9 | System.out.println(new_age); 10 | 11 | float per = 91.4f; 12 | double new_per = per; 13 | System.out.println(new_per); 14 | 15 | 16 | // manual / narrowing 17 | int salary = 20000; 18 | short new_salary = (short) salary; 19 | System.out.println(new_salary); 20 | 21 | float p = 92.8f; 22 | int new_p = (int) p; // 92 23 | System.out.println(new_p); 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Practise_Dec_23/Loops.java: -------------------------------------------------------------------------------- 1 | package Practise_Dec_23; 2 | 3 | public class Loops { 4 | 5 | public static void main(String[] args) { 6 | int num; 7 | //print numbers from 1 to 5 8 | for (num = 1; num <= 10; num = num+1) { 9 | System.out.println(num); 10 | } 11 | 12 | System.out.println(num);//6 13 | System.out.println("hello"); 14 | } 15 | 16 | } 17 | 18 | /* 19 | * 20 | * Loop --> repeats itself --> again and again 21 | * 22 | * for loop, while loop, do while 23 | * 24 | * 25 | * for (assignment; condition; updation){ 26 | * 27 | * // repeated code here 28 | * } 29 | * 30 | * 31 | * 32 | * */ 33 | -------------------------------------------------------------------------------- /Practise_Dec_23/OddEven.java: -------------------------------------------------------------------------------- 1 | package Practise_Dec_23; 2 | 3 | public class OddEven { 4 | 5 | public static void main(String[] args) { 6 | 7 | int num = 21; 8 | 9 | if (num%2 == 0) { 10 | System.out.print("Even"); 11 | }else { 12 | System.out.print("odd"); 13 | } 14 | } 15 | } 16 | 17 | // if any number divisible by 2, it is even otherwise it is odd 18 | 19 | // if a number x is divisible by y, 20 | // if we divide x by y, remainder should be 0 21 | 22 | // modulo operator -- % symbol -- remainder 23 | // 15 % 5 == 0 24 | // 17 % 4 = 1 25 | // 25 % 10 = 5 26 | // 23 % 7 = 2 27 | // 100 % 10 = 0 28 | // 7 % 10 = 7 29 | 30 | -------------------------------------------------------------------------------- /Practise_Nov_26/Greatest3Numbers.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_26; 2 | 3 | import java.util.*; 4 | 5 | public class Greatest3Numbers { 6 | 7 | public static void main(String args[]) { 8 | 9 | Scanner sc = new Scanner(System.in); 10 | int num1 = sc.nextInt(); 11 | int num2 = sc.nextInt(); 12 | int num3 = sc.nextInt(); 13 | 14 | if (num1 >= num2 && num1 >= num3) { 15 | System.out.print(num1); 16 | } 17 | else if (num2 >= num1 && num2 >= num3) { 18 | System.out.print(num2); 19 | }else { 20 | System.out.print(num3); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Practise_Nov_26/loops.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_26; 2 | 3 | public class loops { 4 | public static void main(String args[]) { 5 | 6 | int num; 7 | for ( num = 1; num <= 5; num = num+1) { 8 | System.out.println(num); 9 | } 10 | // 1 11 | // 2 12 | // 3 13 | //4 14 | //5 15 | 16 | 17 | System.out.println(num); //6 18 | } 19 | } 20 | 21 | /* 22 | * 23 | * for (initialise; condition; updation){ 24 | * // repeated code here 25 | * } 26 | * 27 | * 28 | * 29 | * 3 types of loops 30 | * 1. for loop 31 | * 2. while loop 32 | * 3. do while loop 33 | * 34 | * 35 | * 36 | * */ 37 | 38 | //1 39 | //2 40 | //3 41 | //4 42 | //5 -------------------------------------------------------------------------------- /Practise_Dec_10/updation.java: -------------------------------------------------------------------------------- 1 | package Practise_Dec_10; 2 | 3 | public class updation { 4 | public static void main(String args[]) { 5 | 6 | //int num = 100; 7 | 8 | int num; // variable declaration 9 | num = 100; // initialisation / assignment 10 | 11 | num = num + 10; // num += 10; // updation 12 | System.out.println(num); //110 13 | 14 | num = num - 30; // num -= 30; // updation 15 | System.out.println(num); // 80 16 | 17 | 18 | num = num * 5; // num *= 5; 19 | 20 | // updation 21 | System.out.println(num); //400 22 | 23 | num = num / 100; // num /= 100; // updation 24 | System.out.println(num); //4 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Practise_Jan_05_2022/Assignment.java: -------------------------------------------------------------------------------- 1 | package Practise_Jan_05_2022; 2 | 3 | public class Assignment { 4 | 5 | public static void main(String[] args) { 6 | 7 | int num = 10; 8 | 9 | int num2; // declaration 10 | num2 = 50; // assignment/ initialising 11 | 12 | num2 = num2 + 10;// num2 += 10; //updation 13 | System.out.println(num2); //60 14 | 15 | num2 = num2 - 30; //num2 -= 30; 16 | //updation 17 | System.out.println(num2); //30 18 | 19 | num2 = num2 * 5; //num2 *= 5; 20 | //updation 21 | System.out.println(num2); //150 22 | 23 | num2 = num2/15; //num2 /= 15; 24 | //updation 25 | System.out.println(num2); //10 26 | 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Concept_May_26_2022/Calculations.java: -------------------------------------------------------------------------------- 1 | public class Main { 2 | public static void main(String[] args) { 3 | 4 | int num1 = 600; 5 | int num2 = 30; 6 | 7 | int sum = num1 + num2; 8 | System.out.println(sum);//630 9 | 10 | // a way of giving comments 11 | // this line is doing the product of both numbers 12 | 13 | int prod = num1 * num2; 14 | System.out.println(prod);//18000 15 | 16 | 17 | int div = num1 /num2; 18 | System.out.println(div);//20 19 | 20 | int subtract = num1 - num2; 21 | System.out.println(subtract);//570 22 | 23 | } 24 | } -------------------------------------------------------------------------------- /Practise_May_30_2022/Updation.java: -------------------------------------------------------------------------------- 1 | // "static void main" must be defined in a public class. 2 | public class Main { 3 | public static void main(String[] args) { 4 | // int num = 20; 5 | 6 | int num; // variable declaration 7 | num = 20; // variable initialisation 8 | 9 | num = num + 5; // num+=5; // updation 10 | System.out.println(num);//25 11 | 12 | num = num -10; // num-=10; 13 | System.out.println(num);//15 14 | 15 | num = num * 4; //num*=4; 16 | System.out.println(num);//60 17 | 18 | num = num /10; // num /=10; 19 | System.out.println(num);//6 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /Concept_Oct_04/HTML/Task1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |If you're new to Web development, be sure to read our HTML Basics article to learn what HTML is and how to use it.
11 |For articles about how to use HTML, as well as tutorials and complete examples, check out our HTML Learning Area.
13 |In our extensive HTML reference section, you'll find the details about every element and attribute in HTML.
15 | 16 | -------------------------------------------------------------------------------- /Practise_Nov_26/assignment.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_26; 2 | 3 | public class assignment { 4 | public static void main(String args[]) { 5 | 6 | int num = 10; 7 | num = num + 5; // num += 5; 8 | System.out.println(num); //15 9 | 10 | num = num - 3; // num -= 3; 11 | System.out.println(num); //12 12 | 13 | 14 | num = num*4; // num *=4; 15 | System.out.println(num); //48 16 | 17 | 18 | num = num/6; // num /= 6; 19 | System.out.println(num); //8 20 | } 21 | } 22 | 23 | /* 24 | * 25 | * int num = 10; 26 | * int num; //variable declaration or definition 27 | * num = 10; //assignment / initialisation 28 | * 29 | * 30 | * 31 | * */ 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /FirstHand_Nov_25/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Nov_25; 2 | 3 | public class HelloWorld { 4 | 5 | public static void main(String args[]) { 6 | System.out.println("Hello World!"); 7 | System.out.println("Welcome to Geekster"); 8 | System.out.print("Vikas is my name"); 9 | } 10 | 11 | } 12 | 13 | // ln --> new line 14 | 15 | // input, output 16 | 17 | 18 | 19 | 20 | 21 | 22 | //methods or functions 23 | //main is the entry point of the code / java app 24 | 25 | 26 | 27 | 28 | 29 | // scope of the class 30 | // whenever we give any class, any method, 31 | // any function, any loop, any if/else statement, 32 | // any try/catch statement 33 | // we always give curly brackets { } 34 | // to denote the start and ending -------------------------------------------------------------------------------- /Practise_Jan_28_2022/IfElse.java: -------------------------------------------------------------------------------- 1 | package Practise_Jan_28_2022; 2 | 3 | public class IfElse { 4 | 5 | public static void main(String[] args) { 6 | // print greatest number in 2 numbers 7 | int num1 = 1000; 8 | int num2 = 200; 9 | 10 | if(num1 > num2) { // 1000 > 200 11 | System.out.print(num1); 12 | }else { 13 | System.out.print(num2); 14 | } 15 | 16 | } 17 | } 18 | 19 | /* 20 | * 21 | * if you find noodles, bring noodles 22 | * else bring momos 23 | * 24 | * if (find noodles){ 25 | * bring noodles 26 | * }else{ 27 | * bring momos 28 | * } 29 | * 30 | * 31 | * if (name is Abhishek){ 32 | * Turn on video 33 | * } 34 | * else{ 35 | * turn on mic 36 | * } 37 | * 38 | * 39 | * 40 | */ -------------------------------------------------------------------------------- /Concept_Jan_03/fetch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |12 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum placeat 13 | possimus impedit error odio corporis recusandae, veniam cupiditate quam 14 | aliquid. 15 |
16 |17 | Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nihil laborum 18 | officia necessitatibus, cum fuga voluptates obcaecati accusantium quo 19 | sapiente doloribus reiciendis dignissimos, possimus quas esse minima 20 | voluptatibus? Ad, quam tempore. 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /Practise_Jan_05_2022/Factors.java: -------------------------------------------------------------------------------- 1 | package Practise_Jan_05_2022; 2 | 3 | public class Factors { 4 | 5 | public static void main(String[] args) { 6 | 7 | // write a program that prints all factors of a number 8 | 9 | int num = 100; 10 | 11 | for (int f = 1; f <= num; f++) { 12 | 13 | if(num % f ==0) { 14 | System.out.println(f); 15 | } 16 | 17 | } 18 | 19 | 20 | } 21 | } 22 | 23 | /* 24 | * if x % y ==0, y is a factor of x 25 | * 26 | * 6 --> 1,2,3,6 --> 4 27 | * 28 | * 10 --> 1,2,5,10 --> 4 29 | * 30 | * 20 --> 1,2,4,5,10,20 -->6 31 | * 32 | * 25 --> 1,5,25 --> 3 33 | * 34 | * 100 --> 1,2,4,5,10,20,25,50,100 --> 9 35 | * 36 | * 9 --> 1,3,9 --> 3 37 | * 38 | * 81 --> 1,3,9,27,81 --> 5 39 | * 40 | * 41 | * 42 | */ -------------------------------------------------------------------------------- /FirstHand_Dec_09/IfElse.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_09; 2 | 3 | public class IfElse { 4 | public static void main (String args[]) { 5 | int num1 = 300; 6 | int num2 = 50; 7 | 8 | if (num1 > num2) { 9 | System.out.print(num1); 10 | }else { 11 | System.out.print(num2); 12 | } 13 | 14 | } 15 | } 16 | 17 | /* 18 | * 19 | * condition should always be a boolean -- true/false 20 | * 21 | * if (condition){ 22 | * // action 1 23 | * } 24 | * else { 25 | * // action 2 26 | * } 27 | * 28 | * 29 | * 30 | * 31 | * if your name is rahul 32 | * turn on the video 33 | * else 34 | * turn on your mic 35 | * 36 | * 37 | * 38 | * 39 | * if you get samosa 40 | * bring samosa 41 | * otherwise 42 | * bring momos 43 | * 44 | * 45 | * 46 | */ -------------------------------------------------------------------------------- /Practise_Nov_14/PrimeNumbers.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_14; 2 | 3 | public class PrimeNumbers { 4 | public static void main (String args[]) { 5 | 6 | int num = 10; 7 | int count_of_factors = 0; 8 | 9 | for (int i = 1; i<=num; i=i+1) { 10 | 11 | if(num % i ==0) { 12 | count_of_factors = count_of_factors + 1; 13 | } 14 | } 15 | 16 | if(count_of_factors == 2) { 17 | System.out.println("Prime number"); 18 | }else { 19 | System.out.println("Not Prime number"); 20 | } 21 | } 22 | } 23 | // 20 - 4,5, 2, 10, 1, 20 24 | // 36 - 1,36, 2,18, 4,9 6 25 | // 25 - 1,5,25 = 3 26 | // 36 - 1,2,3,4,6,9,12,18,36 = 9 27 | // 10 -- 1,2,5,10 == 4 28 | // 9 - 1,3,9 == 3 29 | // 6 - 1,2,3,6 == 4 30 | // 3 - 1,3 = 2 31 | // 7 - 1,7 = 2 32 | // 100 - 1,2,4,5,10,20,25,50,100 = 9 -------------------------------------------------------------------------------- /FirstHand_Oct_17/GreaterNumber.java: -------------------------------------------------------------------------------- 1 | package PrecourseGama_FirstHand_Oct_17; 2 | 3 | public class GreaterNumber { 4 | public static void main(String args[]) { 5 | int num1 = 100; 6 | int num2 = 500; 7 | 8 | 9 | if(num1 > num2) { 10 | System.out.print(num1); 11 | }else { 12 | System.out.print(num2); 13 | } 14 | } 15 | } 16 | 17 | 18 | /* 19 | 20 | 21 | go to the Market 22 | 23 | 24 | if you find momos, bring momos 25 | 26 | otherwise if you want pizza, bring pizza 27 | 28 | otherwise if you find dosa, bring dosa 29 | 30 | otherwise bring samosa 31 | 32 | 33 | 34 | 35 | 36 | if (condition 1){ 37 | action 1 38 | } 39 | else if (condition 2){ 40 | action 2 41 | } 42 | else if(condition 3){ 43 | action 3 44 | }else{ 45 | action 4 46 | } 47 | 48 | 49 | 50 | 51 | */ -------------------------------------------------------------------------------- /Practise_Dec_10/Factors.java: -------------------------------------------------------------------------------- 1 | package Practise_Dec_10; 2 | 3 | public class Factors { 4 | 5 | public static void main(String[] args) { 6 | // TODO Auto-generated method stub 7 | 8 | int num = 20; 9 | int count_of_factors = 0; 10 | 11 | for (int i = 1; i <= num; i++) { 12 | if(num % i == 0) { 13 | count_of_factors = count_of_factors +1; 14 | } 15 | } 16 | 17 | System.out.println(count_of_factors); 18 | } 19 | 20 | } 21 | /* 22 | * 6 --> 1,2,3,6 === 4 23 | * 10 --> 1,2,5,10 === 4 24 | * 20 --> 1,2,4,5,10,20 == 6 25 | * 26 | * 9 --> 1,3,9 === 3 27 | * 28 | * 100 --> 1,2,4,5,10,20,25,50,100 == 9 29 | * 30 | * 3 --> 1,3 == 2 31 | * 17 --> 1,17 == 2 32 | * 49 --> 1,7,49 == 3 33 | * 34 | * 35 | * Hello, this is a demo for the class 36 | * 37 | */ -------------------------------------------------------------------------------- /Concept_Oct_04/HTML/Paragraph.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |HTML (HyperText Markup Language) is 8 | the most basic building block of the Web. 9 | It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe 10 | a web page's appearance/presentation (CSS) or functionality/behavior (JavaScript).
11 |12 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius quaerat doloribus soluta aliquid, debitis sint pariatur quis, eum labore nisi voluptate totam commodi dolore magni ipsam quasi corrupti corporis odio quae nam, illum autem inventore itaque! Et accusamus ut sint! 13 |
14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Practise_Nov_26/Factors.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_26; 2 | 3 | public class Factors { 4 | public static void main(String args[]) { 5 | 6 | int num = 25; 7 | int count_of_factors = 0; 8 | 9 | 10 | for (int i = 1; i<= num; i++) { 11 | if(num % i == 0) { 12 | count_of_factors = count_of_factors +1; 13 | } 14 | } 15 | 16 | 17 | System.out.print(count_of_factors); 18 | 19 | if(count_of_factors == 2) { 20 | System.out.print("Prime"); 21 | }else { 22 | System.out.print("Not Prime"); 23 | } 24 | 25 | } 26 | } 27 | 28 | // 2 --> 1,2 ==> 2 29 | // 3 --> 1,3 ==> 2 30 | // 7 --> 1,7 ==> 2 31 | // 19 --> 1,19 ==> 2 32 | // 6 --> 1,2,3,6 ==> 4 33 | // 10 --> 1,2,5,10 ==> 4 34 | // 100 --> 1,2,4,5,10,20,25,50,100 => 9 35 | // 9 --> 1,3,9 ==> 3 36 | // 25 --> 1,5,25 ===> 3 37 | 38 | -------------------------------------------------------------------------------- /Practise_Nov_14/OddEven.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_14; 2 | 3 | public class OddEven { 4 | 5 | public static void main (String args[]) { 6 | 7 | // find whether a no. is odd or even 8 | 9 | // 15 % 2 = 1 10 | 11 | // 30 % 6 = 0 12 | 13 | // 30 % 7 = 2 14 | 15 | // 10 % 7 = 3 16 | 17 | // 6 % 10 = 6 18 | 19 | // num % 2 == 0, number is even, else odd 20 | 21 | 22 | int num = 311; 23 | 24 | if(num % 2 ==0) { 25 | System.out.print("Even"); 26 | }else { 27 | System.out.print("Odd"); 28 | } 29 | } 30 | } 31 | // divide any number by 2 32 | 33 | // if no. is divisible by 2, it is even ... otherwise odd 34 | 35 | // x / y, if the remainder is 0, then it is divisible 36 | 37 | // to get the remainder, we use something called a modulo operator 38 | 39 | // % symbol. -------------------------------------------------------------------------------- /FirstHand_April_05_2022/IFElse.java: -------------------------------------------------------------------------------- 1 | package April_05_2022; 2 | 3 | public class IFElse { 4 | 5 | public static void main(String[] args) { 6 | 7 | // Print the greater number in 2 numbers 8 | int num1 = 2100; 9 | int num2 = 500; 10 | 11 | if (num1 > num2) { //2100 > 500 12 | System.out.print(num1); 13 | }else { 14 | System.out.print(num2); 15 | } 16 | 17 | 18 | } 19 | } 20 | 21 | /* 22 | * if you get noodles, --> condition 23 | * then bring noodles 24 | * else 25 | * bring samosa 26 | * 27 | * 28 | * 29 | * 30 | * if (your name is Rahul){ //condition 31 | * turn on your video 32 | * } 33 | * else{ 34 | * turn on your mic 35 | * } 36 | * 37 | * 38 | * if (condition is true){ 39 | * // action1 40 | * } 41 | * else{ 42 | * // action2 43 | * } 44 | * 45 | */ -------------------------------------------------------------------------------- /FirstHand_Dec_09/TypeCasting.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_09; 2 | 3 | public class TypeCasting { 4 | public static void main (String args[]) { 5 | 6 | // smaller container to bigger container 7 | // short --> int 8 | short salary = 20000; 9 | // int annualSalary = salary * 12; 10 | // System.out.println(annualSalary); 11 | int annualSalary = salary; 12 | System.out.println(annualSalary); 13 | 14 | // bigger container to smaller container 15 | // int --> short 16 | int salary2 = 20000; 17 | short extra = 5000; 18 | short annualSalary2 = (short) salary2; //25000 19 | System.out.println(annualSalary2+extra); 20 | 21 | float f = 91.4f; 22 | double f2 = f; 23 | System.out.println(f2); 24 | 25 | float a = 92.99f; 26 | int a2 = (int) a; 27 | System.out.println(a2); // 92 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Practise_Jan_05_2022/OddEven.java: -------------------------------------------------------------------------------- 1 | package Practise_Jan_05_2022; 2 | 3 | public class OddEven { 4 | 5 | public static void main(String[] args) { 6 | //int x = 16/3; //5; 7 | // int y = 15 /3 ; //5 8 | //int z = 17/3;// 5.666 => 5 9 | 10 | // modulo operator -- % --> remainder 11 | 12 | 13 | // int a = 15 % 3; //0 14 | // int b = 16 % 3; //1 15 | // int c = 17 % 3; //2 16 | 17 | 18 | int num = 24; 19 | if (num % 2 == 0) { 20 | System.out.println("Even"); 21 | }else { 22 | System.out.println("Odd"); 23 | } 24 | 25 | // print all even numbers from 1 to 100 26 | 27 | for (int i = 1; i <=100; i= i+1) { 28 | if (i % 2 == 0) { 29 | System.out.println(i); 30 | } 31 | } 32 | 33 | 34 | 35 | 36 | } 37 | 38 | } 39 | 40 | // if a number is divisible by 2, it is even 41 | 42 | // x is divisible by y, if the remainder is 0 -------------------------------------------------------------------------------- /FirstHand_Jan_04_2022/IfElse.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Jan_04_2022; 2 | 3 | public class IfElse { 4 | public static void main(String[] args) { 5 | // print the greatest number between 6 | // two numbers 7 | 8 | int num1 = 20; 9 | int num2 = 500; 10 | 11 | // 20 > 500 -- false 12 | if(num1 > num2) { 13 | System.out.print(num1); 14 | }else { 15 | System.out.print(num2); //500 16 | } 17 | 18 | 19 | } 20 | } 21 | /* 22 | * 23 | * if you get jalebi, 24 | * bring jalebi 25 | * else 26 | * bring gulab jamun 27 | * 28 | * 29 | * 30 | * condition is always boolean -- true/ false 31 | * if (condition){ 32 | * // action 1 33 | * }else{ 34 | * // action 2 35 | * } 36 | * 37 | * 38 | * if your name is Abhishek 39 | * turn on your camera 40 | * otherwise 41 | * turn on your mic 42 | * 43 | * 44 | * 45 | * 46 | * 47 | * 48 | */ -------------------------------------------------------------------------------- /FirstHand_Dec_09/IfElseIf.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_09; 2 | 3 | public class IfElseIf { 4 | public static void main (String args[]) { 5 | 6 | int num = 0; 7 | 8 | if (num > 0) { 9 | System.out.print("Positive number"); 10 | }else if (num < 0) { 11 | System.out.print("Negative number"); 12 | }else { 13 | System.out.print("Zero"); 14 | } 15 | } 16 | } 17 | /* 18 | * 19 | * if you get samosa, bring samosa 20 | * 21 | * otherwise if you get jalebi, bring jalebi 22 | * 23 | * otherwise if you get gulabjamun, bring gulab jamun 24 | * 25 | * otherwise get momos 26 | * 27 | * 28 | * 29 | * if (condition 1){ 30 | * // action 1 31 | * } 32 | * else if (condition 2){ 33 | * // action 2 34 | * 35 | * } 36 | * else if (condition3){ 37 | * // action 3 38 | * 39 | * } 40 | * else { 41 | * // action 4 42 | * } 43 | * 44 | * 45 | * 46 | * 47 | * */ -------------------------------------------------------------------------------- /Practise_April_06_2022/ElseIf.java: -------------------------------------------------------------------------------- 1 | package April_06_2022; 2 | 3 | public class ElseIf { 4 | 5 | public static void main (String args[]) { 6 | 7 | //greatest between 3 numbers 8 | 9 | int num1 = 20; //20 10 | int num2 = 20;//20 11 | int num3 = 20;//10 12 | 13 | // 20>=20 && 20>=20 -->true 14 | if (num1 >= num2 && num1 >= num3) { 15 | System.out.print(num1);//20 16 | } 17 | else if (num2 >= num1 && num2 >= num3) { 18 | // 20>20 && 20>10 --> false 19 | System.out.print(num2); 20 | }else { 21 | System.out.print(num3); 22 | } 23 | 24 | } 25 | } 26 | 27 | /* 28 | * 29 | * if (you get dosa) -- condition1 30 | * bring dosa 31 | * 32 | * else if( you get Uttapam) -- condition2 33 | * bring Uttapam 34 | * 35 | * 36 | * else if (you get vada) -- condition3 37 | * bring vada 38 | * 39 | * else 40 | * bring idli 41 | * 42 | * 43 | * 44 | */ -------------------------------------------------------------------------------- /Practise_Oct_27/greatestin3numbers.java: -------------------------------------------------------------------------------- 1 | package Practise_Oct_27; 2 | 3 | public class greatestin3numbers { 4 | public static void main (String args[]) { 5 | int num1 = 500; 6 | short num2 = 700; 7 | int num3 = 300; 8 | 9 | if(num1>num2 && num1>num3) { 10 | System.out.println(num1); 11 | } 12 | else if(num2>num1 && num2 > num3) { 13 | System.out.println(num2); 14 | }else { 15 | System.out.println(num3); 16 | } 17 | 18 | } 19 | } 20 | 21 | 22 | /* 23 | * AND, OR, NOT 24 | * 25 | * 26 | * Logical operators in Java 27 | * 28 | * 29 | * AND && 30 | * 31 | * if the shop is open AND they are making JALEBIS, 32 | * bring JALEBI for me. 33 | * 34 | * 35 | * 36 | * OR || 37 | * 38 | * bring jalebi or bring gulabjamun 39 | * 40 | * 41 | * 42 | * ! NOT 43 | * 44 | * True --- ! -- False 45 | * False --- ! -- True 46 | * 47 | * 48 | * 49 | * 50 | * 51 | * 52 | */ -------------------------------------------------------------------------------- /Practise_Nov_26/ElseIf.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_26; 2 | 3 | public class ElseIf { 4 | public static void main (String args[]) { 5 | 6 | int num = 0; 7 | 8 | if(num > 0) { 9 | System.out.println("Positive number"); 10 | }else if (num<0) { 11 | System.out.println("Negative number"); 12 | }else { 13 | System.out.println("zero"); 14 | } 15 | 16 | 17 | 18 | } 19 | } 20 | 21 | 22 | /* 23 | * 24 | * if you get jalebi, 25 | * bring jalebi 26 | * 27 | * else if you get gulab jamun, 28 | * bring gulab jamun, 29 | * 30 | * else if you get halwa, 31 | * bring halwa 32 | * 33 | * else 34 | * bring laddoo 35 | * 36 | * 37 | * 38 | * 39 | * 40 | * 41 | * 42 | * 43 | * if you get jalebi, 44 | * bring jalebi 45 | * else 46 | * bring laddoo 47 | * 48 | * if(condition){ 49 | * // do action 1 50 | * }else{ 51 | * // do action 2 52 | * } 53 | * 54 | * 55 | */ -------------------------------------------------------------------------------- /Concept_Jan_03/table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 || ID | 21 |NAME | 22 |CITY | 23 |
|---|---|---|
| 1 | 27 |Kabir | 28 |Delhi | 29 |
| 2 | 33 |Rahul | 34 |Mumbai | 35 |
| 1 | 38 |Kabir | 39 |Delhi | 40 |
| 2 | 44 |Rahul | 45 |Mumbai | 46 |
2 | Visual Studio Code is a lightweight but powerful source code editor which runs 3 | on your desktop and is available for Windows, macOS and Linux. It comes with 4 | built-in support for JavaScript, TypeScript and Node.js and has a rich 5 | ecosystem of extensions for other languages (such as C++, C#, Java, Python, 6 | PHP, Go) and runtimes (such as .NET and Unity). Begin your journey with VS 7 | Code with these introductory videos. 8 |
9 | 10 |11 | Visual Studio Code is a lightweight but powerful source code editor which runs 12 | on your desktop and is available for Windows, macOS and Linux. It comes with 13 | built-in support for JavaScript, TypeScript and Node.js and has a rich 14 | ecosystem of extensions for other languages (such as C++, C#, Java, Python, 15 | PHP, Go) and runtimes (such as .NET and Unity). Begin your journey with VS 16 | Code with these introductory videos. 17 |
18 | -------------------------------------------------------------------------------- /Practise_Jan_05_2022/Loops.java: -------------------------------------------------------------------------------- 1 | package Practise_Jan_05_2022; 2 | 3 | public class Loops { 4 | 5 | public static void main(String[] args) { 6 | // print numbers from 1 to 50 7 | 8 | /*int num; 9 | 10 | for (num = 1; num <=50; num=num+1) { 11 | System.out.println(num); 12 | }*/ 13 | 14 | 15 | 16 | // print from 1000 to 1 17 | /* 18 | for (int x = 1000; x >=1; x = x-1) { 19 | System.out.println(x); 20 | } 21 | */ 22 | for (int num = 1; num<=100; num = num+2) { 23 | System.out.println(num); 24 | } 25 | 26 | } 27 | } 28 | 29 | /* 30 | * num = 5; 31 | * x = num + 1 //6 32 | * 33 | * 34 | * num = 5 35 | * x = num++ //5 36 | * 37 | * num++ , ++num 38 | * Loops -- FOr loop, while loop and do-while 39 | * 40 | * for loops 41 | * 42 | * 43 | * for (initialization; condition; updation){ 44 | * // repeated code 45 | * 46 | * } 47 | * 48 | * 49 | * 50 | * 51 | * 52 | * 53 | * */ 54 | -------------------------------------------------------------------------------- /Practise_Nov_26/whileLoopsAndDoWhileLoops.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_26; 2 | 3 | public class whileLoopsAndDoWhileLoops { 4 | public static void main(String args[]) { 5 | 6 | int num = 1000; 7 | while (num <= 100) { 8 | System.out.println(num); 9 | num = num + 1; 10 | } 11 | 12 | // for loop and while loop 13 | // condition is checked at entry 14 | // entry controlled loop 15 | 16 | int num2 = 1000; 17 | do { 18 | System.out.println(num2);//1000 19 | num2 = num2 + 1; // 1001 20 | } while (num2 <= 100); 21 | 22 | // do while loop 23 | // condition is checked at exit 24 | // exit controlled loop 25 | } 26 | } 27 | 28 | /* 29 | * 30 | * initialisation 31 | * while (condition){ 32 | * 33 | * recurring code; 34 | * 35 | * updation; 36 | * } 37 | * 38 | * 39 | * for(initialise; condition; updation){ 40 | * 41 | * recurring code 42 | * } 43 | * 44 | * 45 | * 46 | */ -------------------------------------------------------------------------------- /Practise_Nov_14/ForLoop.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_14; 2 | 3 | public class ForLoop { 4 | 5 | public static void main (String args[]) { 6 | 7 | //System.out.println("1"); 8 | //System.out.println("2"); 9 | //System.out.println("3"); 10 | //System.out.println("4"); 11 | //System.out.println("5"); 12 | 13 | /* for (initialization; condition; updation){ 14 | * 15 | * // code which is to be repeated 16 | * } 17 | */ 18 | int num; 19 | for ( num = 1; num <= 5; num = num+1) { 20 | System.out.println(num); 21 | }// 1 2 3 4 5 22 | 23 | 24 | System.out.println(num); 25 | } 26 | 27 | } 28 | 29 | /* 30 | * Loops (Iteration) 31 | * 32 | * int a = 10; 33 | * 34 | * 3 types of Java :- 35 | * 1. for loop 36 | * 2. while loop 37 | * 3. do while loop 38 | * 39 | * 40 | * for (initialization; condition; updation){ 41 | * 42 | * // code which is to be repeated 43 | * } 44 | * 45 | * 46 | * 47 | * 48 | */ -------------------------------------------------------------------------------- /FirstHand_Dec_22/TypeCasting.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_22; 2 | 3 | public class TypeCasting { 4 | public static void main(String[] args) { 5 | 6 | // small --> big 7 | // automatic/ implicit/ widening typecasting 8 | byte age = 29; 9 | int new_age = age; 10 | System.out.println(new_age); 11 | 12 | float perc = 91.4f; 13 | double new_perc = perc; 14 | System.out.println(new_perc); 15 | 16 | // big --> small 17 | // manual/ explicit / narrowing 18 | int sal = 30000; 19 | short new_sal = (short)sal; 20 | System.out.println(new_sal); 21 | 22 | float percentage = 91.4f; 23 | int new_percentage = (int) percentage; 24 | System.out.println(new_percentage); 25 | 26 | int val = 900000; 27 | short new_val = (short)val; 28 | System.out.println(new_val); 29 | 30 | char x = 'a'; 31 | int k = x; 32 | System.out.println(k); 33 | 34 | //boolean y = true; 35 | //int z = (int)y; 36 | // System.out.println(z); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Concept_Jan_27_2022/HTML/Task1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |7 | This module sets the stage, getting you used to important concepts and 8 | syntax such as looking at applying HTML to text, how to create hyperlinks, 9 | and how to use HTML to structure a web page. 10 |
11 | 12 |14 | This module explores how to use HTML to include multimedia in your web 15 | pages, including the different ways that images can be included, and how 16 | to embed video, audio, and even entire other webpages. 17 |
18 | 19 |21 | Representing tabular data on a webpage in an understandable, accessible 22 | way can be a challenge. This module covers basic table markup, along with 23 | more complex features such as implementing captions and summaries 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /Practise_Nov_14/whileAndDoWhileLoops.java: -------------------------------------------------------------------------------- 1 | package Practise_Nov_14; 2 | 3 | public class whileAndDoWhileLoops { 4 | 5 | public static void main (String args[]) { 6 | 7 | // for loop and while are also called as 8 | // Entry controlled loop 9 | /*int num = 500; 10 | while (num<=100) { 11 | System.out.println(num); 12 | num = num+1; 13 | }*/ 14 | 15 | 16 | // Exit controlled loop 17 | int num2 = 500; 18 | do { 19 | System.out.println(num2); 20 | num2 = num2+1; 21 | } while (num2<=100); 22 | 23 | } 24 | } 25 | 26 | /* 27 | * 28 | * 29 | * 1. Find whether a number is perfect square 30 | * 2. Calculate the number of digits in a give number 31 | * 1000099 - 7 32 | * 99000 - 5 33 | * 0007 - 1 34 | * 35 | * 36 | * initialisation 37 | * while (condition){ 38 | * repeated code here 39 | * 40 | * updation 41 | * 42 | * } 43 | * 44 | * 45 | * for (initialisation; condition; updation){ 46 | * repeated code here 47 | * } 48 | * 49 | */ -------------------------------------------------------------------------------- /Concept_Oct-25/Concept/HTML/Paragraph.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |10 | This document explains the syntax, vocabulary and the available APIs for HTML5 documents, focussing on simplicity and practical applications for beginners while also providing in depth information for more advanced web developers.This document is complimentary to the 11 |
12 |13 | 14 | This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy. 15 |
16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Practise_May_30_2022/Multipleof3and5.java: -------------------------------------------------------------------------------- 1 | import java.util.*; // line 1 2 | 3 | public class Solution { 4 | 5 | public static void main(String[] args) { 6 | 7 | Scanner sc=new Scanner(System.in); // line 2 8 | 9 | // Take a number as input from user as "limit" and print all multiples of 3 and 5 upto limit 10 | 11 | int limit = sc.nextInt(); 12 | int num1 = sc.nextInt(); 13 | int num2 = sc.nextInt(); 14 | 15 | for (int num =1; num <=limit; num = num+1){ 16 | 17 | if (num%num1 ==0 || num%num2 ==0){ 18 | System.out.println(num); 19 | } 20 | 21 | } 22 | 23 | 24 | } 25 | } 26 | // Input a number and 27 | // if the number is Positive OR Even, Print "Hello" 28 | // else if the number is Negative OR Odd, Print "Hi" 29 | // else 30 | // print Welcome 31 | 32 | 33 | /* 34 | 3 35 | 5 36 | 6 37 | 9 38 | 10 39 | 12 40 | 15 41 | 18 42 | 20 43 | 21 44 | 45 | */ -------------------------------------------------------------------------------- /Practise_Oct_09/elseif.java: -------------------------------------------------------------------------------- 1 | package PrecourseBeta; 2 | 3 | public class elseif { 4 | 5 | public static void main (String args[]) { 6 | 7 | int num = 0; 8 | 9 | if(num > 0) { 10 | System.out.println("POSITIVE"); 11 | } else if (num < 0) { 12 | System.out.println("NEGATIVE"); 13 | } else { 14 | System.out.println("ZERO"); 15 | } 16 | 17 | 18 | 19 | int new_number = 100; 20 | 21 | if (new_number > 0) { 22 | System.out.println("Greater than 0"); 23 | } 24 | if (new_number > 50) { 25 | System.out.println("Greater than 50"); 26 | } 27 | if (new_number > 90) { 28 | System.out.println("Greater than 90"); 29 | } 30 | 31 | 32 | 33 | int My_number = 100; 34 | 35 | if (My_number > 0) { 36 | System.out.println("Greater than 0"); 37 | } 38 | else if (My_number > 50) { 39 | System.out.println("Greater than 50"); 40 | } 41 | else if (My_number > 90) { 42 | System.out.println("Greater than 90"); 43 | } 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Practise_Oct_27/Elseif.java: -------------------------------------------------------------------------------- 1 | package Practise_Oct_27; 2 | 3 | public class Elseif { 4 | 5 | public static void main (String args[]) { 6 | 7 | 8 | int num = 0; 9 | 10 | if(num > 0) { 11 | System.out.print("Positive number"); 12 | }else if (num < 0) { 13 | System.out.print("Negative number"); 14 | }else { 15 | System.out.print("Number is zero"); 16 | } 17 | 18 | 19 | } 20 | } 21 | 22 | /* 23 | * 24 | * if(condition 1){ 25 | * do action 1 26 | * } 27 | * else { 28 | * do action 2 29 | * } 30 | * 31 | * 32 | * 33 | * if (you get noodles) 34 | * bring noodles 35 | * else 36 | * bring momos 37 | * 38 | * 39 | * 40 | * 41 | * 42 | * if (you get noodles) 43 | * bring noodles 44 | * 45 | * else if (you get momos) 46 | * bring momos 47 | * 48 | * else if (you get pizza) 49 | * bring pizza 50 | * 51 | * else 52 | * bring burger 53 | * 54 | * 55 | * 56 | * 57 | * 58 | * 59 | * 60 | */ -------------------------------------------------------------------------------- /Practise_Dec_10/WhileLoopAndDoWhileLoop.java: -------------------------------------------------------------------------------- 1 | package Practise_Dec_10; 2 | 3 | public class WhileLoopAndDoWhileLoop { 4 | 5 | public static void main(String[] args) { 6 | // TODO Auto-generated method stub 7 | 8 | /* 9 | for (int num = 1; num <= 500; num = num+1) { 10 | System.out.println(num); 11 | } 12 | * */ 13 | 14 | // entry controlled loop 15 | for (int num3 = 1000; num3 <= 500; num3 = num3+1) { 16 | System.out.println(num3); 17 | } 18 | 19 | 20 | int num = 1000; 21 | while (num <= 500) { 22 | System.out.println(num); 23 | num = num + 1; 24 | } 25 | 26 | 27 | 28 | // exit controlled loop 29 | int num2 = 1000; 30 | do { 31 | System.out.println(num2); 32 | num2 = num2 + 1; 33 | } while (num2 <= 500); 34 | } 35 | 36 | } 37 | /* 38 | * 39 | * 40 | 41 | initialisation 42 | while (condition){ 43 | // repeated code 44 | // updation 45 | } 46 | 47 | 48 | for (initialization; condition ; updation){ 49 | * // repeated code 50 | * } 51 | */ -------------------------------------------------------------------------------- /Concept_21-Mar-2022/HTML/Paragraph.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |6 | This module sets the stage, getting you used to important concepts and 7 | syntax such as looking at applying HTML to text, how to create hyperlinks, 8 | and how to use HTML to structure a web page.This module sets the stage, 9 | getting you used to important concepts and syntax such as looking at 10 | applying HTML to text, how to create hyperlinks, and how to use HTML to 11 | structure a web page. 12 |
13 | 14 |15 | This module sets the stage, getting you used to important concepts and 16 | syntax such as looking at applying HTML to text, how to create hyperlinks, 17 | and how to use HTML to structure a web page.This module sets the stage, 18 | getting you used to important concepts and syntax such as looking at 19 | applying HTML to text, how to create hyperlinks, and how to use HTML to 20 | structure a web page. 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /Practise_May_30_2022/Greater2.java: -------------------------------------------------------------------------------- 1 | public class Main { 2 | 3 | public static void main(String[] args){ 4 | // print the greater number between 500 and 1000; 5 | int num1 = 500; 6 | int num2 = 1000; 7 | 8 | if (num1 > num2){ 9 | System.out.print(num1); 10 | }else{ 11 | System.out.print(num2); 12 | } 13 | } 14 | } 15 | 16 | // Method arguments - () // paranthese 17 | // if conditions -- () //parantheses 18 | 19 | // for all block of code --> 20 | // e.g. after class, after method, after if , after else , after loops 21 | // we will always use curly brackets {} 22 | 23 | // for arrays - we use square brackets [] 24 | 25 | // no. of opening brackets should always be equal to no. of closig brackets 26 | 27 | // brackets are very important to understand the flow of a program 28 | 29 | // After every statement like assignment of variable or calculation use a semi colon. 30 | 31 | // Semi colon is not required in a method line or a if eelse condition or class line -------------------------------------------------------------------------------- /Concept_Jan_13/HTML/Division.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |8 | Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dolores magnam 9 | minus officiis optio quam totam, labore in id eos cum eligendi delectus 10 | nihil enim. Sed itaque ipsam nemo iusto labore! 11 |
12 |17 | Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dolores magnam 18 | minus officiis optio quam totam, labore in id eos cum eligendi delectus 19 | nihil enim. Sed itaque ipsam nemo iusto labore! 20 |
21 |26 | Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dolores magnam 27 | minus officiis optio quam totam, labore in id eos cum eligendi delectus 28 | nihil enim. Sed itaque ipsam nemo iusto labore! 29 |
30 |12 | Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quos harum 13 | provident architecto iure velit est esse fugit praesentium, mollitia sunt 14 | molestias doloremque in perspiciatis sit culpa! Praesentium accusamus 15 | tempora sint, error earum, possimus porro eos, ipsa laudantium iusto 16 | maxime iste? 17 |
18 | 19 |20 | Lorem ipsum dolor sit amet consectetur, adipisicing elit. Perspiciatis 21 | doloremque excepturi, optio, incidunt exercitationem laboriosam laborum 22 | atque itaque voluptas ipsam amet? Officia consequatur autem deleniti, 23 | natus doloribus nam provident necessitatibus modi doloremque iusto tempore 24 | quidem eius dolor, ipsam laborum! Ab quibusdam eum deleniti nihil. 25 | Temporibus perferendis magni repudiandae numquam eos. 26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /FirstHand_Dec_09/RelationalOperators.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_09; 2 | 3 | public class RelationalOperators { 4 | public static void main (String args[]) { 5 | 6 | System.out.println(100 == 100); // T 7 | System.out.println(100 == 10); // F 8 | System.out.println(1 == 1000); // F 9 | 10 | 11 | System.out.println(100 != 100); // F 12 | System.out.println(100 != 10); // T 13 | System.out.println(1 != 1000); // T 14 | 15 | 16 | System.out.println(100 > 100); // F 17 | System.out.println(100 > 10); // T 18 | System.out.println(1 > 1000); // F 19 | 20 | 21 | System.out.println(100 < 100); // F 22 | System.out.println(100 < 10); // F 23 | System.out.println(1 < 1000); // T 24 | 25 | System.out.println(100 >= 100); // T 26 | System.out.println(100 >= 10); // T 27 | System.out.println(1 >= 1000); // F 28 | 29 | 30 | System.out.println(100 <= 100); // T 31 | System.out.println(100 <= 10); // F 32 | System.out.println(1 <= 1000); // T 33 | 34 | } 35 | } 36 | /* 37 | * 38 | * == equal to 39 | * --true, false 40 | * 41 | * 42 | * 43 | */ -------------------------------------------------------------------------------- /Concept_May_27_2022/Strings.java: -------------------------------------------------------------------------------- 1 | public class Strings { 2 | public static void main(String[] args) { 3 | 4 | String message = "Hello, everyone !! My name 1232334 @#$%$%%"; 5 | 6 | System.out.println(message); 7 | 8 | // 20 + 30 --> 50 9 | // "Vikas" + "Ranjan" --> "VikasRanjan" 10 | // "20" + "30" --> "2030" 11 | // "VIkas " + 27 --> "VIkas27" 12 | 13 | /// string concatenation. -> joining two strings 14 | 15 | String firstName = "Vikas"; 16 | String lastName = "Ranjan"; 17 | 18 | String newName = firstName + lastName; 19 | System.out.println(newName); 20 | 21 | System.out.println(firstName + " " + lastName); 22 | 23 | System.out.println("Hello, my name is " + "Vikas"); 24 | 25 | System.out.println("Hello, my dateofbirth is " + 27 + " May "); 26 | 27 | System.out.println(" The addition of 500 and 300 is : "+ 500 + 300); 28 | 29 | System.out.println(" The addition of 500 and 300 is : "+ (500 + 300)); 30 | } 31 | } -------------------------------------------------------------------------------- /Practise_Jan_05_2022/CountOfFactors.java: -------------------------------------------------------------------------------- 1 | package Practise_Jan_05_2022; 2 | 3 | public class CountOfFactors { 4 | 5 | public static void main(String[] args) { 6 | 7 | // write a program that prints 8 | //count of factors of a number 9 | 10 | int num = 20; 11 | int count = 0; 12 | 13 | for (int f = 1; f <= num; f++) { 14 | 15 | if(num % f ==0) { 16 | count = count + 1; 17 | 18 | } 19 | 20 | } 21 | 22 | System.out.println(count); 23 | 24 | 25 | /* 26 | * if(count ==2){ 27 | * System.out.println("prime"); 28 | *} 29 | * else{ 30 | * System.out.println("not prime"); 31 | * } 32 | * */ 33 | } 34 | } 35 | 36 | /* 37 | * if x % y ==0, y is a factor of x 38 | * 39 | * 6 --> 1,2,3,6 --> 4 40 | * 41 | * 10 --> 1,2,5,10 --> 4 42 | * 43 | * 20 --> 1,2,4,5,10,20 -->6 44 | * 45 | * 25 --> 1,5,25 --> 3 46 | * 47 | * 100 --> 1,2,4,5,10,20,25,50,100 --> 9 48 | * 49 | * 9 --> 1,3,9 --> 3 50 | * 51 | * 81 --> 1,3,9,27,81 --> 5 52 | * 53 | * 7 --> 1,7 --> 2 54 | * 55 | * 19 --> 1,19 --> 2 56 | * 57 | * 5 --> 1,5 --> 2 58 | * 59 | * 60 | * 61 | */ -------------------------------------------------------------------------------- /Practise_April_06_2022/Loops.java: -------------------------------------------------------------------------------- 1 | package April_06_2022; 2 | 3 | public class Loops { 4 | 5 | public static void main(String[] args) { 6 | // print all numbers from 1 to 5 7 | 8 | // A->B->C->D->B->C->D->B->C->D->B->C->D->B->C->D->B 9 | // num --> 1x 2x 3x 4x 5x 6 10 | int num; 11 | 12 | //line A line B line D 13 | for (num = 1; num <= 5; num = num+1) { 14 | System.out.println(num); // line C 15 | } 16 | 17 | 18 | // System.out.println(x); 19 | 20 | System.out.println(num); //??? 21 | // 5, 1, 6, null 22 | // 5 --> last value of num 23 | // 1 --> XXX - 24 | // 0 --> default value for int --. XXX 25 | // null --> XXX 26 | // 6 -- right ans 27 | 28 | //1<=5 --> true 29 | // 2<= 5 -> true 30 | // 3 <=5 -> true 31 | // 4<= 5 -> true 32 | // 5 <=5 -> true 33 | // 6 <= 5 --> false 34 | 35 | 36 | 37 | //OUTPUT --> 38 | //1 39 | //2 40 | //3 41 | //4 42 | //5 43 | 44 | 45 | } 46 | } 47 | /* 48 | * 49 | *Loops - For, while, do-while 50 | * 51 | * for (assignment; condition; updation){ 52 | * // repeating code here 53 | * } 54 | * 55 | * 56 | * 57 | */ -------------------------------------------------------------------------------- /Practise_May_30_2022/Prime.java: -------------------------------------------------------------------------------- 1 | // "static void main" must be defined in a public class. 2 | public class Main { 3 | public static void main(String[] args) { 4 | 5 | // 1. Take a number as input from user and print its all factors 6 | // 2. Take a number as input and print the total count of its factors 7 | // 3. Take a number as input and print whether its prime or not 8 | int num = 100; 9 | int count = 0; 10 | 11 | for (int i = 1; i <=num; i= i+1 ){ 12 | if (num % i == 0){ 13 | count = count+1; 14 | } 15 | } 16 | 17 | if (count==2){ 18 | System.out.println("Prime"); 19 | }else{ 20 | System.out.println("Not Prime"); 21 | } 22 | 23 | } 24 | } 25 | 26 | 12321 27 | 28 | /* 29 | 30 | 10 -- 1,2,5,10 -- 4 31 | 6 -- 1,2,3,6 -- 4 32 | 20 - 1,2,4,5,10,20 -- 6 33 | 30 - 1,2,3,5,6,10,15,30 -- 8 34 | 35 | 100 - 1,2,4,5,10,20,25,50,100 - 9 36 | 37 | 25 - 1,5,25 -- 3 38 | 39 | 9 - 1,3,9 -- 3 40 | 41 | 81 - 1,3,9,27,81 -- 5 42 | 43 | 7 - 1, 7 -- 2 44 | 11 - 1,11 -- 2 45 | 46 | */ -------------------------------------------------------------------------------- /FirstHand_Dec_22/LogicalOperators.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_22; 2 | 3 | public class LogicalOperators { 4 | public static void main(String[] args) { 5 | int num1 = 10; int num2 = 20; 6 | 7 | if(num1> 0 && num2 > 0) { 8 | System.out.print("hello"); 9 | } 10 | } 11 | } 12 | /* 13 | * Logical operators 14 | * 15 | * AND, OR, NOT 16 | * 17 | * AND --- && 18 | * if the shop is open AND they are making JALEBIS, 19 | * bring Jalebi for me 20 | * 21 | * condition1 condition2 result 22 | * False False False 23 | * False true False 24 | * True False False 25 | * True True True 26 | * 27 | * 28 | * 29 | * OR operator -- || 30 | * 31 | * if you get jalebi, buy jalebi 32 | * or if you get gulabjamun, buy gulabjamun 33 | * 34 | * condition1 condition2 result 35 | * False False False 36 | * False true True 37 | * True False True 38 | * True True True 39 | * 40 | * 41 | * 42 | * NOT operator - ! 43 | * condition Result 44 | * True false 45 | * false True 46 | * 47 | * 48 | * 49 | * 50 | * 51 | * 52 | */ -------------------------------------------------------------------------------- /Concept_Oct_04/HTML/Table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 || ID | 21 |NAME | 22 |CITY | 23 |
|---|---|---|
| 1 | 26 |s1 | 27 |Hyd | 28 |
| 2 | 31 |s2 | 32 |Gurugram | 33 |
| 3 | 36 |s3 | 37 |Delhi | 38 |
7 | "Hypertext" refers to links that connect web pages to one another, either 8 | within a single website or between websites. Links are a fundamental 9 | aspect of the Web. By uploading content to the Internet and linking it to 10 | pages created by other people, you become an active participant in the 11 | World Wide Web. "Hypertext" refers to links that connect web pages to one 12 | another, either within a single website or between websites. Links are a 13 | fundamental aspect of the Web. By uploading content to the Internet and 14 | linking it to pages created by other people, you become an active 15 | participant in the World Wide Web. "Hypertext" refers to links that 16 | connect web pages to one another, either within a single website or 17 | between websites. Links are a fundamental aspect of the Web. By uploading 18 | content to the Internet and linking it to pages created by other people, 19 | you become an active participant in the World Wide Web. 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /FirstHand_Dec_22/RelationalOperators.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Dec_22; 2 | 3 | public class RelationalOperators { 4 | 5 | public static void main(String[] args) { 6 | 7 | System.out.println(100==100); // true 8 | System.out.println(100==10); // false 9 | System.out.println(1==1000); // false 10 | 11 | System.out.println(100 != 100); // false 12 | System.out.println(100 != 10); // true 13 | System.out.println(1 != 1000); // true 14 | 15 | System.out.println(100 > 100); // false 16 | System.out.println(100 > 10); // true 17 | System.out.println(1 > 1000); // false 18 | 19 | System.out.println(100 < 100); // false 20 | System.out.println(100 < 10); // false 21 | System.out.println(1 < 1000); // true 22 | 23 | System.out.println(100 >= 100); // true 24 | System.out.println(100 >= 10); // true 25 | System.out.println(1 >= 1000); // false 26 | 27 | System.out.println(100 <= 100); // true 28 | System.out.println(100 <= 10); // false 29 | System.out.println(1 <= 1000); // true 30 | 31 | } 32 | } 33 | 34 | // Relational operators ---> boolean true/false 35 | 36 | /* 37 | * == : is equal to 38 | * true if both values are equal, else false 39 | * 40 | * 41 | * 42 | * 43 | */ -------------------------------------------------------------------------------- /FirstHand_Jan_04_2022/RelationalOperators.java: -------------------------------------------------------------------------------- 1 | package FirstHand_Jan_04_2022; 2 | 3 | public class RelationalOperators { 4 | 5 | public static void main(String[] args) { 6 | 7 | System.out.println(100==100); // true 8 | System.out.println(1==100); // false 9 | System.out.println(1000==10); //false 10 | 11 | 12 | System.out.println(100!=100); // false 13 | System.out.println(1!=100); // true 14 | System.out.println(1000!=10); //true 15 | 16 | 17 | System.out.println(100>100); // false 18 | System.out.println(1>100); // false 19 | System.out.println(1000>10); //true 20 | 21 | System.out.println(100 >= 100); // true 22 | System.out.println(1>=100); // false 23 | System.out.println(1000>=10); //true 24 | 25 | 26 | System.out.println(100<100); // false 27 | System.out.println(1<100); // true 28 | System.out.println(1000<10); // false 29 | 30 | System.out.println(100 <= 100); // true 31 | System.out.println(1 <= 100); // true 32 | System.out.println(1000 <= 10); //false 33 | 34 | } 35 | } 36 | 37 | /*Relational operators 38 | * 39 | * > 40 | * < 41 | * 42 | * >= 43 | * <= 44 | * 45 | * == 46 | * 47 | * != 48 | * 49 | * 50 | * 51 | * 52 | * 53 | */ -------------------------------------------------------------------------------- /Concept_Oct-25/Concept/HTML/Division.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |25 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Culpa fugiat 26 | repellendus hic, quod eos, molestias quo cupiditate qui quas molestiae 27 | labore rerum explicabo sit consequatur consectetur officiis vel. 28 | Quibusdam aliquam cumque ipsam aliquid totam numquam ipsum natus placeat 29 | illum veniam! 30 |
31 |Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam, hic?
35 |Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam, hic?
40 |17 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum nam 18 | quidem nemo recusandae ab dicta accusamus soluta ipsum, quod ratione 19 | fuga quis iste! Maxime excepturi nobis, omnis sapiente porro quasi. 20 |
21 |26 | Lorem ipsum, dolor sit amet consectetur adipisicing elit. Id dicta fuga, 27 | sapiente laboriosam facilis fugit hic rerum expedita repudiandae nihil 28 | reiciendis! Tempore error quidem doloribus blanditiis, ratione odit 29 | corrupti beatae hic accusamus placeat eum neque minus voluptate amet eos 30 | laborum? 31 |
32 |
24 |
25 | Lorem ipsum dolor sit, amet consectetur adipisicing elit. Eos quasi eaque officiis, deleniti reprehenderit impedit fuga magnam possimus sunt exercitationem voluptatem doloremque quidem, esse quas, id neque ipsum sapiente quam. Distinctio ea reprehenderit mollitia, dolorum accusamus itaque quae. Molestiae in, dicta fugiat quod, repellat harum doloribus quibusdam hic dolores tenetur ea possimus minus nemo. Corrupti nemo blanditiis facere illo fugiat at unde minima commodi, earum repudiandae error eum perferendis, cum quisquam eaque cumque? Odio odit optio quam repellat expedita eum, illum neque deleniti ab error possimus similique dicta libero dolore?
27 |20 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Expedita, 21 | vitae? Iusto ea officiis commodi nostrum sequi laudantium aliquam 22 | praesentium laborum eos, suscipit id, amet tempora voluptatum iure 23 | mollitia ullam ipsa sit vel! Ipsum ratione deserunt error laudantium 24 | sequi facere eaque nihil distinctio qui quibusdam, amet aliquam 25 | laboriosam incidunt voluptas tenetur doloribus dolores veniam, beatae 26 | excepturi nobis adipisci esse repudiandae et! 27 |
28 |33 | Lorem ipsum dolor sit, amet consectetur adipisicing elit. Soluta quis 34 | fugit corrupti veritatis maiores laboriosam magni dignissimos quisquam 35 | id nisi at explicabo saepe eaque, temporibus mollitia quia magnam minima 36 | officiis! Ut, quam? Eligendi doloremque temporibus tempora fugit 37 | voluptatibus. Eaque, quibusdam! 38 |
39 |