JAVA PROGRAMMING
4.93K subscribers
233 photos
186 files
91 links
Hello! I am @imabhi3030 and welcome to the Coding channel! Here we can learn all things related to coding and improve our skills. I am always present to help you. If you need any kind of assistance, just let me know! 😊
Download Telegram
Join for all programming language more than 30+ channel you must join here useful channel like programming, hacking, notes everything 😁``

πŸ‘‰ https://t.me/addlist/5MDFVZjV1Yo2NWI1
// #5 Atithmetic Operations in Java
public class MyClass {
public static void main(String args[]) {

// declaring variables
int add, sub, div, mul, rem;

// Declaring two varables
int x=4;
int y=2;

// performing Operations
add = x+y; // Addition
sub = x-y; // Subtraction
div = x/y; // Division
mul = x+y; // Multiply
rem= x%y; // reminder

// Showing results
System.out.println("4 + 2 = "+ add);
System.out.println("4 - 2 = "+ sub);
System.out.println("4 * 2 = "+ mul);
System.out.println("4 / 2 = "+ div);
System.out.println("4 % 2 = "+ rem);
}
}
πŸ”₯2
"public static void main(String arg[])" is written:
Anonymous Quiz
31%
Outside Class
69%
Inside Class
import java.util.Scanner;

"Start"
Scanner scanner = new Scanner(System.in);

Pt"Enter an integer: "
int number = scanner.nextInt();

Pt"You entered: " + number

scanner.close();

"End"
πŸ”₯1
Java All Important Codes -Dex Code.pdf
134.7 KB
Java codes for exams
πŸ‘2
1) Which of the following not a primitive data type?
Anonymous Quiz
15%
int
13%
byte
67%
enum
4%
short
// 3. toLowerCase()
public class LowerCaseExample {
    public static void main(String[] args) {
        String str = "Hello, World!";
        String lowerCaseString = str.toLowerCase();
        System.out.println("Lowercase string: " + lowerCaseString);
    }
}
// 4. equals()
public class StringEqualityExample {
    public static void main(String[] args) {
        String str1 = "hello";
        String str2 = "HELLO";
        boolean isEqual = str1.equals(str2);
        System.out.println("Are strings equal? " + isEqual);
    }
}
// 5. substring()
public class SubstringExample {
    public static void main(String[] args) {
        String str = "Hello, World!";
        String substring = str.substring(7);
        System.out.println("Substring from index 7: " + substring);
    }
}
// 41. replaceFirst()
public class ReplaceFirstExample {
public static void main(String[] args) {
String str = "apple orange apple orange";
String replacedString = str.replaceFirst("apple", "banana");
System.out.println("String after replacing first occurrence: " + replacedString);
}
}
// 42. regionMatches()
public class RegionMatchesExample {
public static void main(String[] args) {
String str1 = "Hello World";
String str2 = "WORLD";
boolean matches = str1.regionMatches(true, 6, str2, 0, 5);
System.out.println("Do regions match ignoring case? " + matches);
}
}
πŸ‘1
// 43. offsetByCodePoints()
public class OffsetByCodePointsExample {
public static void main(String[] args) {
String str = "Hello World";
int index = str.offsetByCodePoints(0, 6);
System.out.println("Index after moving by code points: " + index);
}
}
❀1
// 44. join()
public class JoinExample {
public static void main(String[] args) {
String[] words = {"Hello", "World", "Java"};
String joinedString = String.join(", ", words);
System.out.println("Joined string: " + joinedString);
}
}
πŸ‘2
NOTE - Alpha delta and supreme batch course are include in this channel

Free for all 😁feel free to ask @imabhi3030

Javascript full course - https://t.me/Javascript_Course_js

full stack web devloper course - https://t.me/web_devloper_bro

Ethical hacking full course - https://t.me/Ethical_hackings_course

Reacts & nodejs full course - https://t.me/Reacts_Course

Linux full course - https://t.me/Linux_Courses

Python devloper full course - https://t.me/Python_Devloper

Machine learning & ai course - https://t.me/Machine_learnings_Ai

Android apps devloper full course - https://t.me/Mobile_Apps_devlopment

JOIN ALL IMPORTANT COURSE - πŸ‘‰πŸ» https://t.me/addlist/c3QWwWR-Iw4xMDNl
Subscribe our channel for coding, design, programming, Coreldraw, Excel, termux hacking, python animation, and more

Subscribe please -
πŸ‘‰βœ… https://youtube.com/@CODEBOMBS
πŸ‘1
// 1. length()

public class StringLengthExample {
    public static void main(String[] args) {
        String str = "Hello, World!";
        int length = str.length();
        System.out.println("Length of the string: " + length);
    }
}
❀1πŸ‘1