├── birthdays.txt
├── .idea
├── copyright
│ └── profiles_settings.xml
├── vcs.xml
├── modules.xml
├── compiler.xml
├── misc.xml
└── uiDesigner.xml
├── out
└── production
│ └── MasteringJava
│ ├── ENUMinJAVA
│ ├── Heros.class
│ ├── Toast.class
│ ├── EnumTest.class
│ ├── Toast$TOAST.class
│ └── exercise
│ │ ├── Sites.class
│ │ └── FavSites.class
│ ├── FileIO
│ ├── MyFriends.class
│ └── exercise
│ │ └── Birthdays.class
│ ├── IsAandHasA
│ ├── MacBook.class
│ ├── AppleInc.class
│ ├── TechCompany.class
│ └── exercise
│ │ ├── Car.class
│ │ ├── Engine.class
│ │ └── Toyto.class
│ ├── Generics
│ ├── GenClass
│ │ ├── Emp.class
│ │ └── Ages.class
│ ├── GenMethods
│ │ ├── WithAL.class
│ │ └── GenMethods.class
│ ├── GenTestTwo
│ │ ├── Movies.class
│ │ ├── Director.class
│ │ └── TotalCast.class
│ └── exercises
│ │ ├── exercise1
│ │ ├── Sweets.class
│ │ └── GetResult.class
│ │ ├── exercise2
│ │ ├── Mobile.class
│ │ └── SeeMobile.class
│ │ └── exercise3
│ │ └── GenericMethods.class
│ ├── JavaConstructor
│ ├── Ayat.class
│ ├── Students.class
│ └── exercise
│ │ └── RocketLauncher.class
│ ├── JavaThread
│ ├── JustThread.class
│ ├── MyThread$1.class
│ ├── MyThread$2.class
│ ├── MyThread.class
│ ├── UsingRunnable.class
│ ├── WithOutExtending.class
│ ├── WithOutExtending$1.class
│ └── exercise
│ │ ├── ThreadExer.class
│ │ ├── ThreadExer2.class
│ │ └── ThreadExer2$1.class
│ ├── MethodDude
│ ├── DudeMethod.class
│ └── exercise
│ │ └── LearningMethods.class
│ ├── ThisKeyword
│ ├── UseOfThis.class
│ ├── exercise
│ │ ├── ThisCons.class
│ │ └── ThisPrac.class
│ └── InvokingCurrentConstructor.class
│ ├── JavaAggregation
│ ├── Student.class
│ ├── Subjects.class
│ └── exercise
│ │ ├── Office.class
│ │ └── OfficeEmployee.class
│ ├── InheritancePro
│ ├── HarryClass.class
│ ├── OsbornNorman.class
│ ├── JustSuperSub
│ │ ├── Cat.class
│ │ └── Animal.class
│ ├── exercise1
│ │ ├── Book.class
│ │ └── Library.class
│ ├── exercise2
│ │ ├── Lecturer.class
│ │ ├── Varsity.class
│ │ └── Department.class
│ └── TypesOfInheritance
│ │ ├── Single
│ │ ├── MacPro.class
│ │ └── AppleCompany.class
│ │ ├── Hierarchical
│ │ ├── SEU.class
│ │ ├── CSEDept.class
│ │ └── ITEDept.class
│ │ └── MultiLevel
│ │ ├── SajeebWazed.class
│ │ ├── SheikhMujib.class
│ │ └── SheikhHasina.class
│ ├── JavaAbstraction
│ ├── TheWorld.class
│ ├── MyBangladesh.class
│ ├── exercise1
│ │ ├── Login.class
│ │ ├── Twitter.class
│ │ ├── Facebook.class
│ │ └── SocialLife.class
│ ├── exercise2
│ │ ├── GetFb.class
│ │ └── FacebookLife.class
│ └── BankExample
│ │ ├── BRAC.class
│ │ ├── Bank.class
│ │ ├── DBBL.class
│ │ └── GetBankInfo.class
│ ├── JavaCollections
│ ├── Map
│ │ ├── MyMap.class
│ │ ├── Apartments.class
│ │ └── exercise
│ │ │ └── Contacts.class
│ ├── ArrayList
│ │ ├── MyAL.class
│ │ └── exercise
│ │ │ └── MyNotes.class
│ ├── LinkedList
│ │ ├── MyLL.class
│ │ ├── Movie.class
│ │ ├── MyLL2.class
│ │ └── exercise
│ │ │ └── Relatives.class
│ └── Iterating
│ │ └── Example.class
│ ├── LoopingThings
│ ├── LoopPractice.class
│ └── exercise
│ │ └── MyLoops.class
│ ├── NonAccessModifiers
│ ├── Dhaka.class
│ ├── Bangladesh.class
│ └── exercise
│ │ └── PracticingNAM.class
│ ├── OperatorsCheck
│ ├── LogicalOpe.class
│ ├── ArithmaticOpe.class
│ ├── AssignmentOpe.class
│ ├── RelationalOpe.class
│ └── exercise
│ │ ├── LogicalExer.class
│ │ ├── ArithmaticExer.class
│ │ ├── AssignmentExer.class
│ │ └── RelationalExer.class
│ ├── SuperKeyWord
│ ├── AdamjeeSchool.class
│ ├── exercise
│ │ ├── MyPc.class
│ │ └── PcOfMyBrother.class
│ └── AdamjeeCollege.class
│ ├── SimplySingleTon
│ ├── AccessingST.class
│ ├── MySingleTon.class
│ └── exercise
│ │ ├── Connection.class
│ │ └── MyDatabase.class
│ ├── ArrayFantastic
│ ├── FantasticArrays.class
│ └── exercise
│ │ ├── ArrayExample1.class
│ │ └── ArrayExample2.class
│ ├── InterfacesInJava
│ ├── PlayingASong.class
│ ├── MyCoolMusicPlayer.class
│ └── exercise
│ │ ├── Wordpress.class
│ │ └── JarvisTheme.class
│ ├── JavaDataTypes
│ ├── exercise
│ │ └── DTypes.class
│ └── MyDataTypesforJava.class
│ ├── JavaCoolVariables
│ ├── MyCoolVariable.class
│ └── exercise
│ │ └── MyVars.class
│ ├── KnowingBasicSyntax
│ ├── MySyntaxClass.class
│ └── exercise
│ │ └── SyntaxPrac.class
│ ├── OverRidingAndOverLoading
│ ├── MyFather.class
│ ├── exercise
│ │ ├── Garage.class
│ │ └── Parking.class
│ └── OverRidingAndOverLoadingPractice.class
│ ├── UnderstnadingGetterSetter
│ ├── MyClock.class
│ ├── TimeTable.class
│ └── exercise
│ │ └── TurnOffPc.class
│ ├── MyAccessModifiers
│ ├── PackageONE
│ │ ├── MyHome.class
│ │ └── MyMobile.class
│ ├── PackageTWO
│ │ └── MyDiary.class
│ └── exercise
│ │ ├── students
│ │ ├── Student1.class
│ │ └── Student2.class
│ │ └── teachers
│ │ ├── Teacher1.class
│ │ └── Teacher2.class
│ ├── MyFirstJavaProgram
│ ├── MyFirstJavaClass.class
│ └── exercise
│ │ └── JavaBegins.class
│ ├── TestingJavaException
│ ├── MultipleCatch.class
│ ├── UsingFinallyBlock.class
│ ├── UsingThrowsException.class
│ ├── exercise
│ │ ├── FinallyPrac.class
│ │ ├── PracException.class
│ │ └── ThrowingExcp.class
│ ├── WithOutAppliyingTryCatch.class
│ └── LearningAboutJavaException.class
│ ├── EncapsulationAndGetterSetter
│ ├── ATMBooth.class
│ ├── BankDetails.class
│ └── examples
│ │ ├── exercise1
│ │ ├── Employee.class
│ │ └── AccessingEmployee.class
│ │ └── exercise2
│ │ ├── SDCard.class
│ │ └── FetchingCardDetails.class
│ ├── MySwitchStatement
│ ├── exercise
│ │ └── HomeSwitch.class
│ └── LearningSwitchStatement.class
│ ├── IfElseDecisionMaking
│ ├── IfElseDecisionMaking.class
│ └── exercise
│ │ └── LiftMechanism.class
│ ├── PlayingWithJavaOperators
│ └── MyJavaOperators.class
│ ├── StringsAndNumbers
│ ├── AwesomeStingAndNumbers.class
│ └── exercise
│ │ └── AwesomeStingAndNumbers.class
│ ├── PolyMorphismBingo
│ ├── DynamicPolymorphism2
│ │ ├── Audi.class
│ │ └── Car.class
│ ├── exercises
│ │ ├── dynamicPoly
│ │ │ ├── Cat.class
│ │ │ ├── Dog.class
│ │ │ ├── Zoo.class
│ │ │ └── Animal.class
│ │ └── staticPoly
│ │ │ ├── Ordering.class
│ │ │ └── PlacingOrder.class
│ ├── DynamicPolymorphism
│ │ ├── MyJava.class
│ │ ├── MyPython.class
│ │ └── DynamicPolyMorphism.class
│ └── StaticPolymorphism
│ │ ├── PolymorphismHome.class
│ │ └── JustFewCoolMethods.class
│ └── UnderstandingClassAndObject
│ ├── SealAndFiroz
│ ├── Seal.class
│ └── OfficeOfFiroz.class
│ ├── SEUExample
│ ├── DeptOfCSE.class
│ └── SoutheastUniversity.class
│ ├── exercises
│ ├── exercise1
│ │ └── MyClass.class
│ └── exercise2
│ │ ├── MPProperties.class
│ │ └── PlayingSong.class
│ └── innerclasses
│ ├── MethodLocalInnerClass.class
│ ├── CheckingOutInnerClasses.class
│ ├── CheckingOutInnerClasses$OtherClass.class
│ └── MethodLocalInnerClass$1MyAwesomeMethodInnerClass.class
├── friends.txt
├── src
├── IsAandHasA
│ ├── MacBook.java
│ ├── exercise
│ │ ├── Engine.java
│ │ ├── Toyto.java
│ │ └── Car.java
│ ├── TechCompany.java
│ └── AppleInc.java
├── ENUMinJAVA
│ ├── Heros.java
│ ├── exercise
│ │ ├── Sites.java
│ │ └── FavSites.java
│ ├── EnumTest.java
│ └── Toast.java
├── InheritancePro
│ ├── exercise2
│ │ ├── Department.java
│ │ ├── Varsity.java
│ │ └── Lecturer.java
│ ├── TypesOfInheritance
│ │ ├── Single
│ │ │ ├── AppleCompany.java
│ │ │ └── MacPro.java
│ │ ├── Hierarchical
│ │ │ ├── SEU.java
│ │ │ ├── CSEDept.java
│ │ │ └── ITEDept.java
│ │ └── MultiLevel
│ │ │ ├── SheikhMujib.java
│ │ │ ├── SajeebWazed.java
│ │ │ └── SheikhHasina.java
│ ├── exercise1
│ │ ├── Book.java
│ │ └── Library.java
│ ├── JustSuperSub
│ │ ├── Cat.java
│ │ └── Animal.java
│ ├── HarryClass.java
│ └── OsbornNorman.java
├── PolyMorphismBingo
│ ├── DynamicPolymorphism2
│ │ ├── Car.java
│ │ └── Audi.java
│ ├── exercises
│ │ ├── dynamicPoly
│ │ │ ├── Cat.java
│ │ │ ├── Dog.java
│ │ │ ├── Animal.java
│ │ │ └── Zoo.java
│ │ └── staticPoly
│ │ │ ├── PlacingOrder.java
│ │ │ └── Ordering.java
│ ├── DynamicPolymorphism
│ │ ├── MyPython.java
│ │ ├── MyJava.java
│ │ └── DynamicPolyMorphism.java
│ └── StaticPolymorphism
│ │ ├── JustFewCoolMethods.java
│ │ └── PolymorphismHome.java
├── JavaAbstraction
│ ├── BankExample
│ │ ├── Bank.java
│ │ ├── BRAC.java
│ │ ├── DBBL.java
│ │ └── GetBankInfo.java
│ ├── exercise1
│ │ ├── SocialLife.java
│ │ ├── Twitter.java
│ │ ├── Facebook.java
│ │ └── Login.java
│ ├── MyBangladesh.java
│ ├── TheWorld.java
│ └── exercise2
│ │ ├── FacebookLife.java
│ │ └── GetFb.java
├── JavaAggregation
│ ├── Subjects.java
│ ├── exercise
│ │ ├── Office.java
│ │ └── OfficeEmployee.java
│ └── Student.java
├── MyAccessModifiers
│ ├── exercise
│ │ ├── students
│ │ │ ├── Student1.java
│ │ │ └── Student2.java
│ │ └── teachers
│ │ │ ├── Teacher2.java
│ │ │ └── Teacher1.java
│ ├── PackageTWO
│ │ └── MyDiary.java
│ └── PackageONE
│ │ ├── MyMobile.java
│ │ └── MyHome.java
├── InterfacesInJava
│ ├── exercise
│ │ ├── JarvisTheme.java
│ │ └── Wordpress.java
│ ├── MyCoolMusicPlayer.java
│ └── PlayingASong.java
├── MyFirstJavaProgram
│ ├── MyFirstJavaClass.java
│ └── exercise
│ │ └── JavaBegins.java
├── SuperKeyWord
│ ├── exercise
│ │ ├── PcOfMyBrother.java
│ │ └── MyPc.java
│ ├── AdamjeeCollege.java
│ └── AdamjeeSchool.java
├── SimplySingleTon
│ ├── exercise
│ │ ├── MyDatabase.java
│ │ └── Connection.java
│ ├── MySingleTon.java
│ └── AccessingST.java
├── Generics
│ ├── exercises
│ │ ├── exercise2
│ │ │ ├── Mobile.java
│ │ │ └── SeeMobile.java
│ │ ├── exercise1
│ │ │ ├── GetResult.java
│ │ │ └── Sweets.java
│ │ └── exercise3
│ │ │ └── GenericMethods.java
│ ├── GenClass
│ │ ├── Ages.java
│ │ └── Emp.java
│ ├── GenTestTwo
│ │ ├── Movies.java
│ │ ├── Director.java
│ │ └── TotalCast.java
│ └── GenMethods
│ │ ├── GenMethods.java
│ │ └── WithAL.java
├── UnderstnadingGetterSetter
│ ├── MyClock.java
│ ├── TimeTable.java
│ └── exercise
│ │ └── TurnOffPc.java
├── JavaThread
│ ├── JustThread.java
│ ├── exercise
│ │ ├── ThreadExer2.java
│ │ └── ThreadExer.java
│ ├── UsingRunnable.java
│ ├── WithOutExtending.java
│ └── MyThread.java
├── OverRidingAndOverLoading
│ ├── MyFather.java
│ ├── exercise
│ │ ├── Garage.java
│ │ └── Parking.java
│ └── OverRidingAndOverLoadingPractice.java
├── JavaConstructor
│ ├── Ayat.java
│ ├── Students.java
│ └── exercise
│ │ └── RocketLauncher.java
├── UnderstandingClassAndObject
│ ├── innerclasses
│ │ ├── CheckingOutInnerClasses.java
│ │ └── MethodLocalInnerClass.java
│ ├── SealAndFiroz
│ │ ├── Seal.java
│ │ └── OfficeOfFiroz.java
│ ├── exercises
│ │ ├── exercise1
│ │ │ └── MyClass.java
│ │ └── exercise2
│ │ │ ├── PlayingSong.java
│ │ │ └── MPProperties.java
│ └── SEUExample
│ │ ├── DeptOfCSE.java
│ │ └── SoutheastUniversity.java
├── NonAccessModifiers
│ ├── Bangladesh.java
│ ├── exercise
│ │ └── PracticingNAM.java
│ └── Dhaka.java
├── KnowingBasicSyntax
│ ├── exercise
│ │ └── SyntaxPrac.java
│ └── MySyntaxClass.java
├── OperatorsCheck
│ ├── LogicalOpe.java
│ ├── exercise
│ │ ├── LogicalExer.java
│ │ ├── ArithmaticExer.java
│ │ ├── RelationalExer.java
│ │ └── AssignmentExer.java
│ ├── ArithmaticOpe.java
│ ├── RelationalOpe.java
│ └── AssignmentOpe.java
├── ArrayFantastic
│ ├── exercise
│ │ ├── ArrayExample2.java
│ │ └── ArrayExample1.java
│ └── FantasticArrays.java
├── TestingJavaException
│ ├── exercise
│ │ ├── PracException.java
│ │ ├── FinallyPrac.java
│ │ └── ThrowingExcp.java
│ ├── WithOutAppliyingTryCatch.java
│ ├── LearningAboutJavaException.java
│ ├── UsingFinallyBlock.java
│ ├── MultipleCatch.java
│ └── UsingThrowsException.java
├── ThisKeyword
│ ├── exercise
│ │ ├── ThisPrac.java
│ │ └── ThisCons.java
│ ├── InvokingCurrentConstructor.java
│ └── UseOfThis.java
├── JavaCollections
│ ├── ArrayList
│ │ ├── MyAL.java
│ │ └── exercise
│ │ │ └── MyNotes.java
│ ├── LinkedList
│ │ ├── Movie.java
│ │ ├── exercise
│ │ │ └── Relatives.java
│ │ ├── MyLL2.java
│ │ └── MyLL.java
│ ├── Map
│ │ ├── exercise
│ │ │ └── Contacts.java
│ │ ├── MyMap.java
│ │ └── Apartments.java
│ └── Iterating
│ │ └── Example.java
├── EncapsulationAndGetterSetter
│ ├── examples
│ │ ├── exercise1
│ │ │ ├── AccessingEmployee.java
│ │ │ └── Employee.java
│ │ └── exercise2
│ │ │ ├── FetchingCardDetails.java
│ │ │ └── SDCard.java
│ ├── ATMBooth.java
│ └── BankDetails.java
├── JavaCoolVariables
│ ├── exercise
│ │ └── MyVars.java
│ └── MyCoolVariable.java
├── PlayingWithJavaOperators
│ └── MyJavaOperators.java
├── JavaDataTypes
│ ├── exercise
│ │ └── DTypes.java
│ └── MyDataTypesforJava.java
├── MethodDude
│ ├── exercise
│ │ └── LearningMethods.java
│ └── DudeMethod.java
├── IfElseDecisionMaking
│ ├── exercise
│ │ └── LiftMechanism.java
│ └── IfElseDecisionMaking.java
├── MySwitchStatement
│ ├── LearningSwitchStatement.java
│ └── exercise
│ │ └── HomeSwitch.java
├── LoopingThings
│ ├── LoopPractice.java
│ └── exercise
│ │ └── MyLoops.java
├── StringsAndNumbers
│ ├── exercise
│ │ └── AwesomeStingAndNumbers.java
│ └── AwesomeStingAndNumbers.java
└── FileIO
│ ├── MyFriends.java
│ └── exercise
│ └── Birthdays.java
├── MasteringJava.iml
└── README.md
/birthdays.txt:
--------------------------------------------------------------------------------
1 | Name: Limon : 12 Jun
2 | Name: Rasel : 10 Oct
3 | Name: Siam : 19 Aug
4 | Name: Swarna : 12 Feb
--------------------------------------------------------------------------------
/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/ENUMinJAVA/Heros.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ENUMinJAVA/Heros.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ENUMinJAVA/Toast.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ENUMinJAVA/Toast.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/FileIO/MyFriends.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/FileIO/MyFriends.class
--------------------------------------------------------------------------------
/friends.txt:
--------------------------------------------------------------------------------
1 | Name: Tahir (Phone: 024602938477)
2 | Name: Ramim (Phone: 054602938478)
3 | Name: Ruhin (Phone: 074602938470)
4 | Name: Shimul (Phone: 104602938470)
5 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/IsAandHasA/MacBook.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IsAandHasA/MacBook.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ENUMinJAVA/EnumTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ENUMinJAVA/EnumTest.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/GenClass/Emp.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/GenClass/Emp.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/IsAandHasA/AppleInc.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IsAandHasA/AppleInc.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaConstructor/Ayat.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaConstructor/Ayat.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/JustThread.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/JustThread.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/MyThread$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/MyThread$1.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/MyThread$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/MyThread$2.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/MyThread.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/MyThread.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MethodDude/DudeMethod.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MethodDude/DudeMethod.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ThisKeyword/UseOfThis.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ThisKeyword/UseOfThis.class
--------------------------------------------------------------------------------
/src/IsAandHasA/MacBook.java:
--------------------------------------------------------------------------------
1 | package IsAandHasA;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class MacBook {
7 |
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/IsAandHasA/exercise/Engine.java:
--------------------------------------------------------------------------------
1 | package IsAandHasA.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Engine {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/src/IsAandHasA/exercise/Toyto.java:
--------------------------------------------------------------------------------
1 | package IsAandHasA.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Toyto {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/ENUMinJAVA/Toast$TOAST.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ENUMinJAVA/Toast$TOAST.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/GenClass/Ages.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/GenClass/Ages.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/IsAandHasA/TechCompany.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IsAandHasA/TechCompany.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/IsAandHasA/exercise/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IsAandHasA/exercise/Car.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAggregation/Student.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAggregation/Student.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ENUMinJAVA/exercise/Sites.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ENUMinJAVA/exercise/Sites.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/FileIO/exercise/Birthdays.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/FileIO/exercise/Birthdays.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/GenMethods/WithAL.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/GenMethods/WithAL.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/GenTestTwo/Movies.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/GenTestTwo/Movies.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/HarryClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/HarryClass.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/IsAandHasA/exercise/Engine.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IsAandHasA/exercise/Engine.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/IsAandHasA/exercise/Toyto.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IsAandHasA/exercise/Toyto.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/TheWorld.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/TheWorld.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAggregation/Subjects.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAggregation/Subjects.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/Map/MyMap.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/Map/MyMap.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaConstructor/Students.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaConstructor/Students.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/UsingRunnable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/UsingRunnable.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/LoopingThings/LoopPractice.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/LoopingThings/LoopPractice.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/NonAccessModifiers/Dhaka.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/NonAccessModifiers/Dhaka.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/LogicalOpe.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/LogicalOpe.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SuperKeyWord/AdamjeeSchool.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SuperKeyWord/AdamjeeSchool.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SuperKeyWord/exercise/MyPc.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SuperKeyWord/exercise/MyPc.class
--------------------------------------------------------------------------------
/src/ENUMinJAVA/Heros.java:
--------------------------------------------------------------------------------
1 | package ENUMinJAVA;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public enum Heros {
7 | SPIDERMAN, SUPERMAN, BATMAN
8 | }
9 |
--------------------------------------------------------------------------------
/src/IsAandHasA/TechCompany.java:
--------------------------------------------------------------------------------
1 | package IsAandHasA;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class TechCompany {
7 |
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/ENUMinJAVA/exercise/FavSites.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ENUMinJAVA/exercise/FavSites.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/GenTestTwo/Director.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/GenTestTwo/Director.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/OsbornNorman.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/OsbornNorman.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/MyBangladesh.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/MyBangladesh.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/WithOutExtending.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/WithOutExtending.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/ArithmaticOpe.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/ArithmaticOpe.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/AssignmentOpe.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/AssignmentOpe.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/RelationalOpe.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/RelationalOpe.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SimplySingleTon/AccessingST.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SimplySingleTon/AccessingST.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SimplySingleTon/MySingleTon.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SimplySingleTon/MySingleTon.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SuperKeyWord/AdamjeeCollege.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SuperKeyWord/AdamjeeCollege.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ArrayFantastic/FantasticArrays.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ArrayFantastic/FantasticArrays.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/GenMethods/GenMethods.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/GenMethods/GenMethods.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/GenTestTwo/TotalCast.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/GenTestTwo/TotalCast.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/JustSuperSub/Cat.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/JustSuperSub/Cat.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/exercise1/Book.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/exercise1/Book.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InterfacesInJava/PlayingASong.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InterfacesInJava/PlayingASong.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/exercise1/Login.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/exercise1/Login.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/exercise2/GetFb.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/exercise2/GetFb.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAggregation/exercise/Office.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAggregation/exercise/Office.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/ArrayList/MyAL.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/ArrayList/MyAL.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/LinkedList/MyLL.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/LinkedList/MyLL.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/Map/Apartments.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/Map/Apartments.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaDataTypes/exercise/DTypes.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaDataTypes/exercise/DTypes.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/WithOutExtending$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/WithOutExtending$1.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/exercise/ThreadExer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/exercise/ThreadExer.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/exercise/ThreadExer2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/exercise/ThreadExer2.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/LoopingThings/exercise/MyLoops.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/LoopingThings/exercise/MyLoops.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/NonAccessModifiers/Bangladesh.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/NonAccessModifiers/Bangladesh.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ThisKeyword/exercise/ThisCons.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ThisKeyword/exercise/ThisCons.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ThisKeyword/exercise/ThisPrac.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ThisKeyword/exercise/ThisPrac.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/exercise1/Library.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/exercise1/Library.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/exercise2/Lecturer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/exercise2/Lecturer.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/exercise2/Varsity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/exercise2/Varsity.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/BankExample/BRAC.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/BankExample/BRAC.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/BankExample/Bank.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/BankExample/Bank.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/BankExample/DBBL.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/BankExample/DBBL.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/exercise1/Twitter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/exercise1/Twitter.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/Iterating/Example.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/Iterating/Example.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/LinkedList/Movie.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/LinkedList/Movie.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/LinkedList/MyLL2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/LinkedList/MyLL2.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCoolVariables/MyCoolVariable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCoolVariables/MyCoolVariable.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCoolVariables/exercise/MyVars.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCoolVariables/exercise/MyVars.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaDataTypes/MyDataTypesforJava.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaDataTypes/MyDataTypesforJava.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaThread/exercise/ThreadExer2$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaThread/exercise/ThreadExer2$1.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/KnowingBasicSyntax/MySyntaxClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/KnowingBasicSyntax/MySyntaxClass.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OverRidingAndOverLoading/MyFather.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OverRidingAndOverLoading/MyFather.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstnadingGetterSetter/MyClock.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstnadingGetterSetter/MyClock.class
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/exercises/exercise1/Sweets.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/exercises/exercise1/Sweets.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/exercises/exercise2/Mobile.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/exercises/exercise2/Mobile.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/JustSuperSub/Animal.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/JustSuperSub/Animal.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/exercise2/Department.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/exercise2/Department.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InterfacesInJava/MyCoolMusicPlayer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InterfacesInJava/MyCoolMusicPlayer.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InterfacesInJava/exercise/Wordpress.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InterfacesInJava/exercise/Wordpress.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/exercise1/Facebook.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/exercise1/Facebook.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/exercise1/SocialLife.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/exercise1/SocialLife.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MethodDude/exercise/LearningMethods.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MethodDude/exercise/LearningMethods.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyAccessModifiers/PackageONE/MyHome.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyAccessModifiers/PackageONE/MyHome.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyAccessModifiers/PackageTWO/MyDiary.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyAccessModifiers/PackageTWO/MyDiary.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyFirstJavaProgram/MyFirstJavaClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyFirstJavaProgram/MyFirstJavaClass.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/exercise/LogicalExer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/exercise/LogicalExer.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SimplySingleTon/exercise/Connection.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SimplySingleTon/exercise/Connection.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SimplySingleTon/exercise/MyDatabase.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SimplySingleTon/exercise/MyDatabase.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/SuperKeyWord/exercise/PcOfMyBrother.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/SuperKeyWord/exercise/PcOfMyBrother.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/MultipleCatch.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/MultipleCatch.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstnadingGetterSetter/TimeTable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstnadingGetterSetter/TimeTable.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ArrayFantastic/exercise/ArrayExample1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ArrayFantastic/exercise/ArrayExample1.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ArrayFantastic/exercise/ArrayExample2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ArrayFantastic/exercise/ArrayExample2.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/EncapsulationAndGetterSetter/ATMBooth.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/EncapsulationAndGetterSetter/ATMBooth.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/exercises/exercise1/GetResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/exercises/exercise1/GetResult.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/exercises/exercise2/SeeMobile.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/exercises/exercise2/SeeMobile.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InterfacesInJava/exercise/JarvisTheme.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InterfacesInJava/exercise/JarvisTheme.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/exercise2/FacebookLife.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/exercise2/FacebookLife.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/Map/exercise/Contacts.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/Map/exercise/Contacts.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/KnowingBasicSyntax/exercise/SyntaxPrac.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/KnowingBasicSyntax/exercise/SyntaxPrac.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyAccessModifiers/PackageONE/MyMobile.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyAccessModifiers/PackageONE/MyMobile.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyFirstJavaProgram/exercise/JavaBegins.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyFirstJavaProgram/exercise/JavaBegins.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MySwitchStatement/exercise/HomeSwitch.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MySwitchStatement/exercise/HomeSwitch.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/exercise/ArithmaticExer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/exercise/ArithmaticExer.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/exercise/AssignmentExer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/exercise/AssignmentExer.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OperatorsCheck/exercise/RelationalExer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OperatorsCheck/exercise/RelationalExer.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/UsingFinallyBlock.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/UsingFinallyBlock.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/ThisKeyword/InvokingCurrentConstructor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/ThisKeyword/InvokingCurrentConstructor.class
--------------------------------------------------------------------------------
/src/InheritancePro/exercise2/Department.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Department extends Varsity {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/EncapsulationAndGetterSetter/BankDetails.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/EncapsulationAndGetterSetter/BankDetails.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/IfElseDecisionMaking/IfElseDecisionMaking.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IfElseDecisionMaking/IfElseDecisionMaking.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAbstraction/BankExample/GetBankInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAbstraction/BankExample/GetBankInfo.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaAggregation/exercise/OfficeEmployee.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaAggregation/exercise/OfficeEmployee.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaConstructor/exercise/RocketLauncher.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaConstructor/exercise/RocketLauncher.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MySwitchStatement/LearningSwitchStatement.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MySwitchStatement/LearningSwitchStatement.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/NonAccessModifiers/exercise/PracticingNAM.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/NonAccessModifiers/exercise/PracticingNAM.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OverRidingAndOverLoading/exercise/Garage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OverRidingAndOverLoading/exercise/Garage.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OverRidingAndOverLoading/exercise/Parking.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OverRidingAndOverLoading/exercise/Parking.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PlayingWithJavaOperators/MyJavaOperators.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PlayingWithJavaOperators/MyJavaOperators.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/StringsAndNumbers/AwesomeStingAndNumbers.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/StringsAndNumbers/AwesomeStingAndNumbers.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/UsingThrowsException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/UsingThrowsException.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/exercise/FinallyPrac.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/exercise/FinallyPrac.class
--------------------------------------------------------------------------------
/src/ENUMinJAVA/exercise/Sites.java:
--------------------------------------------------------------------------------
1 | package ENUMinJAVA.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public enum Sites {
7 | Google,Facebook,Youtube,Quora,Linkedin
8 | }
9 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/Generics/exercises/exercise3/GenericMethods.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/Generics/exercises/exercise3/GenericMethods.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/IfElseDecisionMaking/exercise/LiftMechanism.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/IfElseDecisionMaking/exercise/LiftMechanism.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/ArrayList/exercise/MyNotes.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/ArrayList/exercise/MyNotes.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism2/Audi.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism2/Audi.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism2/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism2/Car.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Cat.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Cat.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Dog.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Dog.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Zoo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Zoo.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/exercise/PracException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/exercise/PracException.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/exercise/ThrowingExcp.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/exercise/ThrowingExcp.class
--------------------------------------------------------------------------------
/src/IsAandHasA/exercise/Car.java:
--------------------------------------------------------------------------------
1 | package IsAandHasA.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Car extends Toyto {
7 |
8 | Engine engine;
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/JavaCollections/LinkedList/exercise/Relatives.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/JavaCollections/LinkedList/exercise/Relatives.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyAccessModifiers/exercise/students/Student1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyAccessModifiers/exercise/students/Student1.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyAccessModifiers/exercise/students/Student2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyAccessModifiers/exercise/students/Student2.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyAccessModifiers/exercise/teachers/Teacher1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyAccessModifiers/exercise/teachers/Teacher1.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/MyAccessModifiers/exercise/teachers/Teacher2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/MyAccessModifiers/exercise/teachers/Teacher2.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism/MyJava.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism/MyJava.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism/MyPython.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism/MyPython.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Animal.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/exercises/dynamicPoly/Animal.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/WithOutAppliyingTryCatch.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/WithOutAppliyingTryCatch.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/SealAndFiroz/Seal.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/SealAndFiroz/Seal.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstnadingGetterSetter/exercise/TurnOffPc.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstnadingGetterSetter/exercise/TurnOffPc.class
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/DynamicPolymorphism2/Car.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.DynamicPolymorphism2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/21/16.
5 | */
6 | public class Car {
7 |
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/exercises/dynamicPoly/Cat.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.exercises.dynamicPoly;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Cat extends Animal {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/exercises/dynamicPoly/Dog.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.exercises.dynamicPoly;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Dog extends Animal{
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Single/MacPro.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Single/MacPro.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/exercises/staticPoly/Ordering.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/exercises/staticPoly/Ordering.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/TestingJavaException/LearningAboutJavaException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/TestingJavaException/LearningAboutJavaException.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/SEUExample/DeptOfCSE.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/SEUExample/DeptOfCSE.class
--------------------------------------------------------------------------------
/src/JavaAbstraction/BankExample/Bank.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.BankExample;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public abstract class Bank {
7 | abstract int yearly_charge();
8 | }
9 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Hierarchical/SEU.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Hierarchical/SEU.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/exercises/staticPoly/PlacingOrder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/exercises/staticPoly/PlacingOrder.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/StringsAndNumbers/exercise/AwesomeStingAndNumbers.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/StringsAndNumbers/exercise/AwesomeStingAndNumbers.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Single/AppleCompany.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Single/AppleCompany.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/StaticPolymorphism/PolymorphismHome.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/StaticPolymorphism/PolymorphismHome.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise1/Employee.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise1/Employee.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise2/SDCard.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise2/SDCard.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Hierarchical/CSEDept.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Hierarchical/CSEDept.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Hierarchical/ITEDept.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/Hierarchical/ITEDept.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/MultiLevel/SajeebWazed.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/MultiLevel/SajeebWazed.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/MultiLevel/SheikhMujib.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/MultiLevel/SheikhMujib.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/StaticPolymorphism/JustFewCoolMethods.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/StaticPolymorphism/JustFewCoolMethods.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/SealAndFiroz/OfficeOfFiroz.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/SealAndFiroz/OfficeOfFiroz.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/exercises/exercise1/MyClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/exercises/exercise1/MyClass.class
--------------------------------------------------------------------------------
/src/JavaAggregation/Subjects.java:
--------------------------------------------------------------------------------
1 | package JavaAggregation;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class Subjects {
7 |
8 | String bangla = "BAN";
9 | String english = "ENG";
10 | }
11 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/InheritancePro/TypesOfInheritance/MultiLevel/SheikhHasina.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/InheritancePro/TypesOfInheritance/MultiLevel/SheikhHasina.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/OverRidingAndOverLoading/OverRidingAndOverLoadingPractice.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/OverRidingAndOverLoading/OverRidingAndOverLoadingPractice.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism/DynamicPolyMorphism.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/PolyMorphismBingo/DynamicPolymorphism/DynamicPolyMorphism.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/SEUExample/SoutheastUniversity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/SEUExample/SoutheastUniversity.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/exercises/exercise2/MPProperties.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/exercises/exercise2/MPProperties.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/exercises/exercise2/PlayingSong.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/exercises/exercise2/PlayingSong.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/MethodLocalInnerClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/MethodLocalInnerClass.class
--------------------------------------------------------------------------------
/src/JavaAbstraction/exercise1/SocialLife.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public abstract class SocialLife {
7 |
8 | abstract String socialSites();
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise1/AccessingEmployee.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise1/AccessingEmployee.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/CheckingOutInnerClasses.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/CheckingOutInnerClasses.class
--------------------------------------------------------------------------------
/src/MyAccessModifiers/exercise/students/Student1.java:
--------------------------------------------------------------------------------
1 | package MyAccessModifiers.exercise.students;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Student1 {
7 |
8 | public static int roll = 1;
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/MyAccessModifiers/exercise/students/Student2.java:
--------------------------------------------------------------------------------
1 | package MyAccessModifiers.exercise.students;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Student2 {
7 |
8 | public static int roll = 2;
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/MyAccessModifiers/exercise/teachers/Teacher2.java:
--------------------------------------------------------------------------------
1 | package MyAccessModifiers.exercise.teachers;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Teacher2 {
7 |
8 | static String d = "Duster";
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise2/FetchingCardDetails.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/EncapsulationAndGetterSetter/examples/exercise2/FetchingCardDetails.class
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/CheckingOutInnerClasses$OtherClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/CheckingOutInnerClasses$OtherClass.class
--------------------------------------------------------------------------------
/src/InterfacesInJava/exercise/JarvisTheme.java:
--------------------------------------------------------------------------------
1 | package InterfacesInJava.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public interface JarvisTheme {
7 |
8 | void themeName();
9 | void wordpressVersion();
10 | void themeAuthor();
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/MethodLocalInnerClass$1MyAwesomeMethodInnerClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rubel007cse/MasteringJava/HEAD/out/production/MasteringJava/UnderstandingClassAndObject/innerclasses/MethodLocalInnerClass$1MyAwesomeMethodInnerClass.class
--------------------------------------------------------------------------------
/src/JavaAbstraction/exercise1/Twitter.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Twitter extends SocialLife {
7 | @Override
8 | String socialSites() {
9 | return "Return from Twitter";
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/exercises/dynamicPoly/Animal.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.exercises.dynamicPoly;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Animal {
7 |
8 | void barking(){
9 | System.out.println("is barking!");
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/exercise1/Facebook.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Facebook extends SocialLife {
7 | @Override
8 | String socialSites() {
9 | return "Return form Facebook";
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/Single/AppleCompany.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.Single;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class AppleCompany {
7 |
8 | // MacPro class extends only AppleCompany class, this is Single Inheritance
9 |
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/Hierarchical/SEU.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.Hierarchical;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class SEU {
7 |
8 |
9 | // Both CSEDept and ITEDept classes extend SEU class, that's Hierarchical Inheritance
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/Single/MacPro.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.Single;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class MacPro extends AppleCompany {
7 |
8 | // MacPro class extends only AppleCompany class, this is Single Inheritance
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/MyFirstJavaProgram/MyFirstJavaClass.java:
--------------------------------------------------------------------------------
1 | package MyFirstJavaProgram;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/5/16.
5 | */
6 | public class MyFirstJavaClass {
7 | public static void main(String[] args){
8 |
9 | System.out.println("Hello World! I'm learning super cool java!");
10 |
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/SuperKeyWord/exercise/PcOfMyBrother.java:
--------------------------------------------------------------------------------
1 | package SuperKeyWord.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class PcOfMyBrother {
7 |
8 | public PcOfMyBrother(){
9 | System.out.println("Brother's Constructor: You're using PC of your brother!");
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/Hierarchical/CSEDept.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.Hierarchical;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class CSEDept extends SEU {
7 |
8 | // Both CSEDept and ITEDept classes extend SEU class, that's Hierarchical Inheritance
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/Hierarchical/ITEDept.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.Hierarchical;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class ITEDept extends SEU {
7 |
8 |
9 | // Both CSEDept and ITEDept classes extend SEU class, that's Hierarchical Inheritance
10 | }
11 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/BankExample/BRAC.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.BankExample;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class BRAC extends Bank {
7 |
8 | // this implementation is done by unknown
9 |
10 | @Override
11 | int yearly_charge() {
12 | return 690;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/BankExample/DBBL.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.BankExample;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class DBBL extends Bank {
7 |
8 | // this implementation is done by unknown
9 |
10 | @Override
11 | int yearly_charge() {
12 | return 650;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/DynamicPolymorphism/MyPython.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.DynamicPolymorphism;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class MyPython {
7 |
8 | public void learning_programming(){
9 | System.out.println("I'm learning Python Programming!");
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/SuperKeyWord/AdamjeeCollege.java:
--------------------------------------------------------------------------------
1 | package SuperKeyWord;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class AdamjeeCollege {
7 |
8 | public AdamjeeCollege(){
9 | System.out.println("Constructor of Adamjee College!");
10 | }
11 |
12 |
13 | int students = 1500;
14 |
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/src/SimplySingleTon/exercise/MyDatabase.java:
--------------------------------------------------------------------------------
1 | package SimplySingleTon.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/18/17.
5 | */
6 | public class MyDatabase {
7 |
8 | public static void main(String[] args){
9 |
10 | Connection c = Connection.getInstance();
11 | c.message();
12 |
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/src/IsAandHasA/AppleInc.java:
--------------------------------------------------------------------------------
1 | package IsAandHasA;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 |
7 |
8 |
9 |
10 | // AppleInc 'IS A' tech company, the inherited relation is IS A relation
11 | public class AppleInc extends TechCompany {
12 |
13 |
14 | // Apple Inc 'HAS A' MacBook.
15 | private MacBook mb;
16 | }
17 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/DynamicPolymorphism/MyJava.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.DynamicPolymorphism;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class MyJava extends MyPython {
7 |
8 | public void learning_programming(){
9 | System.out.println("Java Learning is super cool!");
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/Generics/exercises/exercise2/Mobile.java:
--------------------------------------------------------------------------------
1 | package Generics.exercises.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Mobile {
7 |
8 | T obj;
9 |
10 | void taking_data(T obj){
11 | this.obj = obj;
12 | }
13 |
14 | T get_data(){
15 | return obj;
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/src/InheritancePro/exercise1/Book.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Book extends Library {
7 |
8 | public static void main(String[] args){
9 |
10 | Library b = new Book();
11 | b.book_id();
12 | b.book_issue_date();
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/ENUMinJAVA/EnumTest.java:
--------------------------------------------------------------------------------
1 | package ENUMinJAVA;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class EnumTest {
7 | public static void main(String[] args){
8 | System.out.println(Heros.BATMAN);
9 |
10 | Toast.makeText("GetApplicationContext()","No internet!", Toast.TOAST.LENGTH_LONG);
11 |
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/Generics/GenClass/Ages.java:
--------------------------------------------------------------------------------
1 | package Generics.GenClass;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/7/17.
5 | */
6 | public class Ages {
7 |
8 | T age;
9 |
10 | // to add data
11 | void keep_data(T obj){
12 | age = obj;
13 | }
14 |
15 |
16 | // to retrive and see data
17 | T get_data(){
18 | return age;
19 | }
20 |
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/MultiLevel/SheikhMujib.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.MultiLevel;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class SheikhMujib {
7 |
8 |
9 | // SajeebWazed class extends SheikhHasina class, SheikhHasina class extends SheikhMujib class
10 | // this is called, Multilevel Inheritance
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/UnderstnadingGetterSetter/MyClock.java:
--------------------------------------------------------------------------------
1 | package UnderstnadingGetterSetter;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class MyClock {
7 |
8 | private String time;
9 |
10 | public void setTime(String time) {
11 | this.time = time;
12 | }
13 |
14 | public String getTime() {
15 | return time;
16 | }
17 |
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/InheritancePro/JustSuperSub/Cat.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.JustSuperSub;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/24/16.
5 | */
6 | public class Cat extends Animal {
7 |
8 | // Subclass of Animal super class
9 |
10 | public static void main(String[] args){
11 |
12 | Cat c = new Cat();
13 | c.makeSound();
14 | c.color();
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/Generics/GenTestTwo/Movies.java:
--------------------------------------------------------------------------------
1 | package Generics.GenTestTwo;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/7/17.
5 | */
6 | public class Movies {
7 |
8 | T mov;
9 |
10 | // to add data
11 | void keep_data(T obj){
12 | mov = obj;
13 | }
14 |
15 |
16 | // to retrive and see data
17 | T get_data(){
18 | return mov;
19 | }
20 |
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/InheritancePro/JustSuperSub/Animal.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.JustSuperSub;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/24/16.
5 | */
6 | public class Animal {
7 |
8 | // this is a Super Class
9 |
10 | void makeSound(){
11 | System.out.println("Mewwww...!");
12 | }
13 |
14 | void color(){
15 | System.out.println("Which and brown...!");
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/JavaThread/JustThread.java:
--------------------------------------------------------------------------------
1 | package JavaThread;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class JustThread extends Thread{
7 |
8 | public void run(){
9 | System.out.println("Thread is running...");
10 | }
11 | public static void main(String args[]){
12 | JustThread t = new JustThread();
13 | t.start();
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/DynamicPolymorphism2/Audi.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.DynamicPolymorphism2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/21/16.
5 | */
6 | public class Audi extends Car {
7 |
8 | public static void main(String[] args){
9 |
10 | Car c;
11 |
12 | c = new Audi();
13 | c = new Car();
14 |
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/InheritancePro/exercise2/Varsity.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Varsity {
7 |
8 | void salary(){
9 | System.out.println("Salary of teacher goes from varsity!");
10 | }
11 |
12 | void transport(){
13 | System.out.println("Teachers will get transport facility");
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/src/OverRidingAndOverLoading/MyFather.java:
--------------------------------------------------------------------------------
1 | package OverRidingAndOverLoading;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class MyFather {
7 |
8 | public void cars_of_my_father(){
9 | System.out.println("Audi, Marcedez, BMW");
10 | }
11 |
12 | public void lands_of_my_father(){
13 | System.out.println("Chittagong, Noakhali");
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Generics/GenTestTwo/Director.java:
--------------------------------------------------------------------------------
1 | package Generics.GenTestTwo;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/7/17.
5 | */
6 | public class Director {
7 |
8 | public static void main(String[] ag) {
9 |
10 | Movies object = new Movies();
11 | object.keep_data("Michael Bay");
12 |
13 | System.out.println("Director is: "+object.get_data());
14 |
15 | }
16 | }
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/MultiLevel/SajeebWazed.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.MultiLevel;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class SajeebWazed extends SheikhHasina {
7 |
8 |
9 | // SajeebWazed class extends SheikhHasina class, SheikhHasina class extends SheikhMujib class
10 | // this is called, Multilevel Inheritance
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/JavaConstructor/Ayat.java:
--------------------------------------------------------------------------------
1 | package JavaConstructor;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class Ayat {
7 |
8 | // this is a constructor
9 | Ayat(){
10 | System.out.println("My name is Ayat");
11 | }
12 |
13 | public static void main(String[] args){
14 |
15 | // creating object
16 | Ayat object = new Ayat();
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/src/Generics/GenTestTwo/TotalCast.java:
--------------------------------------------------------------------------------
1 | package Generics.GenTestTwo;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/7/17.
5 | */
6 | public class TotalCast {
7 |
8 | public static void main(String[] ag) {
9 |
10 | Movies object = new Movies();
11 | object.keep_data(39);
12 |
13 | System.out.println("Total Cast: "+object.get_data());
14 |
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/InheritancePro/TypesOfInheritance/MultiLevel/SheikhHasina.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.TypesOfInheritance.MultiLevel;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class SheikhHasina extends SheikhMujib {
7 |
8 |
9 | // SajeebWazed class extends SheikhHasina class, SheikhHasina class extends SheikhMujib class
10 | // this is called, Multilevel Inheritance
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/JavaAggregation/exercise/Office.java:
--------------------------------------------------------------------------------
1 | package JavaAggregation.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Office {
7 |
8 | public static void main(String[] args){
9 |
10 | OfficeEmployee employee = new OfficeEmployee();
11 | System.out.println("Section: "+employee.section);
12 | employee.emp_details();
13 |
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/src/ENUMinJAVA/Toast.java:
--------------------------------------------------------------------------------
1 | package ENUMinJAVA;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 |
7 |
8 | public class Toast {
9 |
10 | public enum TOAST{
11 | LENGTH_LONG, LENGTH_SHORT
12 | }
13 |
14 | public static void makeText(String c, String s, TOAST t){
15 | System.out.println("Toasting: \nContext: "+c+"\nDemo Text: "+s+"\n"+"Length: "+t);
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/src/InheritancePro/exercise1/Library.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Library {
7 |
8 | void book_id(){
9 | System.out.println("Every book inherits a book id from library");
10 | }
11 |
12 | void book_issue_date(){
13 | System.out.println("Every book has a book issue date from librarian");
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/innerclasses/CheckingOutInnerClasses.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.innerclasses;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class CheckingOutInnerClasses {
7 |
8 |
9 | public void test_method(){
10 | // method body
11 | }
12 |
13 |
14 | // this is an Inner Class
15 | public class OtherClass{
16 |
17 | }
18 | }
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/UnderstnadingGetterSetter/TimeTable.java:
--------------------------------------------------------------------------------
1 | package UnderstnadingGetterSetter;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class TimeTable {
7 |
8 | public static void main(String[] args){
9 |
10 | MyClock mc = new MyClock();
11 | mc.setTime("Current time is : 4:54 AM");
12 |
13 | String ct = mc.getTime();
14 | System.out.println(ct);
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/NonAccessModifiers/Bangladesh.java:
--------------------------------------------------------------------------------
1 | package NonAccessModifiers;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class Bangladesh {
7 |
8 | public static void main(String[] args){
9 |
10 | // accessing statically
11 | String s = Dhaka.population;
12 | System.out.println("Dhaka Polulation: "+s);
13 |
14 | Dhaka.housing();
15 |
16 |
17 |
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/OverRidingAndOverLoading/exercise/Garage.java:
--------------------------------------------------------------------------------
1 | package OverRidingAndOverLoading.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Garage {
7 |
8 | public void parking_id() {
9 | System.out.println("Every vachel has a parking id! ");
10 | }
11 |
12 | public void parking_slot() {
13 | System.out.println("Every vachel have a parking slot! ");
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/src/InterfacesInJava/MyCoolMusicPlayer.java:
--------------------------------------------------------------------------------
1 | package InterfacesInJava;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public interface MyCoolMusicPlayer {
7 |
8 |
9 | // to declare Interface, just use 'interface' keyword
10 |
11 | // just a variable
12 | public static int my_age = 12;
13 |
14 |
15 | // a method with body. Methods can't have body in Interface
16 | public void my_cool_method();
17 |
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/innerclasses/MethodLocalInnerClass.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.innerclasses;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class MethodLocalInnerClass {
7 |
8 |
9 | // this is a method
10 | public void testing_method_class(){
11 |
12 |
13 | // this is the class into a method
14 | class MyAwesomeMethodInnerClass {
15 |
16 | }
17 |
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/MasteringJava.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/JavaAggregation/exercise/OfficeEmployee.java:
--------------------------------------------------------------------------------
1 | package JavaAggregation.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class OfficeEmployee {
7 |
8 | String section = "Accounts";
9 |
10 | public void emp_details(){
11 | System.out.println("Name: Rahim");
12 | System.out.println("Position: Manager");
13 | System.out.println("Salary: 40k");
14 | System.out.println("Age: 28");
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/src/InheritancePro/exercise2/Lecturer.java:
--------------------------------------------------------------------------------
1 | package InheritancePro.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Lecturer extends Department {
7 |
8 | public static void main(String[] k){
9 |
10 | Department obj = new Lecturer();
11 | Lecturer obj2 = new Lecturer();
12 |
13 | obj.salary();
14 | obj.transport();
15 |
16 | obj2.salary();
17 | obj2.transport();
18 |
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/StaticPolymorphism/JustFewCoolMethods.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.StaticPolymorphism;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class JustFewCoolMethods {
7 |
8 | // just wrote 2 methods with same name, different parameters
9 | public int multiply_numbers(int a, int b){
10 | return a*b;
11 | }
12 |
13 | public int multiply_numbers(int a, int b, int c){
14 | return a*b*c;
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/MyBangladesh.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public abstract class MyBangladesh {
7 |
8 | public void area_of_bd(){
9 | System.out.print("Area: 147,570 sq.km");
10 | }
11 | public void population_of_bd(){
12 | System.out.println("Population: 160million");
13 | }
14 |
15 | // abstract method
16 | public abstract void cool_abstract_method();
17 |
18 |
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/SimplySingleTon/exercise/Connection.java:
--------------------------------------------------------------------------------
1 | package SimplySingleTon.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/18/17.
5 | */
6 | public class Connection {
7 | private static Connection ourInstance = new Connection();
8 |
9 | public static Connection getInstance() {
10 | return ourInstance;
11 | }
12 |
13 | private Connection() {
14 | }
15 |
16 | void message(){
17 | System.out.println("Connection Established..");
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/SuperKeyWord/exercise/MyPc.java:
--------------------------------------------------------------------------------
1 | package SuperKeyWord.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class MyPc extends PcOfMyBrother {
7 |
8 | public MyPc(){
9 | super();
10 | }
11 |
12 | public MyPc(String s){
13 | System.out.println(s+"I'm also using my pc!");
14 | }
15 |
16 |
17 | public static void main(String[] args){
18 |
19 | MyPc myPc1 = new MyPc();
20 |
21 |
22 | }
23 |
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/SealAndFiroz/Seal.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.SealAndFiroz;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class Seal {
7 |
8 | public void name(){
9 | System.out.println("Firoz Ahemd");
10 | }
11 |
12 | public void designation(){
13 | System.out.println("CEO, Alpha Tech");
14 | }
15 | public void today_date(){
16 | System.out.println("31/12/2017");
17 | }
18 |
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/Generics/GenClass/Emp.java:
--------------------------------------------------------------------------------
1 | package Generics.GenClass;
2 |
3 |
4 | /**
5 | * Created by mosharrofrubel on 1/7/17.
6 | */
7 | public class Emp {
8 |
9 | public static void main(String[] ag){
10 |
11 | Ages object = new Ages();
12 |
13 | object.keep_data(26);
14 |
15 | // remove comment to see compile time error
16 | // object.keep_data("Sami");
17 |
18 | System.out.println("Age is: "+object.get_data());
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/SimplySingleTon/MySingleTon.java:
--------------------------------------------------------------------------------
1 | package SimplySingleTon;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class MySingleTon {
7 | private static MySingleTon ourInstance = new MySingleTon();
8 |
9 | public static MySingleTon getInstance() {
10 | return ourInstance;
11 | }
12 |
13 | private MySingleTon() {
14 | }
15 |
16 | public void stMethod(){
17 | System.out.println("Responding from single ton class!");
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/TheWorld.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class TheWorld extends MyBangladesh {
7 |
8 | // Abstract Class can't have object , try below line by removing the comment sign
9 | // MyBangladesh mb = new MyBangladesh();
10 |
11 |
12 | @Override
13 | public void cool_abstract_method() {
14 |
15 | }
16 |
17 | // We extented the 'MyBangladesh' class and the abstract method is forced to use.
18 | }
19 |
--------------------------------------------------------------------------------
/src/MyFirstJavaProgram/exercise/JavaBegins.java:
--------------------------------------------------------------------------------
1 | package MyFirstJavaProgram.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class JavaBegins {
7 |
8 | public static void main(String[] args){
9 |
10 | System.out.println("Hi everyone!");
11 | System.out.println("My name is Sayan");
12 | System.out.println("I am learning java");
13 | System.out.println("Mastering Java");
14 |
15 |
16 | // this is a comment
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/Generics/exercises/exercise1/GetResult.java:
--------------------------------------------------------------------------------
1 | package Generics.exercises.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class GetResult {
7 | public static void main(String[] args){
8 |
9 | Sweets obj = new Sweets<>();
10 |
11 | obj.keep_quality("FRESH");
12 | obj.keep_quantity(12);
13 |
14 | System.out.println("Quality is: "+obj.see_quality());
15 | System.out.println("Quantity is: "+obj.see_quantity()+" KG");
16 |
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/JavaConstructor/Students.java:
--------------------------------------------------------------------------------
1 | package JavaConstructor;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class Students {
7 |
8 | String name;
9 |
10 | Students(String s){
11 | name = s;
12 | }
13 |
14 | public void showing(){
15 | System.out.println("Name of student is : "+name);
16 | }
17 |
18 | public static void main(String[] agrs){
19 |
20 | Students obj = new Students("Ayat");
21 | obj.showing();
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/SimplySingleTon/AccessingST.java:
--------------------------------------------------------------------------------
1 | package SimplySingleTon;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/18/17.
5 | */
6 | public class AccessingST {
7 |
8 | public static void main(String[] args){
9 |
10 | // uncomment the below line to see the result
11 | // MySingleTon mySingleTon = new MySingleTon();
12 |
13 |
14 | // accessing single ton for once
15 | MySingleTon accessingST = MySingleTon.getInstance();
16 | accessingST.stMethod();
17 |
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/MyAccessModifiers/PackageTWO/MyDiary.java:
--------------------------------------------------------------------------------
1 | package MyAccessModifiers.PackageTWO;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class MyDiary {
7 |
8 | protected void poems(){
9 | System.out.println("Im poems from package two..");
10 | }
11 |
12 | void stories(){
13 | System.out.println("Im stories from package two..");
14 | }
15 |
16 | public void importantDates(){
17 | System.out.println("Im important dates from package two..");
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/KnowingBasicSyntax/exercise/SyntaxPrac.java:
--------------------------------------------------------------------------------
1 | package KnowingBasicSyntax.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class SyntaxPrac {
7 |
8 | public static void main(String[] args){
9 |
10 | int i = 10;
11 | String s = "Java";
12 |
13 | System.out.println(i);
14 | System.out.println(s);
15 |
16 | name();
17 |
18 | }
19 |
20 | public static void name(){
21 | System.out.println("Name is, Mosharrof Rubel");
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/Generics/exercises/exercise1/Sweets.java:
--------------------------------------------------------------------------------
1 | package Generics.exercises.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Sweets {
7 |
8 | private T quality;
9 | private T quantity;
10 |
11 | void keep_quality(T q){
12 | quality = q;
13 | }
14 |
15 | T see_quality(){
16 | return quality;
17 | }
18 |
19 | void keep_quantity(T qu){
20 | quantity = qu;
21 | }
22 |
23 | T see_quantity(){
24 | return quantity;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/exercise1/Login.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Login {
7 | public static void main(String[] args){
8 |
9 | SocialLife socialLife;
10 |
11 | socialLife = new Facebook();
12 | String a = socialLife.socialSites();
13 | System.out.println(a);
14 |
15 | socialLife = new Twitter();
16 | String b = socialLife.socialSites();
17 | System.out.println(b);
18 |
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/SealAndFiroz/OfficeOfFiroz.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.SealAndFiroz;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/20/16.
5 | */
6 | public class OfficeOfFiroz {
7 |
8 | public static void main(String[] args){
9 |
10 | // Creating Object
11 | Seal obj = new Seal();
12 |
13 | System.out.println("Printing Real Seal...");
14 |
15 | // Real Seal
16 | obj.name();
17 | obj.designation();
18 | obj.today_date();
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/exercises/exercise1/MyClass.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.exercises.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class MyClass {
7 |
8 | // this is a constructor
9 | public MyClass() {
10 | }
11 |
12 | public static void main(String[] args){
13 |
14 | MyClass mc = new MyClass();
15 | mc.myMethod();
16 | }
17 |
18 |
19 | public void myMethod(){
20 | System.out.println("This is a method");
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/src/ENUMinJAVA/exercise/FavSites.java:
--------------------------------------------------------------------------------
1 | package ENUMinJAVA.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class FavSites {
7 |
8 | public static void main(String[] args){
9 |
10 | System.out.println("Fav Site 1: "+Sites.Google);
11 | System.out.println("Fav Site 2: "+Sites.Facebook);
12 | System.out.println("Fav Site 3: "+Sites.Youtube);
13 | System.out.println("Fav Site 4: "+Sites.Quora);
14 | System.out.println("Fav Site 5: "+Sites.Linkedin);
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/src/NonAccessModifiers/exercise/PracticingNAM.java:
--------------------------------------------------------------------------------
1 | package NonAccessModifiers.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class PracticingNAM {
7 |
8 | static final int age1 = 50;
9 | static int age2 = 50;
10 |
11 | public static void main(String[] args){
12 |
13 | // age1 = 23;
14 | age2 = 24;
15 |
16 | addinNums(10,30,40);
17 |
18 | }
19 |
20 | static void addinNums(int i,int j, int k){
21 | System.out.println("Result is: "+(i+j+k));
22 | }
23 |
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/LogicalOpe.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class LogicalOpe {
7 | public static void main(String[] args){
8 |
9 | boolean r = true;
10 | boolean s = false;
11 |
12 | boolean resultOfAnd = r && s;
13 | boolean resultOfOr = r || s;
14 | boolean resultOfNot = !(r && s);
15 |
16 | System.out.println(resultOfAnd);
17 | System.out.println(resultOfOr);
18 | System.out.println(resultOfNot);
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/ArrayFantastic/exercise/ArrayExample2.java:
--------------------------------------------------------------------------------
1 | package ArrayFantastic.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class ArrayExample2 {
7 |
8 | public static void main(String[] a){
9 |
10 | double[] movie_ratings = {3.8,9.2,7.5,8.2,6.6,4.1,9.0,5.6,2.9,5.0};
11 |
12 | for(int j=0; j < movie_ratings.length; j++){
13 | System.out.println("Rating is: "+movie_ratings[j]);
14 | }
15 |
16 | System.out.println("Value of Index no 4 is: "+movie_ratings[3]);
17 |
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/TestingJavaException/exercise/PracException.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class PracException {
7 |
8 | public static void main(String[] args){
9 |
10 | int i = 0;
11 |
12 | try {
13 | System.out.println(10 / i);
14 | } catch (ArithmeticException e){
15 | System.out.println(e);
16 | }
17 |
18 | int p = 10, q = 11;
19 | System.out.println("p+q is: "+(p+q));
20 |
21 |
22 | }
23 |
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/ThisKeyword/exercise/ThisPrac.java:
--------------------------------------------------------------------------------
1 | package ThisKeyword.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class ThisPrac {
7 |
8 | private int i;
9 |
10 | public int getI() {
11 | return i;
12 | }
13 |
14 | public void setI(int i) {
15 | this.i = i;
16 | }
17 |
18 | public static void main(String[] args){
19 |
20 | ThisPrac thisPrac = new ThisPrac();
21 | thisPrac.setI(10);
22 | System.out.println("Value of i is: "+thisPrac.getI());
23 |
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/JavaCollections/ArrayList/MyAL.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.ArrayList;
2 |
3 | import java.util.ArrayList;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/7/17.
7 | */
8 | public class MyAL {
9 |
10 | public static void main(String[] args){
11 |
12 | ArrayList myAL = new ArrayList();
13 | myAL.add("Rafi");
14 | myAL.add("Konok");
15 | myAL.add("Santa");
16 |
17 | System.out.println("Index 1 is: "+myAL.get(1));
18 | System.out.println("Size of ArrayList: "+myAL.size());
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/exercises/dynamicPoly/Zoo.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.exercises.dynamicPoly;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Zoo {
7 |
8 | public static void main(String[] args){
9 |
10 | Animal animal;
11 |
12 | animal = new Dog();
13 | System.out.print("Dog is ");
14 | animal.barking();
15 |
16 | System.out.println();
17 |
18 | animal = new Cat();
19 | System.out.print("Cat is ");
20 | animal.barking();
21 |
22 | }
23 |
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/exercises/staticPoly/PlacingOrder.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.exercises.staticPoly;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class PlacingOrder {
7 |
8 | public static void main(String[] args){
9 |
10 | Ordering order = new Ordering();
11 | order.orderingItems("T-Shirt");
12 | order.orderingItems("T-Shirt", "Sunglass");
13 | order.orderingItems("T-Shirt"," Sunglass","Cap");
14 | order.orderingItems("T-Shirt"," Sunglass","Cap", "Belt");
15 |
16 |
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/exercise/LogicalExer.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class LogicalExer {
7 | public static void main(String[] args){
8 |
9 | boolean p = false;
10 | boolean q = true;
11 |
12 | boolean resultOfAndIs = p && q;
13 | boolean resultOfOrIs = p || q;
14 | boolean resultOfNotIs = !(p && q);
15 |
16 | System.out.println(resultOfAndIs);
17 | System.out.println(resultOfOrIs);
18 | System.out.println(resultOfNotIs);
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/TestingJavaException/exercise/FinallyPrac.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class FinallyPrac {
7 |
8 | public static void main(String[] args){
9 |
10 | int i = 0;
11 |
12 | try {
13 | System.out.println(20 / i);
14 | } catch (ArithmeticException e){
15 | System.out.println(e);
16 | } finally {
17 | i = 2;
18 | }
19 |
20 | System.out.println("Vaule of i is changed to finnaly block. i = "+i);
21 |
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/exercise2/FacebookLife.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public abstract class FacebookLife {
7 |
8 | abstract void profile();
9 | abstract void timeline();
10 | abstract void home();
11 |
12 | void status(){
13 | System.out.println("You can put status here!");
14 | }
15 |
16 | void like(){
17 | System.out.println("You can like from here!");
18 | }
19 |
20 | void comment(){
21 | System.out.println("You can put comments from here!");
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/ThisKeyword/exercise/ThisCons.java:
--------------------------------------------------------------------------------
1 | package ThisKeyword.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class ThisCons {
7 |
8 | public ThisCons() {
9 | System.out.println("This is a constructor!");
10 | }
11 |
12 | public ThisCons(int i) {
13 | this();
14 | // used to invoke the current class constructor
15 | System.out.println("This is ANOTHER constructor! Value is: "+i);
16 | }
17 |
18 |
19 | public static void main(String[] args){
20 |
21 | ThisCons tc = new ThisCons(12);
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/JavaConstructor/exercise/RocketLauncher.java:
--------------------------------------------------------------------------------
1 | package JavaConstructor.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class RocketLauncher {
7 |
8 | public RocketLauncher() {
9 | System.out.println("OMG! Object Created! Rocket Launch initialized!");
10 | }
11 |
12 | public static void main(String[] args){
13 |
14 | RocketLauncher rocketLauncher = new RocketLauncher();
15 | rocketLauncher.startRocket();
16 |
17 |
18 |
19 | }
20 |
21 | void startRocket(){
22 | System.out.println("Rocket starting..");
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/MyAccessModifiers/PackageONE/MyMobile.java:
--------------------------------------------------------------------------------
1 | package MyAccessModifiers.PackageONE;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/18/16.
5 | */
6 | public class MyMobile {
7 |
8 | // private password method
9 | private int password() {
10 | return 44535;
11 | };
12 |
13 | protected void galary(){
14 | System.out.println("Showing galary pics..");
15 | }
16 |
17 | public static void main(String[] args){
18 | MyMobile myMobile = new MyMobile();
19 |
20 | // trying to access 'password' method
21 | myMobile.password();
22 |
23 | }
24 |
25 |
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/TestingJavaException/WithOutAppliyingTryCatch.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class WithOutAppliyingTryCatch {
7 |
8 | public static void main(String [] args) {
9 |
10 |
11 | String[] names = {"Lina", "Jiya", "Ruhin"};
12 | System.out.println("Name of the student is, " + names[10]);
13 |
14 | // As there's no exception handling, compiler won't able to execute next lines.
15 | // Program will be stopped after getting exception
16 |
17 | System.out.println("Going to next lines...");
18 |
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Generics/exercises/exercise2/SeeMobile.java:
--------------------------------------------------------------------------------
1 | package Generics.exercises.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class SeeMobile {
7 |
8 | public static void main(String[] y){
9 |
10 | Mobile mobile_amonut = new Mobile<>();
11 | mobile_amonut.taking_data(5);
12 |
13 | Mobile mobile_name = new Mobile<>();
14 | mobile_name.taking_data("Xiaomi Mi");
15 |
16 | System.out.println("Total mobiles: "+mobile_amonut.get_data());
17 | System.out.println("Mobile name: "+mobile_name.get_data());
18 |
19 | }
20 |
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/ArithmaticOpe.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class ArithmaticOpe {
7 |
8 | public static void main(String[] ar){
9 |
10 | int x = 30;
11 | int y = 10;
12 |
13 | System.out.println("x+y = "+ (x+y));
14 | System.out.println("x-y = "+ (x-y));
15 | System.out.println("x*y = "+ (x*y));
16 | System.out.println("x/y = "+ (x/y));
17 | System.out.println("x%y = "+ (x%y));
18 |
19 | System.out.println("x++ = "+ (x++));
20 | System.out.println("x-- = "+ (x--));
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/EncapsulationAndGetterSetter/examples/exercise1/AccessingEmployee.java:
--------------------------------------------------------------------------------
1 | package EncapsulationAndGetterSetter.examples.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class AccessingEmployee {
7 |
8 | public static void main(String[] a){
9 |
10 | Employee obj = new Employee();
11 |
12 | obj.setEmp_name("Ruhul Amin");
13 | obj.setAge(45);
14 | obj.setSalary(35500);
15 |
16 |
17 | System.out.println("Name: "+obj.getEmp_name());
18 | System.out.println("Age: "+obj.getAge());
19 | System.out.println("Salary: "+obj.getSalary());
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/InheritancePro/HarryClass.java:
--------------------------------------------------------------------------------
1 | package InheritancePro;
2 |
3 | /**
4 | * Created by mosharrofrubel on 10/26/16.
5 | */
6 | public class HarryClass extends OsbornNorman{
7 |
8 | public static void main(String[] args){
9 |
10 | // creating object of own class
11 | HarryClass object = new HarryClass();
12 |
13 | // Inheriting properties from OsbornNorman class
14 | object.research_of_lifetime();
15 | object.diseases_of_harry();
16 |
17 | // Inheriting variable
18 | int i = object.board_members;
19 | System.out.println("Inherited board members are: "+i);
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/JavaCollections/LinkedList/Movie.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.LinkedList;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/8/17.
5 | */
6 | public class Movie {
7 |
8 | int mov_id;
9 | String name;
10 | double rating;
11 | String lead_actor;
12 | String lead_actress;
13 | String director;
14 |
15 | public Movie(int _id,String _name,double _rating,String _lead_actor,String _lead_acress,String _direcotr){
16 | mov_id = _id;
17 | name = _name;
18 | rating = _rating;
19 | lead_actor = _lead_actor;
20 | lead_actress = _lead_acress;
21 | director = _direcotr;
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/MyAccessModifiers/exercise/teachers/Teacher1.java:
--------------------------------------------------------------------------------
1 | package MyAccessModifiers.exercise.teachers;
2 |
3 | import MyAccessModifiers.exercise.students.Student1;
4 | import MyAccessModifiers.exercise.students.Student2;
5 |
6 | /**
7 | * Created by mosharrofrubel on 1/17/17.
8 | */
9 | public class Teacher1 {
10 |
11 | public static void main(String[] a){
12 | int r1 = Student1.roll;
13 | int r2 = Student2.roll;
14 |
15 | System.out.println("Roll 1 :"+r1);
16 | System.out.println("Roll 2 :"+r2);
17 |
18 | String dus = Teacher2.d;
19 | System.out.println("Boring from teacher 1: "+dus);
20 |
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/src/ThisKeyword/InvokingCurrentConstructor.java:
--------------------------------------------------------------------------------
1 | package ThisKeyword;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class InvokingCurrentConstructor {
7 |
8 | public InvokingCurrentConstructor(){
9 | System.out.println("invoked constructor");
10 | };
11 |
12 | public InvokingCurrentConstructor(String s){
13 | this();
14 | System.out.println(s);
15 |
16 | // Run this code commenting this(); to see the difference
17 |
18 | };
19 |
20 | public static void main(String[] a){
21 | InvokingCurrentConstructor is = new InvokingCurrentConstructor("Sonam");
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/JavaCollections/Map/exercise/Contacts.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.Map.exercise;
2 | import java.util.HashMap;
3 | import java.util.Map;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/16/17.
7 | */
8 | public class Contacts {
9 |
10 | public static void main(String[] args){
11 |
12 | Map contacts = new HashMap<>();
13 |
14 | contacts.put("0163649257", "Jeny");
15 | contacts.put("0154er9557", "Sazia");
16 | contacts.put("0135664957", "Roni");
17 | contacts.put("0194645957", "Shimu");
18 | contacts.put("0144645957", "Rini");
19 |
20 | System.out.println(contacts);
21 |
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/JavaCoolVariables/exercise/MyVars.java:
--------------------------------------------------------------------------------
1 | package JavaCoolVariables.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class MyVars {
7 |
8 | static int year = 2016;
9 |
10 | public static void main(String[] o){
11 |
12 | System.out.println("Year is: "+year);
13 |
14 | int age = 19;
15 | System.out.println("Age is: "+age);
16 |
17 | String name = "Mosharrof Rubel";
18 | System.out.println("Name is: "+name);
19 |
20 | my_cgpa();
21 |
22 | }
23 |
24 | static void my_cgpa(){
25 | double cg = 2.5;
26 | System.out.println("CGPA is: "+cg);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/exercise/ArithmaticExer.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class ArithmaticExer {
7 |
8 | public static void main(String[] ar){
9 |
10 | int p = 60;
11 | int q = 20;
12 |
13 | System.out.println("p+q is "+ (p+q));
14 | System.out.println("p-q is "+ (p-q));
15 | System.out.println("p*q is "+ (p*q));
16 | System.out.println("p/q is "+ (p/q));
17 | System.out.println("p%q is "+ (p%q));
18 |
19 | System.out.println("p++ is "+ (p++));
20 | System.out.println("p-- is "+ (p--));
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/BankExample/GetBankInfo.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.BankExample;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class GetBankInfo {
7 |
8 | public static void main(String[] args) {
9 |
10 | Bank obj;
11 | int charge;
12 |
13 | obj = new BRAC();
14 | charge = obj.yearly_charge();
15 | System.out.println("Bank yearly charge is: "+charge+" BDT");
16 |
17 | obj = new DBBL();
18 | charge = obj.yearly_charge();
19 | System.out.println("Bank yearly charge is: "+charge+" BDT");
20 |
21 | // calling method abobe is done by user/programmer
22 |
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/NonAccessModifiers/Dhaka.java:
--------------------------------------------------------------------------------
1 | package NonAccessModifiers;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class Dhaka {
7 |
8 | // ---------- staticPoly exercises ------------
9 | static String population = "160m";
10 |
11 | static void housing(){
12 | System.out.println("Dhaka housing calculation..");
13 | }
14 |
15 |
16 | // ---------- final exercises ------------
17 | final String dhaka_area = "104 sq miles";
18 |
19 | // trying to change dhaka_area values
20 | final public void increaseArea(){
21 |
22 | // remove comment to see effect
23 | // dhaka_area = "200 sq miles";
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/SuperKeyWord/AdamjeeSchool.java:
--------------------------------------------------------------------------------
1 | package SuperKeyWord;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class AdamjeeSchool extends AdamjeeCollege {
7 |
8 | // invoking super class constructor
9 | public AdamjeeSchool(){
10 | // we'll invoke Constructor of College
11 | super();
12 | }
13 |
14 |
15 | public static void main(String[] args){
16 |
17 | // creating object
18 | AdamjeeSchool as = new AdamjeeSchool();
19 | as.showing();
20 |
21 | }
22 |
23 | int students = 1500;
24 | public void showing(){
25 | System.out.println("Students: "+super.students);
26 | }
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/TestingJavaException/LearningAboutJavaException.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class LearningAboutJavaException {
7 |
8 | public static void main(String [] args) {
9 |
10 | // exception handling test
11 | try {
12 | String[] names = {"Lina", "Jiya", "Ruhin"};
13 | System.out.println("Name of the student is, " + names[10]);
14 |
15 | } catch(ArrayIndexOutOfBoundsException e) {
16 |
17 | System.out.println("The Exception is :" + e);
18 |
19 | }
20 |
21 | System.out.println("Going to next lines...");
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/EncapsulationAndGetterSetter/examples/exercise2/FetchingCardDetails.java:
--------------------------------------------------------------------------------
1 | package EncapsulationAndGetterSetter.examples.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class FetchingCardDetails {
7 |
8 | public static void main(String[] s){
9 |
10 | SDCard sdCard = new SDCard();
11 |
12 | sdCard.setName("ExternalMemory");
13 | sdCard.setSize(16.0);
14 | sdCard.setFreeSpace(9.3);
15 |
16 |
17 | System.out.println("Card Name: "+sdCard.getName());
18 | System.out.println("Card Size: "+sdCard.getSize());
19 | System.out.println("Card Free Space: "+sdCard.getFreeSpace());
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/StaticPolymorphism/PolymorphismHome.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.StaticPolymorphism;
2 |
3 | import PolyMorphismBingo.StaticPolymorphism.JustFewCoolMethods;
4 |
5 | /**
6 | * Created by mosharrofrubel on 12/8/16.
7 | */
8 | public class PolymorphismHome {
9 | public static void main(String [] args){
10 |
11 | // creating object and calling methods
12 | JustFewCoolMethods m_object = new JustFewCoolMethods();
13 | System.out.println(m_object.multiply_numbers(3,5));
14 | System.out.println(m_object.multiply_numbers(3,4,5));
15 |
16 | // Same methods, behaving differently - This is called staticPoly polymorphism
17 |
18 |
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/InterfacesInJava/PlayingASong.java:
--------------------------------------------------------------------------------
1 | package InterfacesInJava;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class PlayingASong implements MyCoolMusicPlayer {
7 | public static void main(String[] arg){
8 |
9 | PlayingASong ps = new PlayingASong();
10 |
11 | // calling method
12 | ps.my_cool_method();
13 |
14 | // printing variable
15 | System.out.println("My Age is: " + MyCoolMusicPlayer.my_age);
16 |
17 | }
18 |
19 |
20 | @Override
21 | public void my_cool_method() {
22 |
23 | System.out.println("This method is overridden from interface");
24 |
25 | }
26 |
27 | // 'implements' keyword to use a interface in a class.
28 | }
29 |
--------------------------------------------------------------------------------
/src/TestingJavaException/UsingFinallyBlock.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class UsingFinallyBlock {
7 |
8 |
9 | public static void main(String[] args) {
10 |
11 | String[] names = {"Lina", "Jiya", "Ruhin"};
12 | try {
13 | System.out.println("Student Name is: " + names[10]);
14 | } catch (ArrayIndexOutOfBoundsException e) {
15 | System.out.println("The Exception is :" + e);
16 | } finally {
17 | System.out.println("Finally block executed..");
18 | }
19 |
20 | // -- We can use 'finally block' if we want to take a decision after executing try-catch
21 |
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/JavaThread/exercise/ThreadExer2.java:
--------------------------------------------------------------------------------
1 | package JavaThread.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class ThreadExer2 {
7 |
8 | public static void main(String[] ar){
9 |
10 | Thread t = new Thread(){
11 | public void run(){
12 |
13 | for(int k=1; k <=20; k++){
14 | System.out.println("Running.. "+(k*5)+"%");
15 | try {
16 | sleep(700);
17 | } catch (InterruptedException e) {
18 | e.printStackTrace();
19 | }
20 | }
21 |
22 | }
23 |
24 | };
25 | t.start();
26 |
27 |
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/SEUExample/DeptOfCSE.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.SEUExample;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class DeptOfCSE {
7 |
8 |
9 | public void cse_faculties(){
10 | System.out.println(" 1.KMH\n 2.SM\n 3.AR\n 4.RAJ");
11 | }
12 |
13 | public static void cse_classroom(){
14 | System.out.println("ITEDept CSE is got 30 class rooms!");
15 | }
16 |
17 |
18 |
19 |
20 | // Constructor
21 | public DeptOfCSE() {
22 | }
23 |
24 | /*
25 | Constructor is a method which has same name as class. If there's no constructor, Java makes one automatically.
26 | Then, it's called default constructor.
27 | */
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/JavaThread/exercise/ThreadExer.java:
--------------------------------------------------------------------------------
1 | package JavaThread.exercise;
2 |
3 | import static java.lang.Thread.sleep;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/17/17.
7 | */
8 | public class ThreadExer implements Runnable{
9 |
10 | public static void main(String[] args){
11 |
12 | ThreadExer threadExer = new ThreadExer();
13 | threadExer.run();
14 | }
15 |
16 | @Override
17 | public void run() {
18 |
19 |
20 | try {
21 |
22 | for(int i=1; i <= 5; i++){
23 | System.out.println("Printing.. "+(i*20)+"%");
24 | sleep(1200);
25 | }
26 |
27 | } catch (InterruptedException e) {
28 | e.printStackTrace();
29 | }
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/DynamicPolymorphism/DynamicPolyMorphism.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.DynamicPolymorphism;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class DynamicPolyMorphism {
7 | public static void main(String[] args ){
8 |
9 | MyPython obj;
10 |
11 | obj = new MyPython();
12 | obj.learning_programming();
13 |
14 |
15 | // creating another object with 'MyJava' class
16 | // As DynamicPolyMorphismSuperclass extended 'MyJava' so, we'll get properties of it because of Inheritance
17 | obj = new MyJava();
18 | obj.learning_programming();
19 |
20 |
21 | // So, here same object acted differently! Just because of polymorphism.
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/ArrayFantastic/exercise/ArrayExample1.java:
--------------------------------------------------------------------------------
1 | package ArrayFantastic.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class ArrayExample1 {
7 |
8 | public static void main(String[] args){
9 |
10 | int[] salaries = new int[10];
11 |
12 | salaries[0] = 2500;
13 | salaries[1] = 2500;
14 | salaries[2] = 3500;
15 | salaries[3] = 4500;
16 | salaries[4] = 5500;
17 | salaries[5] = 6500;
18 | salaries[6] = 7500;
19 | salaries[7] = 8500;
20 | salaries[8] = 9500;
21 | salaries[9] = 1500;
22 |
23 | for(int i=0; i < salaries.length; i++){
24 | System.out.println("Salary is: "+salaries[i]);
25 | }
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/TestingJavaException/MultipleCatch.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/24/16.
5 | */
6 | public class MultipleCatch {
7 |
8 | public static void main(String[] args){
9 |
10 | try{
11 | double dub[]=new double[10];
12 | System.out.println(dub[50]= 100/0);
13 | }
14 | catch(ArrayIndexOutOfBoundsException e){
15 | System.out.println("Exception is: "+e);
16 | }
17 | catch(ArithmeticException e){
18 | System.out.println("Exception is: "+e);
19 | }
20 | catch(Exception e){
21 | System.out.println("Exception is: "+e);
22 | }
23 |
24 | System.out.println("Moving forward..");
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/InterfacesInJava/exercise/Wordpress.java:
--------------------------------------------------------------------------------
1 | package InterfacesInJava.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class Wordpress implements JarvisTheme {
7 |
8 | public static void main(String[] o){
9 |
10 | Wordpress wp = new Wordpress();
11 | wp.themeAuthor();
12 | wp.wordpressVersion();
13 | wp.themeName();
14 |
15 | }
16 |
17 | @Override
18 | public void themeName() {
19 | System.out.println("Theme Name: Jarvis");
20 | }
21 |
22 | @Override
23 | public void wordpressVersion() {
24 | System.out.println("WP Verions: 4.3");
25 |
26 | }
27 |
28 | @Override
29 | public void themeAuthor() {
30 | System.out.println("Author: Unknown");
31 |
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/PlayingWithJavaOperators/MyJavaOperators.java:
--------------------------------------------------------------------------------
1 | package PlayingWithJavaOperators;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class MyJavaOperators {
7 |
8 | public static void main(String[] args){
9 |
10 | // ---- Arithmetic Operators ------
11 | int a = 10;
12 | int b = 20;
13 | String text = "Result is: ";
14 | // ' = ' is a Assignment Operator
15 |
16 | System.out.println(text+ (a + b) );
17 | System.out.println(text + (b - a) );
18 |
19 | int mark = 60;
20 |
21 | if( mark >= 60 && mark <=80){
22 | System.out.println("Grade is A");
23 | }
24 |
25 | // Above ' >= ' and ' <= ' are Relational Operators
26 | // ' && ' is Logical Operator
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/ThisKeyword/UseOfThis.java:
--------------------------------------------------------------------------------
1 | package ThisKeyword;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class UseOfThis {
7 |
8 | int i1;
9 | int i2;
10 |
11 | public int getI1() {
12 | return i1;
13 | }
14 |
15 | public void setI1(int i1) {
16 | // DIDN"T use this here
17 | i1 = i1;
18 | }
19 |
20 | public int getI2() {
21 | return i2;
22 | }
23 |
24 | public void setI2(int i2) {
25 | this.i2 = i2;
26 | }
27 |
28 | public static void main(String[] args){
29 |
30 | UseOfThis ut = new UseOfThis();
31 | ut.setI1(5);
32 | ut.setI2(10);
33 |
34 | // now printing all values
35 | System.out.println(ut.getI1());
36 | System.out.println(ut.getI2());
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/TestingJavaException/exercise/ThrowingExcp.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException.exercise;
2 |
3 | import TestingJavaException.UsingThrowsException;
4 |
5 | import java.io.IOException;
6 |
7 | /**
8 | * Created by mosharrofrubel on 1/17/17.
9 | */
10 | public class ThrowingExcp {
11 |
12 |
13 | public static void main(String[] args) {
14 |
15 | try{
16 | ThrowingExcp object = new ThrowingExcp();
17 | object.testMethod();
18 |
19 | } catch(Exception e){
20 | System.out.println("Handled!");
21 | }
22 |
23 | System.out.println("Moving forward...");
24 |
25 | }
26 |
27 |
28 | public void testMethod()throws ArithmeticException {
29 | throw new ArithmeticException("Arithmetic exception occurred");
30 | }
31 |
32 |
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/EncapsulationAndGetterSetter/examples/exercise1/Employee.java:
--------------------------------------------------------------------------------
1 | package EncapsulationAndGetterSetter.examples.exercise1;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class Employee {
7 |
8 | private String emp_name;
9 | private int age;
10 | private int salary;
11 |
12 | public String getEmp_name() {
13 | return emp_name;
14 | }
15 |
16 | public void setEmp_name(String emp_name) {
17 | this.emp_name = emp_name;
18 | }
19 |
20 | public int getAge() {
21 | return age;
22 | }
23 |
24 | public void setAge(int age) {
25 | this.age = age;
26 | }
27 |
28 | public int getSalary() {
29 | return salary;
30 | }
31 |
32 | public void setSalary(int salary) {
33 | this.salary = salary;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/RelationalOpe.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class RelationalOpe {
7 |
8 | public static void main(String[] args){
9 |
10 | int p = 20;
11 | int q = 10;
12 |
13 | if(p == q ) {
14 | // something happens here
15 | }
16 |
17 | if ( p != q ) {
18 | // something happens
19 | }
20 |
21 |
22 | if ( p < q ) {
23 | // something happens
24 | }
25 |
26 |
27 | if ( p > q ) {
28 | // something happens
29 | }
30 |
31 | if ( p <= q ) {
32 | // something happens
33 | }
34 |
35 | if ( p >= q ) {
36 | // something happens
37 | }
38 |
39 |
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/src/Generics/exercises/exercise3/GenericMethods.java:
--------------------------------------------------------------------------------
1 | package Generics.exercises.exercise3;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Collection;
5 | import java.util.List;
6 |
7 | /**
8 | * Created by mosharrofrubel on 1/15/17.
9 | */
10 | public class GenericMethods {
11 |
12 | public static void main(String[] j){
13 |
14 | List myLibrary = new ArrayList<>();
15 |
16 | myBookShelf("Image Processing Book", myLibrary);
17 | myBookShelf("PHP learning Book", myLibrary);
18 | myBookShelf("Data Science Book", myLibrary);
19 | myBookShelf("IoT Book", myLibrary);
20 |
21 | System.out.println("Books:"+ myLibrary);
22 |
23 | }
24 |
25 | public static void myBookShelf(T book, Collection library){
26 | library.add(book);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/JavaDataTypes/exercise/DTypes.java:
--------------------------------------------------------------------------------
1 | package JavaDataTypes.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class DTypes {
7 |
8 | public static void main(String[] ar){
9 |
10 | int i = 9;
11 | String s = "My Text";
12 | double d = 2.4;
13 | char c = '*';
14 | long l = 450239487;
15 | short h = 2345;
16 | byte b = - 98;
17 |
18 | System.out.println("int value is: "+i);
19 | System.out.println("String value is: "+s);
20 | System.out.println("double value is: "+d);
21 | System.out.println("character value is: "+c);
22 | System.out.println("long value is: "+l);
23 | System.out.println("short value is: "+h);
24 | System.out.println("byte value is: "+b);
25 |
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/JavaThread/UsingRunnable.java:
--------------------------------------------------------------------------------
1 | package JavaThread;
2 |
3 | import static java.lang.Thread.sleep;
4 |
5 | /**
6 | * Created by mosharrofrubel on 12/23/16.
7 | */
8 | public class UsingRunnable implements Runnable {
9 |
10 | public static void main(String[] args){
11 |
12 | UsingRunnable rt = new UsingRunnable();
13 | Thread t = new Thread(rt);
14 | t.start();
15 |
16 | }
17 |
18 | @Override
19 | public void run() {
20 |
21 | for (int i=0; i < 11; i++){
22 | try {
23 | // Let the thread sleep for 1200 mili seconds.
24 | sleep(1200);
25 | } catch (InterruptedException threadExep) {
26 | threadExep.printStackTrace();
27 | }
28 | System.out.println("Loading.. "+i*10+"%");
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/MethodDude/exercise/LearningMethods.java:
--------------------------------------------------------------------------------
1 | package MethodDude.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class LearningMethods {
7 |
8 | public static void main(String[] art){
9 |
10 | justAMethod();
11 |
12 | int result1 = yearToDays(8);
13 | System.out.println("Result1 is: "+result1);
14 |
15 | String result2 = myName("Taslima");
16 | System.out.println(result2);
17 | }
18 |
19 | public static void justAMethod () {
20 | System.out.println("Just a method called!");
21 | }
22 |
23 | public static int yearToDays(int year) {
24 | int k = year*365;
25 | return k;
26 | }
27 |
28 |
29 | private static String myName(String n){
30 | String s = "Name is: "+n;
31 | return s;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/exercise/RelationalExer.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class RelationalExer {
7 |
8 | public static void main(String[] args){
9 |
10 | int a = 20;
11 | int b = 10;
12 |
13 | if(a == b ) {
14 | // something happens
15 | }
16 |
17 | if ( a != b ) {
18 | // something happens
19 | }
20 |
21 |
22 | if ( a < b ) {
23 | // something happens
24 | }
25 |
26 |
27 | if ( a > b ) {
28 | // something happens
29 | }
30 |
31 | if ( a <= b ) {
32 | // something happens
33 | }
34 |
35 | if ( b >= a ) {
36 | // something happens
37 | }
38 |
39 |
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/src/JavaCollections/Map/MyMap.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.Map;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | /**
7 | * Created by mosharrofrubel on 1/10/17.
8 | */
9 | public class MyMap {
10 |
11 | public static void main(String[] args){
12 |
13 | Map reset = new HashMap<>();
14 |
15 | reset.put("hi@mrubel.com","833hgd3o");
16 | reset.put("himel@hash.com","himel245");
17 | reset.put("robin@yahoo.com", "rob3345");
18 | reset.put("shimul@gmail.com", "shim46543");
19 |
20 | // resetting password for robin
21 | for(Map.Entry map : reset.entrySet()){
22 | if(map.getKey().equals("robin@yahoo.com")){
23 | System.out.println("Your password for email is: "+map.getValue());
24 | }
25 | }
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/JavaThread/WithOutExtending.java:
--------------------------------------------------------------------------------
1 | package JavaThread;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class WithOutExtending {
7 |
8 | public static void main(String[] arg) {
9 |
10 | Thread t1 = new Thread() {
11 | public void run() {
12 |
13 | for (int i=0; i < 6; i++){
14 | try {
15 | // Let the thread sleep for 1200 mili seconds.
16 | sleep(1200);
17 | } catch (InterruptedException threadExep) {
18 | threadExep.printStackTrace();
19 | }
20 | System.out.println("Loading 2.. "+i*10+"%");
21 | }
22 | }
23 | };
24 | // now, this will call run method
25 | t1.start();
26 |
27 | }
28 | }
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/exercises/exercise2/PlayingSong.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.exercises.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class PlayingSong {
7 |
8 | public static void main(String[] args){
9 |
10 | MPProperties musicPlayer = new MPProperties();
11 |
12 | boolean b = musicPlayer.initializePlayer();
13 | System.out.println("Initializing player: "+b);
14 |
15 | String song = musicPlayer.currentSong();
16 | System.out.println("Playing.. "+song);
17 |
18 | musicPlayer.play();
19 | musicPlayer.pause();
20 | musicPlayer.stop();
21 | musicPlayer.prev();
22 | musicPlayer.next();
23 |
24 |
25 | System.out.println("Total songs: "+musicPlayer.totalSongs());
26 |
27 |
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/Generics/GenMethods/GenMethods.java:
--------------------------------------------------------------------------------
1 | package Generics.GenMethods;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/26/16.
5 | */
6 | public class GenMethods {
7 |
8 |
9 | public static void showingMovieDetails(E[] movies){
10 | for(E mov : movies ){
11 | System.out.println(mov);
12 | }
13 | }
14 |
15 |
16 | public static void main(String[] a){
17 |
18 | String[] movie_names = {"Batman", "Superman", "Spiderman", "Antman", "Deadpool", "Captain America", "Thor"};
19 | Double[] movie_ratings = {8.5,6.5,6.1,4.3,8.9,7.4,6.2};
20 |
21 | System.out.println("Movie Names:");
22 | showingMovieDetails(movie_names);
23 |
24 | System.out.println("");
25 |
26 | System.out.println("Movie Ratings:");
27 | showingMovieDetails(movie_ratings);
28 |
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/src/JavaAbstraction/exercise2/GetFb.java:
--------------------------------------------------------------------------------
1 | package JavaAbstraction.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/16/17.
5 | */
6 | public class GetFb extends FacebookLife {
7 |
8 | public static void main(String[] args){
9 |
10 | FacebookLife facebookLife = new GetFb();
11 |
12 | facebookLife.profile();
13 | facebookLife.timeline();
14 | facebookLife.home();
15 |
16 | facebookLife.like();
17 | facebookLife.comment();
18 | facebookLife.status();
19 | }
20 |
21 | @Override
22 | void profile() {
23 | System.out.println("Profile View:");
24 | }
25 |
26 | @Override
27 | void timeline() {
28 | System.out.println("TimeLine View:");
29 | }
30 |
31 | @Override
32 | void home() {
33 | System.out.println("Home View:");
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/JavaAggregation/Student.java:
--------------------------------------------------------------------------------
1 | package JavaAggregation;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/23/16.
5 | */
6 | public class Student {
7 |
8 | String name ;
9 | int id;
10 | // We used object from 'Subjects' class, this is aggregation
11 | Subjects s;
12 |
13 | // declaring a method to show a student
14 | public void show_student(){
15 | name = "Borno";
16 | id = 1;
17 | s = new Subjects();
18 |
19 | System.out.println("Name: "+name);
20 | System.out.println("Id: "+id);
21 | System.out.println("Subject 1: "+s.bangla);
22 | System.out.println("Subject 2: "+s.english);
23 |
24 | }
25 |
26 |
27 | public static void main(String[] arg){
28 |
29 | Student student = new Student();
30 | student.show_student();
31 |
32 | }
33 |
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/src/OverRidingAndOverLoading/exercise/Parking.java:
--------------------------------------------------------------------------------
1 | package OverRidingAndOverLoading.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Parking extends Garage{
7 |
8 | public static void main(String[] ar){
9 |
10 | Parking parking = new Parking();
11 | parking.parking_id();
12 | parking.parking_slot();
13 | parking.parking_slot("Premio");
14 | }
15 |
16 | public void parking_id() {
17 | System.out.println("(Overridden) Every vachel has a parking id! ");
18 | }
19 |
20 |
21 | public void parking_slot() {
22 | System.out.println("(Overridden) Every vachel have a parking slot! ");
23 | }
24 |
25 |
26 | public void parking_slot(String car) {
27 | System.out.println("(Overloaded) Every vachel have a parking slot! "+car);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/PolyMorphismBingo/exercises/staticPoly/Ordering.java:
--------------------------------------------------------------------------------
1 | package PolyMorphismBingo.exercises.staticPoly;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class Ordering {
7 |
8 | void orderingItems(String i1){
9 | System.out.println("Customer has ordered 1 item! Item is: "+i1);
10 | }
11 |
12 |
13 | void orderingItems(String i1, String i2){
14 | System.out.println("Customer has ordered 2 items! Items are: "+i1+", "+i2);
15 | }
16 |
17 |
18 |
19 | void orderingItems(String i1, String i2, String i3){
20 | System.out.println("Customer has ordered 3 items! Items are: "+i1+", "+i2+", "+i3);
21 | }
22 |
23 |
24 | void orderingItems(String i1, String i2, String i3, String i4){
25 | System.out.println("Customer has ordered 4 items! Items are: "+i1+", "+i2+", "+i3+ ", "+i4); }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/KnowingBasicSyntax/MySyntaxClass.java:
--------------------------------------------------------------------------------
1 | package KnowingBasicSyntax;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/5/16.
5 | */
6 |
7 | // MySyntaxClass is a java class name
8 | public class MySyntaxClass {
9 |
10 | public static void main(String[] args) {
11 |
12 | // i want to print something on console
13 | System.out.println("Printing Something...");
14 |
15 | /*
16 | All Java components require names. Names used for classes, variables, and methods are called identifiers.
17 | */
18 |
19 | // Here, 'i' is a variable name. Also an identifier.
20 | int i=10;
21 | // 'int' is a datatype. Another exercise1 of data type is 'String'
22 | String s = "Southeast University";
23 |
24 |
25 |
26 | }
27 |
28 | // this is a method
29 | public void my_favorite_method(){
30 |
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/IfElseDecisionMaking/exercise/LiftMechanism.java:
--------------------------------------------------------------------------------
1 | package IfElseDecisionMaking.exercise;
2 |
3 | import java.util.Scanner;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/15/17.
7 | */
8 | public class LiftMechanism {
9 | public static void main(String[] args){
10 |
11 | System.out.println("Press 0-3 :");
12 | Scanner s = new Scanner(System.in);
13 | int floor_no = s.nextInt();
14 |
15 | if(floor_no == 0) {
16 | System.out.println("This is Ground Floor");
17 | } else if(floor_no == 1) {
18 | System.out.println("This is First Floor");
19 |
20 | }else if(floor_no == 2) {
21 | System.out.println("This is Second Floor");
22 |
23 | }else if(floor_no == 3) {
24 | System.out.println("This is Third Floor");
25 |
26 | } else {
27 | System.out.println("No more floors!");
28 | }
29 |
30 |
31 |
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/MySwitchStatement/LearningSwitchStatement.java:
--------------------------------------------------------------------------------
1 | package MySwitchStatement;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class LearningSwitchStatement {
7 | public static void main(String[] args){
8 |
9 | int absent = 2;
10 | switch(absent) {
11 | case 0 :
12 | System.out.println("You missed no class!");
13 | break;
14 | case 1 :
15 | System.out.println("You missed 1 class!");
16 | break;
17 | case 2 :
18 | System.out.println("You missed 2 classes!");
19 | break;
20 | case 3 :
21 | System.out.println("You missed 3 classes!");
22 | default :
23 | System.out.println("Invalid Input!");
24 | }
25 |
26 | // 'break' keyword helps to break the loop. It stops checking after finding match.
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/InheritancePro/OsbornNorman.java:
--------------------------------------------------------------------------------
1 | package InheritancePro;
2 |
3 | /**
4 | * Created by mosharrofrubel on 10/26/16.
5 | */
6 | public class OsbornNorman {
7 |
8 | int board_members = 67;
9 |
10 | // just declaring a method
11 | public void research_of_lifetime() {
12 | int papers = 50;
13 | String password = "333455";
14 | int others = 78;
15 | String access_email = "norman_secret_email@yahoo.com";
16 |
17 | // printing all when method is called
18 | System.out.println("Papers you will get: "+papers+", Password:"+password);
19 | System.out.println("Others: "+others+", Email: "+access_email);
20 |
21 | }
22 |
23 |
24 |
25 | // another method declaring
26 | public void diseases_of_harry (){
27 | String diseases_name = "Retroviral Hypodisplasia";
28 | System.out.println("Name of the diseases that Harry will have, "+diseases_name);
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/src/JavaCollections/Map/Apartments.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.Map;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | /**
7 | * Created by mosharrofrubel on 1/10/17.
8 | */
9 | public class Apartments {
10 | public static void main(String[] args){
11 |
12 | Map apartments = new HashMap<>();
13 |
14 | apartments.put("1A", "Faruq Hossain");
15 | apartments.put("1B", "Leo Ahmed");
16 | apartments.put("2A", "Tanzila Islam");
17 | apartments.put("2B", "Sheikh Mizan");
18 | apartments.put("3A", "Ashiqur Rahman");
19 | apartments.put("3B", "Monirul Hasan");
20 |
21 | // printing all values from HashMap
22 | System.out.println("A/No\t\tOwner\n-----------------------");
23 | for(Map.Entry appar : apartments.entrySet()){
24 |
25 | System.out.println(appar.getKey()+"\t\t"+appar.getValue());
26 |
27 | }
28 |
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/EncapsulationAndGetterSetter/examples/exercise2/SDCard.java:
--------------------------------------------------------------------------------
1 | package EncapsulationAndGetterSetter.examples.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/15/17.
5 | */
6 | public class SDCard {
7 |
8 | private String name;
9 | private double size;
10 | private double freeSpace;
11 |
12 | public String getName() {
13 | return name;
14 | }
15 |
16 | public void setName(String name) {
17 | this.name = name;
18 | }
19 |
20 | public double getSize() {
21 |
22 | if(size > 8.0) {
23 | System.out.println("(Alert: Memory size is over 8GB!)");
24 | }
25 | return size;
26 | }
27 |
28 | public void setSize(double size) {
29 | this.size = size;
30 | }
31 |
32 | public double getFreeSpace() {
33 | return freeSpace;
34 | }
35 |
36 | public void setFreeSpace(double freeSpace) {
37 | this.freeSpace = freeSpace;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/EncapsulationAndGetterSetter/ATMBooth.java:
--------------------------------------------------------------------------------
1 | package EncapsulationAndGetterSetter;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class ATMBooth {
7 | public static void main(String args[]) {
8 |
9 | BankDetails bd = new BankDetails();
10 | bd.setAccount_name("Mosharrof Rubel");
11 | bd.setTotal_money(120);
12 | bd.setPin_number(1265);
13 |
14 | System.out.println("Account Name : " + bd.getAccount_name() + "\nTotal Money : " + bd.getTotal_money()
15 | +"\nPin: "+bd.getPin_number());
16 |
17 |
18 | // trying to access the variable without encapsulation. Remove the // to see the effect
19 | // String s1 = bd.account_name;
20 | // System.out.println("First account name is: ");
21 |
22 |
23 | // trying to access a public variable public
24 | String s2 = bd.second_account;
25 | System.out.println("\nSecond account name is: "+s2);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/AssignmentOpe.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class AssignmentOpe {
7 |
8 | public static void main(String[] args){
9 |
10 | int i1 = 12;
11 | int j1 = 5;
12 |
13 | int i2 = 12;
14 | int j2 = 5;
15 |
16 | int i3 = 12;
17 | int j3 = 5;
18 |
19 | int i4 = 12;
20 | int j4 = 4;
21 |
22 | int i5 = 12;
23 | int j5 = 5;
24 |
25 | i1 += j1;
26 | System.out.println("i1+=j1 : "+i1);
27 |
28 | i2 -= j2;
29 | System.out.println("i2-=j2 : "+i2);
30 |
31 | i3 *= j3;
32 | System.out.println("i3*=j3 : "+i3);
33 |
34 | i4 /= j4;
35 | System.out.println("i4/=j4 : "+i4);
36 |
37 | i5 %= j5;
38 | System.out.println("i5%=j5 : "+i5);
39 |
40 |
41 | int i7 = 30;
42 | System.out.println(i7<<2);
43 |
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/MyAccessModifiers/PackageONE/MyHome.java:
--------------------------------------------------------------------------------
1 | package MyAccessModifiers.PackageONE;
2 | import MyAccessModifiers.PackageTWO.MyDiary;
3 |
4 | /**
5 | * Created by mosharrofrubel on 12/18/16.
6 | */
7 | public class MyHome {
8 |
9 | public static void main(String[] args){
10 |
11 | // this line means, creating class object.
12 | MyMobile myMobile = new MyMobile();
13 |
14 | // trying to access PRIVATE 'password' method
15 | // remove comment sign from below to see the result
16 | // myMobile.password();
17 |
18 |
19 | // trying to access PROTECTED 'galary' method
20 | myMobile.galary();
21 |
22 |
23 | // creating object of a class from other package class
24 | MyDiary md = new MyDiary();
25 |
26 | // tyring to access a protected method
27 | // remove comment sign to see the effect
28 | // md.poems();
29 | // md.stories();
30 | md.importantDates();
31 |
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/Generics/GenMethods/WithAL.java:
--------------------------------------------------------------------------------
1 | package Generics.GenMethods;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Arrays;
5 | import java.util.Iterator;
6 |
7 | /**
8 | * Created by mosharrofrubel on 12/26/16.
9 | */
10 | public class WithAL {
11 |
12 | public static void main(String[] args){
13 |
14 | ArrayList al = new ArrayList();
15 |
16 | String[] teachers = {"KMH", "AR", "SM", "RAJ", "SA"};
17 |
18 | for(int i=0; i iterator = al.iterator();
33 | while(iterator.hasNext()){
34 | System.out.println(iterator.next());
35 | }
36 |
37 |
38 |
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/src/OperatorsCheck/exercise/AssignmentExer.java:
--------------------------------------------------------------------------------
1 | package OperatorsCheck.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/22/16.
5 | */
6 | public class AssignmentExer {
7 |
8 | public static void main(String[] args){
9 |
10 | int r1 = 24;
11 | int s1 = 10;
12 |
13 | int r2 = 24;
14 | int s2 = 10;
15 |
16 | int r3 = 24;
17 | int s3 = 10;
18 |
19 | int r4 = 24;
20 | int s4 = 10;
21 |
22 | int r5 = 24;
23 | int s5 = 10;
24 |
25 | r1 += s1;
26 | System.out.println("i1+=j1 is "+r1);
27 |
28 | r2 -= s2;
29 | System.out.println("i2-=j2 is "+r2);
30 |
31 | r3 *= s3;
32 | System.out.println("i3*=j3 is "+r3);
33 |
34 | r4 /= s4;
35 | System.out.println("i4/=j4 is "+r4);
36 |
37 | r5 %= s5;
38 | System.out.println("i5%=j5 is "+r5);
39 |
40 |
41 | int r7 = 30;
42 | System.out.println(r7<<2);
43 |
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/MySwitchStatement/exercise/HomeSwitch.java:
--------------------------------------------------------------------------------
1 | package MySwitchStatement.exercise;
2 |
3 | import java.util.Scanner;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/17/17.
7 | */
8 | public class HomeSwitch {
9 |
10 | public static void main(String[] args){
11 |
12 | System.out.println("Enter switch no: ");
13 | Scanner scanner = new Scanner(System.in);
14 | int home_switch = scanner.nextInt();
15 |
16 | switch (home_switch){
17 | case 0:
18 | System.out.println("Turn on light");
19 | break;
20 | case 1:
21 | System.out.println("Turn on fan");
22 | break;
23 | case 2:
24 | System.out.println("Turn on small light");
25 | break;
26 | case 3:
27 | System.out.println("Turn on AC");
28 | break;
29 | default:
30 | System.out.println("No valid!");
31 | break;
32 | }
33 |
34 |
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/SEUExample/SoutheastUniversity.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.SEUExample;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class SoutheastUniversity {
7 |
8 | public static void main(String[] args){
9 |
10 | // Creating Object of 'DeptOfCSE' class
11 | DeptOfCSE my_object = new DeptOfCSE();
12 | // accessing the method from 'DeptOfCSE' class
13 | my_object.cse_faculties();
14 |
15 | /*
16 | 1. How to create a class object?
17 | ClassName ObjectName = new Class Constructor
18 | Example: DeptOfCSE object = new DeptOfCSE();
19 |
20 | 2. How to access a method from class by object?
21 | object name . (dot) name of the method
22 | Example: object.my_methodName();
23 |
24 | */
25 |
26 |
27 |
28 | // ----- Accessing a method 'static' from other class
29 | // Classname . (dot) name of the method
30 | DeptOfCSE.cse_classroom();
31 |
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/UnderstnadingGetterSetter/exercise/TurnOffPc.java:
--------------------------------------------------------------------------------
1 | package UnderstnadingGetterSetter.exercise;
2 |
3 | import java.util.Scanner;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/17/17.
7 | */
8 | public class TurnOffPc {
9 |
10 | double sleep_time;
11 |
12 | public double getSleep_time() {
13 | return sleep_time;
14 | }
15 |
16 | public void setSleep_time(double sleep_time) {
17 | this.sleep_time = sleep_time;
18 | }
19 |
20 | public static void main(String[] args){
21 |
22 | System.out.println("Enter turning off time: ");
23 | Scanner scanner = new Scanner(System.in);
24 | double give_time = scanner.nextDouble();
25 |
26 | TurnOffPc tpc = new TurnOffPc();
27 | tpc.setSleep_time(give_time);
28 |
29 | double receiving_time = tpc.getSleep_time();
30 |
31 | if( receiving_time > 2.00){
32 | System.out.println("Turning off pc...");
33 | } else {
34 | System.out.println("Keep it awake..");
35 | }
36 |
37 | }
38 |
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/EncapsulationAndGetterSetter/BankDetails.java:
--------------------------------------------------------------------------------
1 | package EncapsulationAndGetterSetter;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class BankDetails {
7 |
8 | // Private variable fields
9 | private String account_name;
10 | private int total_money;
11 | private int pin_number;
12 |
13 | // getter setter methods
14 | public String getAccount_name() {
15 | return account_name;
16 | }
17 |
18 | public void setAccount_name(String account_name) {
19 | this.account_name = account_name;
20 | }
21 |
22 | public int getTotal_money() {
23 | return total_money;
24 | }
25 |
26 | public void setTotal_money(int total_money) {
27 | this.total_money = total_money;
28 | }
29 |
30 | public int getPin_number() {
31 | return pin_number;
32 | }
33 |
34 | public void setPin_number(int pin_number) {
35 | this.pin_number = pin_number;
36 | }
37 |
38 | // just declaring a public variable
39 | public String second_account="Rubel";
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/src/UnderstandingClassAndObject/exercises/exercise2/MPProperties.java:
--------------------------------------------------------------------------------
1 | package UnderstandingClassAndObject.exercises.exercise2;
2 |
3 | /**
4 | * Created by mosharrofrubel on 1/17/17.
5 | */
6 | public class MPProperties {
7 |
8 | public boolean initializePlayer(){
9 | return true;
10 | }
11 |
12 | public void play(){
13 | System.out.println("Song will be played from this method");
14 | }
15 |
16 | public void pause(){
17 | System.out.println("You can pause from here");
18 | }
19 |
20 | public void stop(){
21 | System.out.println("You can stop from here!");
22 | }
23 |
24 | public void next(){
25 | System.out.println("You can go next from here!");
26 | }
27 |
28 | public void prev(){
29 | System.out.println("You can come to previous from here!");
30 | }
31 |
32 | public int totalSongs(){
33 | int songs = 200;
34 | return songs;
35 | }
36 |
37 | public String currentSong(){
38 | String c_song = "Aj ei akash..";
39 | return c_song;
40 | }
41 |
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/src/OverRidingAndOverLoading/OverRidingAndOverLoadingPractice.java:
--------------------------------------------------------------------------------
1 | package OverRidingAndOverLoading;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class OverRidingAndOverLoadingPractice extends MyFather {
7 | public static void main(String[] args){
8 |
9 | OverRidingAndOverLoadingPractice cool_object = new OverRidingAndOverLoadingPractice();
10 | cool_object.cars_of_my_father();
11 | cool_object.lands_of_my_father("Dhaka");
12 |
13 | }
14 |
15 |
16 | // Below method is 'OverRidden' from MyFather Class
17 | public void cars_of_my_father(){
18 | System.out.println("Royal Rayce, Maruti Suzuki, Mazda");
19 | }
20 |
21 | // Below method is 'OverLoaded' from MyFather class
22 | public void lands_of_my_father(String location){
23 | System.out.println(location+", Chittagong, Noakhali");
24 | }
25 |
26 | /*
27 | OverRiding: Same method names, same arguments different method body
28 | OverLoading: Same method name, different arguments and different method body
29 |
30 | */
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/JavaCollections/ArrayList/exercise/MyNotes.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.ArrayList.exercise;
2 |
3 | import java.util.ArrayList;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/16/17.
7 | */
8 | public class MyNotes {
9 |
10 | public static void main(String[] ar){
11 |
12 | ArrayList notes = new ArrayList();
13 | notes.add("I will go to shop tomorrow");
14 | notes.add("Presentation on next Saturday");
15 | notes.add("Few important tricks, stay focused");
16 | notes.add("Life is good. tour at next week");
17 |
18 | for(String s : notes){
19 | System.out.println("Note: "+s);
20 | }
21 |
22 | System.out.println();
23 | notes.remove(2);
24 |
25 | for(String s : notes){
26 | System.out.println("Updated Note: "+s);
27 | }
28 |
29 | System.out.println("Clearing starts....");
30 | notes.clear();
31 |
32 | for(String s : notes){
33 | System.out.println("Updated Note: "+s);
34 | }
35 | System.out.println("All cleared!");
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/src/JavaDataTypes/MyDataTypesforJava.java:
--------------------------------------------------------------------------------
1 | package JavaDataTypes;
2 |
3 | import java.util.Scanner;
4 |
5 | /**
6 | * Created by mosharrofrubel on 12/5/16.
7 | */
8 | public class MyDataTypesforJava {
9 | public static void main(String[] args){
10 |
11 | // Example of Primitive data types
12 | boolean result = true;
13 | short sho = 10;
14 | char capitalC = 'C';
15 | byte b = 100;
16 | double d = 4.8d;
17 | int i = 100000;
18 | long l = 156473890;
19 | float f = 9.494844f;
20 | char my_plus_sign = '+';
21 |
22 |
23 |
24 | // Reference/Object Data Types
25 | String s = "Anything in text can be kept in a string variable";
26 | String my_supercool_array [] = new String[20];
27 |
28 |
29 |
30 |
31 | // Scanner is a java class for taking inputs from console
32 | Scanner my_scan = new Scanner(System.in);
33 | // Here 'my_scan' variable is an exercise1 of Reference/Object Data Type
34 |
35 |
36 |
37 |
38 | // Default value of any reference variable is null.
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/JavaCoolVariables/MyCoolVariable.java:
--------------------------------------------------------------------------------
1 | package JavaCoolVariables;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class MyCoolVariable {
7 |
8 | int year = 2016;
9 | static int my_salary= 2000;
10 |
11 | public static void main(String[] args) {
12 |
13 | // Declaring variables
14 | int i;
15 | String text;
16 |
17 | // initializing variables
18 | i = 20;
19 | text = "My Name is Afrin & My age is: ";
20 |
21 | System.out.println(text+i);
22 |
23 |
24 | // Understanding Variable kinds
25 |
26 | // 'month' is a local variable
27 | int month = 12;
28 |
29 |
30 |
31 | // salary variable is a staticPoly variable
32 | System.out.println(my_salary);
33 |
34 | }
35 |
36 | // this is a method
37 | public void my_cool_method(){
38 |
39 | // 'year' is a Instance Variable
40 | System.out.println("Year is: "+year);
41 |
42 | // System.out.println("Year is: "+month);
43 | // 'month' can't be accessed as it's a local variable
44 | }
45 |
46 |
47 |
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/src/JavaCollections/LinkedList/exercise/Relatives.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.LinkedList.exercise;
2 |
3 | import java.util.LinkedList;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/16/17.
7 | */
8 | public class Relatives {
9 |
10 | public static void main(String[] a){
11 |
12 | LinkedList relatives = new LinkedList<>();
13 |
14 | relatives.addLast("Mother");
15 | relatives.addLast("Uncle");
16 | relatives.addLast("Son of Uncle");
17 | relatives.addLast("Son's cousin");
18 | relatives.addLast("Cousin's Sister");
19 |
20 | for(String q : relatives){
21 | System.out.println("Relative: "+q);
22 | }
23 |
24 | System.out.println("\nAdding new element at 3rd position..\n");
25 |
26 | relatives.add(3, "Son's Brother");
27 | for(String q : relatives){
28 | System.out.println("Relative: "+q);
29 | }
30 |
31 | System.out.println("\nAdding new at last..\n");
32 |
33 | relatives.addLast("Sister's Aunt");
34 | for(String q : relatives){
35 | System.out.println("Relative: "+q);
36 | }
37 |
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/MethodDude/DudeMethod.java:
--------------------------------------------------------------------------------
1 | package MethodDude;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class DudeMethod {
7 | /*
8 | ----- Declaring My First Method -----
9 | Our method will accept two int number as Argument and return the added result
10 | */
11 | public static int adding_numbers(int num1, int num2){
12 |
13 | int result = num1+num2;
14 | return result;
15 | }
16 |
17 | public static void main(String[] args){
18 |
19 | // Calling the Method
20 | int my_data = adding_numbers(15,50);
21 | System.out.println(my_data);
22 |
23 | // Calling multiplication method
24 | doing_multiplication(30,5);
25 |
26 |
27 | }
28 |
29 |
30 |
31 | // ----- Method without Return Type -----
32 | public static void doing_multiplication(int i, int j){
33 | int result2 = i*j;
34 | System.out.println("Multiplication result is: " + result2);
35 | }
36 |
37 |
38 | /*
39 | 'staticPoly' keyword in java is used for memory management mainly.
40 | we access method statically by using staticPoly keyword.
41 | */
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/src/ArrayFantastic/FantasticArrays.java:
--------------------------------------------------------------------------------
1 | package ArrayFantastic;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class FantasticArrays {
7 | public static void main(String[] args){
8 |
9 | // declaring a String Array
10 | String[] my_supercool_array = new String[5];
11 |
12 | // declaring an Array if you already know the values
13 | String[] my_students = {"Arif", "Sohan", "Swarna", "Neha", "Tumpa", "Rohan", "Sanjid"};
14 |
15 |
16 | // putting a value into Array with index number
17 | //Below line, a value is kept in the first position of the array.
18 | my_supercool_array[0] = "Captain America";
19 |
20 | // Printing a value of Array
21 | System.out.println(my_supercool_array[0]);
22 |
23 | // show size of an Array
24 | int size_of_array = my_students.length;
25 | System.out.println("Size of the 'my_students' arrazy is: "+size_of_array);
26 |
27 | // looping out and seeing all the values of an array
28 | for(int i=0; i < size_of_array; i++){
29 | System.out.println("Name of studen is, "+my_students[i]);
30 | }
31 |
32 | }
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/src/LoopingThings/LoopPractice.java:
--------------------------------------------------------------------------------
1 | package LoopingThings;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class LoopPractice {
7 | public static void main(String[] args){
8 |
9 | // ---- 'while loop' -----
10 | int roll = 1;
11 |
12 | while( roll <= 100 ) {
13 | System.out.print("Student's Roll: " + roll +"\n");
14 | roll = roll+1;
15 | }
16 | // We have counted 1 to 100 student's roll with 'while' loop.
17 | // '<=' means, we are checking if roll is less than or equal to 100
18 | // 'roll=roll+1' means, when loop executes one time, rool adds one to previous roll
19 | // '\n' is used to create a new line
20 |
21 |
22 |
23 |
24 | // ------- 'for loop ' --------
25 |
26 | for( int i=1; i <= 100; i++ ) {
27 | System.out.print("Value of i: " + i +"\n");
28 | }
29 |
30 |
31 | // ------ ' do while loop ' -------
32 | int j = 1;
33 | do {
34 | System.out.print("j = " + j +"\n");
35 | j = j+1;
36 | } while( j <= 10 );
37 |
38 | // do something until, while loop is true
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/IfElseDecisionMaking/IfElseDecisionMaking.java:
--------------------------------------------------------------------------------
1 | package IfElseDecisionMaking;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class IfElseDecisionMaking {
7 | public static void main(String[] args){
8 |
9 | int age = 21;
10 |
11 | // ------- 'if' statement for decision making -----
12 | if( age >= 18 ) {
13 | System.out.println("Your age is over 18!");
14 | }
15 |
16 |
17 | // ------- 'if-else' statement for decision making -----
18 | int age2 = 12;
19 | if( age2 >= 18 ) {
20 | System.out.println("Your age is over 18!");
21 | } else {
22 | System.out.println("You are not 18 yet!");
23 | }
24 |
25 |
26 | // ------- 'if-else if' statement for decision making -----
27 | int year = 2017;
28 |
29 | if( year == 2015 ) {
30 | System.out.println("It is not a leapyear!");
31 | }else if( year == 2016 ) {
32 | System.out.println("It's a LeapYear!");
33 | }else if( year == 2017 ) {
34 | System.out.println("Last year was a leapyear!");
35 | }else {
36 | System.out.println("No match found!");
37 | }
38 |
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/TestingJavaException/UsingThrowsException.java:
--------------------------------------------------------------------------------
1 | package TestingJavaException;
2 |
3 | import java.io.IOException;
4 |
5 | /**
6 | * Created by mosharrofrubel on 12/6/16.
7 | */
8 | public class UsingThrowsException {
9 |
10 | public static void main(String[] args) {
11 |
12 | try{
13 | UsingThrowsException object = new UsingThrowsException();
14 | object.my_cool_method();
15 | } catch(Exception e){
16 | System.out.println("Bingo! I handled the thrown exception here!");
17 | }
18 |
19 | System.out.println("Code working fine ...");
20 |
21 | }
22 |
23 |
24 | public void my_cool_method()throws IOException{
25 | throw new IOException("Im throwing an error from here!");
26 | }
27 |
28 |
29 |
30 | /*
31 |
32 | 1. The throw keyword will allow you to throw an exception (which will break
33 | the execution flow and can be caught in a catch block).
34 |
35 | 2. The throws keyword in the method prototype is used to specify that your method
36 | might throw exceptions of the specified type.
37 | It's useful when you have checked exception (exception that you have to handle) that
38 | you don't want to catch in your current method.
39 |
40 | */
41 | }
42 |
43 |
44 |
--------------------------------------------------------------------------------
/src/JavaCollections/Iterating/Example.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.Iterating;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Iterator;
5 |
6 | /**
7 | * Created by mosharrofrubel on 1/8/17.
8 | */
9 | public class Example {
10 |
11 | public static void main(String[] args){
12 | String[] movie_names = {"Batman", "Superman", "Spiderman", "Antman", "Deadpool", "Captain America", "Thor"};
13 | ArrayList super_heros = new ArrayList();
14 |
15 | // inserting array to array list
16 | for(int i=0; i < movie_names.length; i++){
17 | super_heros.add(movie_names[i]);
18 | }
19 |
20 | // Iterating Method 1
21 | System.out.println("Iterating Method 1:");
22 | for(String s : super_heros){
23 | System.out.println(s);
24 | }
25 |
26 | System.out.println("");
27 |
28 |
29 | // Iterating method 2
30 | System.out.println("Iterating Method 2:");
31 |
32 | // having in iterator
33 | Iterator my_iterator = super_heros.iterator();
34 |
35 | // looping through items
36 | while(my_iterator.hasNext()){
37 | String p = (String) my_iterator.next();
38 | System.out.println(p);
39 | }
40 |
41 |
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/src/StringsAndNumbers/exercise/AwesomeStingAndNumbers.java:
--------------------------------------------------------------------------------
1 | package StringsAndNumbers.exercise;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class AwesomeStingAndNumbers {
7 |
8 | public static void main(String[] args){
9 |
10 | String firstName = "Ishtiaq ";
11 | String lastName = "Rayhan";
12 |
13 | String name = firstName+lastName;
14 | System.out.println(name);
15 |
16 |
17 | String house = "House number is: ";
18 | int number = 207;
19 |
20 | String houseNumber = house+number;
21 | System.out.println(houseNumber);
22 |
23 |
24 | String justNumber = "15";
25 | int getInt = Integer.parseInt(justNumber);
26 | System.out.println(getInt);
27 | //'Integer.parseInt' is used to parse integer from string.
28 |
29 |
30 | // Getting absolute value of numbers by using 'Math.abs' method
31 | double num1 = -13.63;
32 | System.out.println("Absolute number is "+Math.abs(num1));
33 |
34 | // Getting round figure by 'Math.round' method.
35 | double num2 = 23.3;
36 | System.out.println("Round figure is "+Math.round(num2));
37 |
38 |
39 | String text = "Mastering java";
40 | System.out.println("Length is: " + text.length());
41 |
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/src/LoopingThings/exercise/MyLoops.java:
--------------------------------------------------------------------------------
1 | package LoopingThings.exercise;
2 |
3 | import java.util.Scanner;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/17/17.
7 | */
8 | public class MyLoops {
9 | public static void main(String[] arg){
10 |
11 | int increment = 1;
12 | while(increment <= 100) {
13 | System.out.println("Calling.. "+increment);
14 | increment = increment+1;
15 | }
16 |
17 | // ------ do while loop --------
18 | int inc = 1;
19 | do{
20 | System.out.println("Number is.. "+inc);
21 | inc = inc+1;
22 | } while(inc <= 100);
23 |
24 |
25 | int in1 = 20;
26 | do{
27 | System.out.println("Do While Test 1: "+in1);
28 | in1 = in1+1;
29 | } while(in1 <= 10);
30 |
31 | int in2 = 1;
32 | while(in2 <= 10){
33 | System.out.println("Do While Test 2: "+in1);
34 | in2 = in2+2;
35 | }
36 |
37 |
38 | // --------- for loop -----------
39 |
40 | System.out.println("Enter a valid int: ");
41 | Scanner scanner = new Scanner(System.in);
42 | int j = scanner.nextInt();
43 |
44 | for(int i=1; i <= j; i ++) {
45 | System.out.println("Looping to "+j);
46 | }
47 |
48 |
49 |
50 |
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/StringsAndNumbers/AwesomeStingAndNumbers.java:
--------------------------------------------------------------------------------
1 | package StringsAndNumbers;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/6/16.
5 | */
6 | public class AwesomeStingAndNumbers {
7 |
8 | public static void main(String[] args){
9 |
10 | String text1 = "Welcome to the app, Mr. ";
11 | String text2 = "Zubayer";
12 |
13 | // Concating two strings
14 | String final_string = text1+text2;
15 | System.out.println(final_string);
16 |
17 |
18 |
19 | // concating uses plus(+) sign to concat string and others values
20 | String t1 = "Your age is: ";
21 | int age = 15;
22 |
23 | String final_output = t1+age;
24 | System.out.println(final_output);
25 |
26 |
27 | // showing the length of string
28 | System.out.println("Length of t1 string is: " + t1.length());
29 |
30 |
31 | // getting number from string
32 | String no = "45";
33 | int i = Integer.parseInt(no);
34 | System.out.println(i);
35 | // 'Integer.parseInt' is used to parse integer from string.
36 |
37 |
38 | // Getting absolute value of numbers by using 'Math.abs' method
39 | double d = -23.43;
40 | System.out.println(Math.abs(d));
41 |
42 | // Getting round figure by 'Math.round' method.
43 | double d2 = 23.53;
44 | System.out.println(Math.round(d2));
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/FileIO/MyFriends.java:
--------------------------------------------------------------------------------
1 | package FileIO;
2 |
3 | import java.io.*;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/17/17.
7 | */
8 | public class MyFriends {
9 |
10 | public static void main(String[] args){
11 |
12 | // ----------- creating file ---------------------
13 | File myFile = new File("friends.txt");
14 |
15 | // creating file
16 | try {
17 | myFile.createNewFile();
18 | } catch (IOException e) {
19 | System.out.println(e);
20 | }
21 |
22 |
23 |
24 | // ----------- writing file ---------------------
25 | try {
26 | FileWriter fw = new FileWriter(myFile);
27 |
28 | fw.write("Name: Tahir (Phone: 024602938477)\n");
29 | fw.write("Name: Ramim (Phone: 054602938478)\n");
30 | fw.write("Name: Ruhin (Phone: 074602938470)\n");
31 | fw.write("Name: Shimul (Phone: 104602938470)\n");
32 |
33 | fw.flush();
34 | fw.close();
35 | System.out.println("Contacts added successfully!");
36 |
37 | } catch (IOException e) {
38 | System.out.println(e);
39 | }
40 |
41 |
42 | // ----------- reading file ---------------------
43 |
44 | try {
45 | FileReader fr = new FileReader(myFile);
46 | char[] data = new char[200];
47 | fr.read(data);
48 | System.out.println(data);
49 |
50 | } catch (FileNotFoundException e) {
51 | System.out.println(e);
52 | } catch (IOException e) {
53 | System.out.println(e);
54 | }
55 |
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/FileIO/exercise/Birthdays.java:
--------------------------------------------------------------------------------
1 | package FileIO.exercise;
2 |
3 | import java.io.*;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/17/17.
7 | */
8 | public class Birthdays {
9 |
10 | public static void main(String[] args){
11 |
12 | // ----------- creating file ---------------------
13 | File bdayFile = new File("birthdays.txt");
14 |
15 | try {
16 | bdayFile.createNewFile();
17 | } catch (IOException e) {
18 | System.out.println(e);
19 | }
20 |
21 |
22 |
23 | // ----------- writing file ---------------------
24 | try {
25 | FileWriter fwriter = new FileWriter(bdayFile);
26 |
27 | fwriter.write("Name: Limon : 12 Jun\n");
28 | fwriter.write("Name: Rasel : 10 Oct\n");
29 | fwriter.write("Name: Siam : 19 Aug\n");
30 | fwriter.write("Name: Swarna : 12 Feb");
31 |
32 | fwriter.flush();
33 | fwriter.close();
34 |
35 | System.out.println("Birthdays added successfully!");
36 |
37 | } catch (IOException e) {
38 | System.out.println(e);
39 | }
40 |
41 |
42 | // ----------- reading file ---------------------
43 |
44 | try {
45 | FileReader freader = new FileReader(bdayFile);
46 | char[] bdays = new char[84];
47 |
48 | freader.read(bdays);
49 | System.out.println(bdays);
50 |
51 | } catch (FileNotFoundException e) {
52 | System.out.println(e);
53 | } catch (IOException e) {
54 | System.out.println(e);
55 | }
56 |
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/src/JavaCollections/LinkedList/MyLL2.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.LinkedList;
2 |
3 | import java.util.LinkedList;
4 |
5 | /**
6 | * Created by mosharrofrubel on 1/10/17.
7 | */
8 | public class MyLL2 {
9 |
10 | public static void main(String[] args){
11 | String[] peoples = {"Lina", "Shazfa", "Tiya", "Sina", "Mou", "Afrin", "Tareq", "Jiya", "Sonam"};
12 |
13 | // declaring LinkedList
14 | LinkedList names = new LinkedList<>();
15 |
16 | //inserting values to array list
17 | for(int i=0; i < peoples.length; i++){
18 | names.add(peoples[i]);
19 | }
20 |
21 | // showing the result
22 | System.out.println("\n-----LinkedList Output-----\n");
23 | for(String s : names){
24 | System.out.println("Name: "+s);
25 | }
26 |
27 | // --- --- removing 4th element, which is 'Sina' --- ---
28 | names.remove(3);
29 |
30 | // showing the result again
31 | System.out.println("\n-----After removing 4th element-----\n");
32 | for(String s : names){
33 | System.out.println("Name: "+s);
34 | }
35 |
36 |
37 |
38 | // --- --- Adding a vale at first --- ---
39 | names.addFirst("Tania");
40 |
41 | // showing the result again
42 | System.out.println("\n-----After adding an element at first-----\n");
43 | for(String s : names){
44 | System.out.println("Name: "+s);
45 | }
46 |
47 |
48 | // --- --- Adding a vale at last --- ---
49 | names.addLast("Munni");
50 |
51 | // showing the result again
52 | System.out.println("\n-----After adding an element at last-----\n");
53 | for(String s : names){
54 | System.out.println("Name: "+s);
55 | }
56 |
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MasteringJava
2 | Best of Java Examples for Learning.
3 | [Go to [/src ](https://github.com/rubel007cse/MasteringJava/tree/master/src "Click to go to '/src' ")folder from above for exploring details examples with comments to each code line.]
4 | ## Example of Following topics
5 | 1. HelloWorld : My first Java program
6 | 2. Learning Basic Java Syntax
7 | 3. Java DataTypes examples
8 | 4. Java Variables
9 | 5. Knowing Java Operators
10 | 6. Java Number and Java String learning
11 | 7. Practicing Java if-else Loops
12 | 8. Learning Java Switch Statement
13 | 9. Java Array Practicing Examples
14 | 10. Working with Java Methods
15 | 11. Understanding the Java Class and Objects
16 | 12. Testing Java Exception
17 | 13. Java Exception throwing examples
18 | 14. Java Inheritance
19 | 15. Java Overriding , OverLoading
20 | 16. Java Polymorphism
21 | 17. Abstraction in Java
22 | 18. Learning Java Interfaces
23 | 19. Encapsulation in Java & Getter Setter
24 | 20. Java Thread
25 | 21. Java Constructor
26 | 22. IS A, HAS A Relation
27 | 23. This Keyword
28 | 24. Java Operators
29 | 25. Java Access Modifier
30 | 26. Super KeyWord
31 | 27. Java Enum
32 | 28. Java Singleton
33 | 29. Generics
34 | 30. Collections
35 | 31. ArrayList
36 | 32. Iterating
37 | 33. LinkedList
38 | 34. Map
39 | 35. File i/o
40 |
41 | 
42 |
43 | # [Order Book from Rokomari ](https://goo.gl/zjo5yY)
44 |
45 | ## About Me
46 | Software Specialist | Java/Android Dev | Author | Lecturer at Southeast University (Part time)
47 |
48 | Find me on Socials :
49 | [ [Linkedin ](https://www.linkedin.com/in/rubel007cse "Click to go to 'Linkedin' ") ]
50 | [ [Facebook ](https://www.facebook.com/rubel007cse "Click to go to 'Facebook' ") ]
51 | [ [Web ](http://mrubel.com "Click to go to 'MRubel.com' ") ]
52 |
--------------------------------------------------------------------------------
/src/JavaCollections/LinkedList/MyLL.java:
--------------------------------------------------------------------------------
1 | package JavaCollections.LinkedList;
2 |
3 | import java.util.LinkedList;
4 | import java.util.List;
5 |
6 | /**
7 | * Created by mosharrofrubel on 1/8/17.
8 | */
9 | public class MyLL {
10 |
11 | public static void main(String[] args){
12 |
13 | // taking a list
14 | List my_movie_list = new LinkedList();
15 |
16 | Movie m1 = new Movie(1, "Keyamot theke Keyamot", 9.4, "Salman Shah", "Moushumi", "No idea");
17 | Movie m2 = new Movie(2, "Matir Moyna", 9.2, "Unknown", "Unknown", "Mishuk Monir");
18 | Movie m3 = new Movie(3, "Aguner Poroshmoni", 9.8, "Azaz Ahemd", "Humayun Paridhi", "Humayun Ahmed");
19 |
20 | // keep the movies to linkedlist
21 | my_movie_list.add(m1);
22 | my_movie_list.add(m2);
23 | my_movie_list.add(m3);
24 |
25 |
26 | // getting the movies
27 | for(Movie m : my_movie_list){
28 | System.out.println("Movie ID: "+m.mov_id);
29 | System.out.println("Movie Name: "+m.name);
30 | System.out.println("Movie Rating: "+m.rating);
31 | System.out.println("Movie Lead Actor: "+m.lead_actor);
32 | System.out.println("Movie Lead Actress: "+m.lead_actress);
33 | System.out.println("Movie Lead Director: "+m.director);
34 | System.out.println("");
35 |
36 | }
37 |
38 | // let's remove Movie 2
39 | my_movie_list.remove(1);
40 |
41 | System.out.println("-----Printing after removieng one item------");
42 |
43 | // getting the movies, after removing
44 | for(Movie m : my_movie_list){
45 | System.out.println("Movie ID: "+m.mov_id);
46 | System.out.println("Movie Name: "+m.name);
47 | System.out.println("Movie Rating: "+m.rating);
48 | System.out.println("Movie Lead Actor: "+m.lead_actor);
49 | System.out.println("Movie Lead Actress: "+m.lead_actress);
50 | System.out.println("Movie Lead Director: "+m.director);
51 | System.out.println("");
52 |
53 | }
54 |
55 |
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/JavaThread/MyThread.java:
--------------------------------------------------------------------------------
1 | package JavaThread;
2 |
3 | /**
4 | * Created by mosharrofrubel on 12/8/16.
5 | */
6 | public class MyThread implements Runnable {
7 | public static void main(String[] args){
8 | System.out.println("Downloading two files..:");
9 |
10 | // we are creating a thread object below
11 | Thread t1 = new Thread() {
12 | /*
13 | After t1.start , execution comes here to look for run
14 | Then the codes in run should be executed. So, go check t1.start() first.
15 | */
16 | public void run() {
17 | for (int k = 0; k <= 3; k++) {
18 | System.out.println("File 1 downloading " + k * 5 + "%");
19 |
20 | try {
21 | // Let the thread sleep for 1200 mili seconds.
22 | sleep(1200);
23 | } catch (InterruptedException threadExep) {
24 | threadExep.printStackTrace();
25 | }
26 | }
27 |
28 | }
29 |
30 | };
31 | // now, this will call run method
32 | t1.start();
33 |
34 | Thread t2 = new Thread() {
35 | public void run() {
36 | for (int k = 0; k <= 3; k++) {
37 | System.out.println("File 2 Downloading " + k * 5 + "%");
38 |
39 | try {
40 | sleep(1000);
41 | } catch (InterruptedException threadExep) {
42 | threadExep.printStackTrace();
43 | }
44 | }
45 |
46 | }
47 |
48 | };
49 |
50 | t2.start();
51 |
52 |
53 | /*
54 | ------- Using Runnable Interface(run method must be overridden): --------
55 |
56 | Step 1: We will Create an object of the class. Which is obj1 here.
57 | Step 2: Create a thread object and pass the class object through it
58 | Step 3: Start the thread, do operation.
59 |
60 | */
61 | MyThread obj1 = new MyThread();
62 | Thread t3 = new Thread(obj1);
63 | t3.start();
64 |
65 |
66 | /*
67 |
68 | This can be written as:
69 |
70 | Thread t3 = new Thread(new simpMyThreadleThread());
71 | t3.start();
72 |
73 | * */
74 |
75 | }
76 |
77 | @Override
78 | public void run() {
79 | System.out.println("This is my T3 thread!");
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | 1.7
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/.idea/uiDesigner.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | -
6 |
7 |
8 | -
9 |
10 |
11 | -
12 |
13 |
14 | -
15 |
16 |
17 | -
18 |
19 |
20 |
21 |
22 |
23 | -
24 |
25 |
26 |
27 |
28 |
29 | -
30 |
31 |
32 |
33 |
34 |
35 | -
36 |
37 |
38 |
39 |
40 |
41 | -
42 |
43 |
44 |
45 |
46 | -
47 |
48 |
49 |
50 |
51 | -
52 |
53 |
54 |
55 |
56 | -
57 |
58 |
59 |
60 |
61 | -
62 |
63 |
64 |
65 |
66 | -
67 |
68 |
69 |
70 |
71 | -
72 |
73 |
74 | -
75 |
76 |
77 |
78 |
79 | -
80 |
81 |
82 |
83 |
84 | -
85 |
86 |
87 |
88 |
89 | -
90 |
91 |
92 |
93 |
94 | -
95 |
96 |
97 |
98 |
99 | -
100 |
101 |
102 | -
103 |
104 |
105 | -
106 |
107 |
108 | -
109 |
110 |
111 | -
112 |
113 |
114 |
115 |
116 | -
117 |
118 |
119 | -
120 |
121 |
122 |
123 |
124 |
--------------------------------------------------------------------------------