Break Statement in JAVA

Break Statement in JAVA The break statement is usually used in following two scenarios: The break statement terminates the loop immediately, and the control of the program moves to the next statement following the loop. The important point to note here is that when a break statement is used inside a nested loop, then only…

Loops in java

Loops in JAVA Loops are used to execute a set of statements repeatedly until a particular condition is satisfied. Loop is used in programming to repeat a specific block of code. In Java we have three types of basic loops- 1). FOR Loop 2). WHILE Loop 3). DO-WHILE Loop For Loop The “For statement” provides…

Switch Case Statement

Switch Case Statement The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts of code based on the value of the expression. Switch case statement is used when we have number of options (or choices) and we may need to perform a different task for each…

Java If-else Statement

Java If-else Statement The Java if statement is used to test the condition. It checks boolean condition: true or false. For example, if a number is greater than zero then we want to print “Positive Number” but if it is less than zero then we want to print “Negative Number”. In this case we have…

Java Operators

Java Operators An operator is used to perform an operation over one or more operands. It is a character that represents an action, for example * is an arithmatic operator that represents multiplication. Operator in Java are classified as:- Assignment Operator Arithmetic Operator Auto-increment and Auto-decrement Operator Logical Operator Relation Operator Bitwise Operator Ternary Operator…

Drag and Drop Collection View cell in IOS 11 & swift 4

Drag and Drop Collection View cell in IOS 11 & swift 4 In this tutorial we are explain how to drag and drop collection view cell in two collection View at same screen in iPhone IOS 11. In IOS 11 apple introduced the Two type of protocols UICollectionViewDragDelegate and UICollectionViewDropDelegate, By the use of these…

Data Types in Java

Data Types in Java Data types represent the different values to be stored in the variable, for example if a variable has int data type, it can only take integer values. In java, there are two types of data types: Primitive Data Types Non-Primitive Data Types

Variables in Java

Variables in Java A variable is something which is associated with a value can be changed. For example: int i=10; Here variable name “i” which is associated with with value 10, int is a data type that represents that this variable can hold integer values. Note: We will cover the data types in the next…

First Java Program

First Java Program NOTE: You need to have java installed on your system. Step 1: Open a text editor, like Notepad on windows and TextEdit on Mac. Write a Java Program as similar as mentioned below, in the text editor. public class FirstJavaProgram{ public static void main(String[] args){ System.out.println(“This is my first java program.”) }//End…

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.