Posts

Showing posts from April, 2021

Java Iterators

Image
  Iterators in Java: 1. For 2. While 3. Do While  

Java Control Statements

Image
     Control Statements in Java: Decision Making Statements Simple if statement if-else statement Nested if statement Switch statement For-Each Branching statements Break Continue

Operators in Java

Image
  Operators in Java Programing: Unary Operator, Arithmetic Operator, Shift Operator, Relational Operator, Bitwise Operator, Logical Operator, Ternary Operator and Assignment Operator.   Operator Type Category Precedence Unary postfix expr ++ expr -- prefix ++ expr -- expr + expr - expr ~ !               Arithmetic multiplicative * / % additive + - Shift shift << >> >>> Relational comparison < > <= >= instanceof equality == != Bitwise bitwise AND & bitwise exclusive OR ^ bitwise inclusive OR | Logical logical AND && logical OR || Ternary ternary ? : Assignment assignment = += -= *= /= %= &= ^= |= <<= >>= >>>=  

Java Data_Types

Image
  Data_Types in Java Programing: Primitive data types: The primitive data types include boolean, char, byte, short, int, long, float and double. Non-primitive data types: The non-primitive data types include Classes, Interfaces and Array.  Primitive Data Types: boolean data type byte data type char data type short data type int data type long data type float data type double data type    Non - Primitive Data Types: Class Interfaces Array    

How to Go to Another Activity(switch Activity) Using KOTLIN

Image
Tutorial Video:   Codes Used in the Above Video   XML Code(Activity_1) : <? xml version ="1.0" encoding ="utf-8" ?> <LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :orientation ="vertical" android :gravity ="center" android :layout_height ="match_parent" tools :context =".MainActivity" > <TextView android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :text ="Activity 1" android :textSize ="50sp" tools :ignore ="MissingConstraints" /> <Button android :id ="@+id/btnGoTo2" android :layout_width ="wrap_content" android :layout...

Simple Counting App Using Kotlin

Image
 XML Code:    <? xml version ="1.0" encoding ="utf-8" ?> <LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :orientation ="vertical" android :gravity ="center" android :layout_height ="match_parent" tools :context =".MainActivity" > <TextView android :id ="@+id/textCount" android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :text ="24" android :layout_marginBottom ="50dp" android :textSize ="80sp" /> <LinearLayout android :layout_width ="wrap_content" android :orientation ="horizontal" android :layout_height ="wrap_...

Change Text of TextView On Clicking Button

Image
   Code Used In the Video Below:               btnChangeTxt.setOnClickListener { textView. text = "Button Clicked" }    

Android Studio Setup for KOTLIN

Image
1. Create a New Project 2. Select Empty Project   3. Give name, package name etc       4. You can see the main interface of Android Studio  

What is KOTLIN?

Image
 Kotlin is one of the top android developing language in the world. Kotlin is more easier than java. For beginners kotlin is the best choice for android development. Kotlin is a cross-platform, statically typed, general-purpose programming language with type inference. Kotlin is designed to interoperate fully with Java, and the JVM version of Kotlin's standard library depends on the Java Class Library, but type inference allows its syntax to be more concise.