fa
Feedback
JAVA PROGRAMMING

JAVA PROGRAMMING

رفتن به کانال در Telegram

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! 😊

نمایش بیشتر
5 008
مشترکین
-324 ساعت
-147 روز
+9330 روز
آرشیو پست ها
1) Which of the following not a primitive data type?
Anonymous voting

Java codes for exams

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"

"public static void main(String arg[])" is written:
Anonymous voting

// #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);
  }
}

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

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

Data structures short notes
+8
Data structures short notes

//#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);
    }
}

// #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);
  }
}

🔰 join ᴏᴜʀ ᴀʟʟ ᴄʜᴀɴɴᴇʟs for coding 🔰 ᴛᴇʀᴍᴜx ʜᴀᴄᴋɪɴɢ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛᴇʀᴍᴜx ᴄᴏᴍᴍᴀɴᴅ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛᴇʀᴍᴜx ᴛʀɪᴄᴋs ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴘʜᴘ ʟᴀɴɢᴜᴀɢᴇs ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄ ᴘʀᴏɢʀᴀᴍᴍɪɴɢ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄ++ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄ# ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴊᴀᴠᴀ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄss ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴘʏᴛʜᴏɴ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛʏᴘᴇsᴄʀɪᴘᴛ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴊᴀᴠᴀsᴄʀɪᴘᴛ ᴄʟɪᴄᴋ ʜᴇʀᴇ ʜᴛᴍʟ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ

//#4 Declaring & iniitializing Array
public class MyClass {
  public static void main(String args[]) {
     
     int arr[]; //declaring array
     arr = new int[20]; // allocating memory
  
     arr[0]= 55; //iniitializing first element
     arr[1]= 33; //initi.... 2nd Element
     System.out.println(arr[0]);
  }
}

//#4 Declaring & iniitializing Array
public class MyClass {
  public static void main(String args[]) {
     
     int arr[]; //declaring array
     arr = new int[20]; // allocating memory
  
     arr[0]= 55; //iniitializing first element
     arr[1]= 33; //initi.... 2nd Element
     System.out.println(arr[0]);
  }
}

Subscribe our channel for termux hacking,python animation,coding,html ,telegram bot tips & trick related - 👉 https://youtube.com/@CODEBOMBS Subscribe our channel for termux hacking, designing, tips & trick, bot making related - 👉 https://youtube.com/@TECHINDNN

Kya abhi bhi Google pe hi search krte ho 😒 Smart bniye use kijiye hmara Chatgpt telegram bot 👉 @imabhiAI_bot ✅ unlimited message ✅ 24×7 Support ✅ support all languages ✅ translation features ✅ quick response ✅ easy to use Our other bot you can try Compiler bot advance - @IOCompiler_bot Code compiler - @Cmpbbot Compiler pro - @CodeCompiler_Bot Solve maths - @mathsrobot Group/channel manage - @Myhurthearts_bot

Program with use of switch case to find a months public class Example{ public static void main(String args[]){ int month= 7; switch(month){ case 1 : System.out.println("january"); break; case 2: System.out.println("february"); break; case 3: System.out.println("march"); break; case 4: System.out.println("april"); break; case 5: System.out.println("may"); break; case 6: System.out.println("june"); break; case 7: System.out.println("july"); break; case 8: System.out.println("august"); break; case 9: System.out.println("september"); break; case 10: System.out.println("October"); break; case 11: System.out.println("november"); break; case 12: System.out.println("december"); break; default: System.out.println("not valid"); } } } Output: july