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
//#6 2 Number Adder(Calculator) from user input
// This for Scan anything entered by user (user inputs)
import java.util.Scanner;

class myClass {
public static void main(String[] args) {

int x,y,Sum;

Scanner s = new Scanner(System.in);
// it will take input from keyboard

System.out.println("Enter 1st Number: ");
x = s.nextInt(); // scanning

System.out.println("Enter 2nd Number: ");
y = s.nextInt(); // scanning

Sum = x+y;
System.out.println("Sum = "+ Sum);
}
}
❤2🔥2
Data structures short notes
❤5
Jiske pass Laptop nhi hai 👇
Mobile best Compiler's

C Compiler Click Here
C++ Compiler Click Here
Python Compiler Click Here
Java Compiler Click Here
Sql Compiler Click Here

Universal Compilers for mobile

Replit (web or app) Click Here
Jdoodle(web or app) Click Here
Programize (web) Search web

For any help Freely Say here
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);
    }
}