Core java
19 JanuaryJava program to check leap year
In this post, we will see how to check leap year. [crayon-6a2c9502a5cf4161585763/] Output: Enter Year : 2018 2018 is not a Leap Year That’s all about Java program to check leap year.
19 JanuaryJava Program to check a Character is Vowel or Consonant
In this post, we will see how to check a Character is Vowel or Consonant. You just need to check if character is part of set {a,A,e,E,i,I,o,O,u,U}.If it is part of set then it is Vowel else Consonant. [crayon-6a2c9502a76b9581343136/] Output: Enter an Alphabet : g g is a Consonant That’s all about Java Program to […]
18 JanuaryEven odd program in java
In this post,we will see how to check if number is even odd. It is one of the basic programs of Java programming language. [crayon-6a2c9502a77ea658033064/] Output: Enter a Number : 22 22 is an Even Number That’s all about Even odd program in java.
18 JanuaryJava Program to add two numbers
In this post, we will see how to add two numbers in java. This is the most basic program of java programming language. [crayon-6a2c9502a78c4748768585/] Output: Enter two numbers : 5 7 Sum of two numbers is 12 If you notice, we have use Scanner to take input from user.
02 JanuaryInterface Segregation Principle in java
In this tutorial, we will learn about Interface Segregation Principle.It is one of the SOLID principles. In simple term, Interface Segregation Principle dictates that client should not be forced to implement the methods which it won’t be able to use.You can always throw UnsupportedOperationException from the method which you don’t want to use but it […]
02 JanuaryOpen Closed Principle in Java
In this tutorial, we will learn about Open Closed Design Principle in Java.Open closed principle is one of the SOLID principles. Open Closed Design Principle dictates that “software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification”. This definition was provided by Bertrand Meyer. Once we have written the class and […]
28 DecemberSingle Responsibility Principle in Java
In this tutorial, we will learn about single responsibility principle in java.It is one of SOLID principles and simplest design principle as well. Single responsibility principle dictates that there should be only one reason to change the class.If you have more than one reason to change the class then refactor the class into multiple classes according […]
25 DecemberVodnik po bonih in mobilnem dostopu bet365 – izračuni in nasveti
Ta praktični vodnik po Bet365 mobile app se osredotoča na tisto, kar je resnično pomembno: bonuse, mobilni dostop in pravočasno izplačilo. Ne glede na to, ali ste novinec ali izkušen igralec, boste tukaj našli natančne informacije o delovanju, matematične izračune in praktične rešitve za pogoste težave. Quick Checklist Preverite starostno in identifikacijsko zahtevo (KYC) – […]
24 DecemberReverse number in java
In this post, we will see how to reverse a number in java. Here is simple program to reverse a number. [crayon-6a2c9502a8b93939507303/] Output: Enter a Number : 4567 Reverse of the number : 7654 Let’s just observe values of variables at the end of each iteration. Iteration 0: number = 4567,remainder = 0, reversedNumber = […]