Posts

Showing posts from September, 2021

Zeek_45_Inheritance.java

  /* ---Inheritance in Java is a mechanism in which one object acquires all the properties   and behaviors of a parent object  

Zeek_Ch09_PractiseSet2.java

  /*  >> Create a cylinder class and use constructor for its radius and height

Zeek_Ch09_PractiseSet1.java

  /*  >> Create a Cylinder class and use getter setter for its radius and height  >> Calculate Surface Area Base and Volume of cylinder using method.    */

Zeek_43_GuessTheNumber.java

   /* --- Create a class Game, which allows a user to play "Guess the Number"      game once.

Zeek_42_ConstructorInJava.java

  /* ---In Java, a constructor is a block of codes similar to the method

Zeek_40_GetterSetters.java

  package  com.company;

Zeek_Ch08_PractiseSet3.java

/*  Create a class cube and write method to calculate its:  ---totalArea  ---Surafce area of one-face  ---Volume  Take the length of side as an input from user  */

Zeek_Ch08_PractiseSet2.java

  //Create a class CellPhone which prints "Ringing","Vibrating","Silent","Aeroplane Mode"

Zeek_Ch08_PractiseSet1.java

  /*   Create a class Employee1 with following method and propertites:

Zeek_38_CustomClass.java

  /*  Creating your own Java class(Custom class)

Zeek 37- OOP Terminology and its basic types and some other terms

  What are the 4 basics of OOP?

Zeek 36- Introduction to OOPs(Object Oriented Programming)

Image
  What is OOPs concept in Java ?

Zeek_Ch07_PractiseSet1.java

  /* Write a method multiplication that gives multiplication table and use it in main method

Zeek_34_JavaRecursions.java

  /* Recursion in java is a process in which a method calls itself continuously till the end.   A method in java that calls itself is called recursive method   for example- return n* factorial(n-1);  */

Zeek_33_VariableArguments.java

  /* The varrags(VariableArguments) allows the method to accept zero or multiple arguments(values) If we don't know how many argument we will have to pass in the method. */

Zeek_32_MethodOverloading.java

/* If a class has multiple methods having same name but different in parameters,  it is known as Method Overloading. -void: Method that returns nothing.Return type-null,(cannot use return statement ) -static: All object in a class shares static method. */

Zeek_31_MethodInJava.java

  /* -We write a method once and use it many times. We do not require to write code again and again. -The method is executed only when we call or invoke it. -And every program must have a method named main, -Main is the method first invoked when the program is run */

Zeek_Ch06_PractiseSet2.java

  //Create an array and write a code to find its maximum element.

Zeek_Ch06_PractiseSet1.java

//Create an array of 5 float numbers and display their sum using for each loop.

Zeek_28_MultiDimensionArray.java

  /* -Create a multi dimension array that stores floor(ground and first) and -There appartment number in respective floors(3 appartments in 1 floor) and -Print it on console */

Zeek_27_ArrayStarting.java

  /* -Create an array and Use for loop to display in forward and reverse order -Create an array and Use for each loop to display in forward order */

Zeek_Ch5_PractiseSet2.java

  // Print Multiplication table of number .Get number from user. 

Zeek_Ch05_PractiseSet1.java

  // Print sum of first n even integers.Take value of n from user

Zeek_24_ContinueInLoop.java

  package  com.company;

Zeek_23_ForLoop.java

  //Print first 10 odd numbers from 0 using for loop

Zeek_22_DoWhileLoop.java

  //Difference in while and do while loop.

Zeek_21_WhileLoop.java

  // Print integer numbers from 100(including) to 200(including)

Zeek_20_GenerateRandomNo.java

  package  com.company;

Zeek_Ch04_PractiseSet2.java

  /*

Zeek_Ch04_PractiseSet1.java

/* -Write a code which satisfies centain conditions:

Zeek_18_SwitchCaseBreak.java

/* -We can use Switch case break for Strings, Integer and characters.

Zeek_17_RelationalLogicalOperators.java

  /* Write code for following conditions:

Zeek_16_If_Else_Elseif.java

/* Write a program which asks for age and then tells you what you can drive at that age by using if_else conditionals

Zeek_Ch03_PractiseSet2.java

  //Take a name from user(i.e-username) and print a letter by putting username where name appears in letter template . //Letter Template is " Respected name,Read  this blog...Thank you name "

Zeek_Ch03_PractiseSet1.java

  //Ask the user to input a string and replace the space in string with an underscore and print

Zeek_14_StringManipulationMethods.java

  /* -Different methods to manipulate strings -Strings are immutable(once defined, the defined one cannot be changed) */

Zeek_13_PrintManipulations.java

  //Different ways to print package  com.company; import  java.util.Scanner; public   class   Zeek_13_PrintManipulations  {      public   static   void   main ( String []  args ) {                   //System.out.println() working   System . out . println ( "hello Zeek" );   System . out . println ( "This line printed in next line after hello Zeek on console because of ln" );                            //System.out.print() working   System . out . print ( "HII ZEEK" );   System . out . println ( " This line printed next to HII ZEEK on console because...

Zeek_Ch02_PractiseSet2.java

  //Calculate uniform acceleration(a)  by taking value v,u, and s from user.

Zeek_Ch02_PractiseSet1.java

// Write a code which tells us that the given number is greater than the number defined by user

Zeek_10_IncrementDecrement.java

  package  com.company;

Zeek_09_Associativity.java

//Like there is BODMAS in mathematics calculation In Java there is precedence and  //Associativity concept for calculation.

Zeek_08_Operators.java

package  com.company;

Zeek_Ch01_PractiseSet2.java

  //Check whether the number you have input is integer or not

Zeek_Ch01_PractiseSet.java

  //Write a java program that asks user name and prints Hello name.

Zeek_06_BoardPercentage.java

  // Calculate Board percentage using user-input for 5 subjects... //Use float or double because percentage can be in decimals

Zeek_05_UserInput.java

  package  com.company;

Zeek_04_Literals.java

  package  com.company;

MainSum.java

  package  com.company;

Main.java

package  com.company;