ru
Feedback
Advance Java πŸ‘¨β€πŸ’»

Advance Java πŸ‘¨β€πŸ’»

ΠžΡ‚ΠΊΡ€Ρ‹Ρ‚ΡŒ Π² Telegram

This channel will serve you all the Codes and Programs of java Programming Language Contact Admin: @Pravin_Suthar Youtube channel: https://www.youtube.com/channel/UCWFwwPMuAx_DY3hi9Tin7gA Like share and subscribe my channel

Π‘ΠΎΠ»ΡŒΡˆΠ΅
Π‘Ρ‚Ρ€Π°Π½Π° Π½Π΅ ΡƒΠΊΠ°Π·Π°Π½Π°Π’Π΅Ρ…Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ ΠΈ прилоТСния7 898

πŸ“ˆ АналитичСский ΠΎΠ±Π·ΠΎΡ€ Telegram-ΠΊΠ°Π½Π°Π»Π° Advance Java πŸ‘¨β€πŸ’»

Канал Advance Java πŸ‘¨β€πŸ’» (@java_codings) языкового сСгмСнта Английский являСтся Π°ΠΊΡ‚ΠΈΠ²Π½Ρ‹ΠΌ участником. БСйчас сообщСство ΠΎΠ±ΡŠΠ΅Π΄ΠΈΠ½ΡΠ΅Ρ‚ 12 264 подписчиков, занимая 7 898 мСсто Π² ΠΊΠ°Ρ‚Π΅Π³ΠΎΡ€ΠΈΠΈ Π’Π΅Ρ…Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ ΠΈ прилоТСния.

πŸ“Š ΠŸΠΎΠΊΠ°Π·Π°Ρ‚Π΅Π»ΠΈ Π°ΡƒΠ΄ΠΈΡ‚ΠΎΡ€ΠΈΠΈ ΠΈ Π΄ΠΈΠ½Π°ΠΌΠΈΠΊΠ°

Π‘ ΠΌΠΎΠΌΠ΅Π½Ρ‚Π° создания Π½Π΅Π²Ρ–Π΄ΠΎΠΌΠΎ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ дСмонстрируСт ΡΡ‚Ρ€Π΅ΠΌΠΈΡ‚Π΅Π»ΡŒΠ½Ρ‹ΠΉ рост, собрав Π°ΡƒΠ΄ΠΈΡ‚ΠΎΡ€ΠΈΡŽ ΠΈΠ· 12 264 подписчиков.

Богласно послСдним Π΄Π°Π½Π½Ρ‹ΠΌ ΠΎΡ‚ 03 дСкабря, 2024, ΠΊΠ°Π½Π°Π» ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚ ΡΡ‚Π°Π±ΠΈΠ»ΡŒΠ½ΡƒΡŽ Π°ΠΊΡ‚ΠΈΠ²Π½ΠΎΡΡ‚ΡŒ. Π—Π° послСдниС 30 Π΄Π½Π΅ΠΉ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ числа участников составило 0, Π° Π·Π° послСдниС 24 часа β€” 0, ΠΏΡ€ΠΈ этом ΠΎΠ±Ρ‰ΠΈΠΉ ΠΎΡ…Π²Π°Ρ‚ остаётся высоким.

  • Бтатус Π²Π΅Ρ€ΠΈΡ„ΠΈΠΊΠ°Ρ†ΠΈΠΈ: НС Π²Π΅Ρ€ΠΈΡ„ΠΈΡ†ΠΈΡ€ΠΎΠ²Π°Π½
  • Π£Ρ€ΠΎΠ²Π΅Π½ΡŒ вовлСчённости (ER): Π‘Ρ€Π΅Π΄Π½ΠΈΠΉ ΠΏΠΎΠΊΠ°Π·Π°Ρ‚Π΅Π»ΡŒ вовлСчённости Π°ΡƒΠ΄ΠΈΡ‚ΠΎΡ€ΠΈΠΈ составляСт 0%. Π’ ΠΏΠ΅Ρ€Π²Ρ‹Π΅ 24 часа послС ΠΏΡƒΠ±Π»ΠΈΠΊΠ°Ρ†ΠΈΠΈ ΠΊΠΎΠ½Ρ‚Π΅Π½Ρ‚ ΠΎΠ±Ρ‹Ρ‡Π½ΠΎ Π½Π°Π±ΠΈΡ€Π°Π΅Ρ‚ N/A% Ρ€Π΅Π°ΠΊΡ†ΠΈΠΉ ΠΎΡ‚ ΠΎΠ±Ρ‰Π΅Π³ΠΎ числа подписчиков.
  • ΠžΡ…Π²Π°Ρ‚ ΠΏΡƒΠ±Π»ΠΈΠΊΠ°Ρ†ΠΈΠΉ: Π’ срСднСм ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ пост ΠΏΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ 0 просмотров. Π’ Ρ‚Π΅Ρ‡Π΅Π½ΠΈΠ΅ ΠΏΠ΅Ρ€Π²Ρ‹Ρ… суток публикация Π½Π°Π±ΠΈΡ€Π°Π΅Ρ‚ 0 просмотров.
  • Π Π΅Π°ΠΊΡ†ΠΈΠΈ ΠΈ взаимодСйствия: Аудитория Π°ΠΊΡ‚ΠΈΠ²Π½ΠΎ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΈΠ²Π°Π΅Ρ‚ ΠΊΠΎΠ½Ρ‚Π΅Π½Ρ‚: срСднСС количСство Ρ€Π΅Π°ΠΊΡ†ΠΈΠΉ Π½Π° ΠΎΠ΄ΠΈΠ½ пост β€” 0.

πŸ“ ОписаниС ΠΈ контСнтная ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΠ°

Автор описываСт рСсурс ΠΊΠ°ΠΊ ΠΏΠ»ΠΎΡ‰Π°Π΄ΠΊΡƒ для выраТСния ΡΡƒΠ±ΡŠΠ΅ΠΊΡ‚ΠΈΠ²Π½ΠΎΠ³ΠΎ мнСния:
β€œThis channel will serve you all the Codes and Programs of java Programming Language Contact Admin: @Pravin_Suthar Youtube channel: https://www.youtube.com/channel/UCWFwwPMuAx_DY3hi9Tin7gA Like share and subscribe my channel”

Благодаря высокой частотС ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠΉ (послСдниС Π΄Π°Π½Π½Ρ‹Π΅ ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½Ρ‹ 04 дСкабря, 2024) ΠΊΠ°Π½Π°Π» ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΈΠ²Π°Π΅Ρ‚ Π°ΠΊΡ‚ΡƒΠ°Π»ΡŒΠ½ΠΎΡΡ‚ΡŒ ΠΈ высокий ΡƒΡ€ΠΎΠ²Π΅Π½ΡŒ ΠΎΡ…Π²Π°Ρ‚Π° ΠΏΡƒΠ±Π»ΠΈΠΊΠ°Ρ†ΠΈΠΉ. Аналитика ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚, Ρ‡Ρ‚ΠΎ аудитория Π°ΠΊΡ‚ΠΈΠ²Π½ΠΎ взаимодСйствуСт с ΠΊΠΎΠ½Ρ‚Π΅Π½Ρ‚ΠΎΠΌ, Ρ‡Ρ‚ΠΎ Π΄Π΅Π»Π°Π΅Ρ‚ Π΅Π³ΠΎ Π²Π°ΠΆΠ½ΠΎΠΉ Ρ‚ΠΎΡ‡ΠΊΠΎΠΉ влияния Π² ΠΊΠ°Ρ‚Π΅Π³ΠΎΡ€ΠΈΠΈ Π’Π΅Ρ…Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ ΠΈ прилоТСния.

12 264
ΠŸΠΎΠ΄ΠΏΠΈΡΡ‡ΠΈΠΊΠΈ
НСт Π΄Π°Π½Π½Ρ‹Ρ…24 часа
НСт Π΄Π°Π½Π½Ρ‹Ρ…7 Π΄Π½Π΅ΠΉ
НСт Π΄Π°Π½Π½Ρ‹Ρ…30 дСнь
Архив постов
14. Program to Convert Binary to Octal. import java.io.*; class BinaryToOctal { public static void main(String[] args) throws Exception { String num = null; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter binary number : "); num = br.readLine(); int dec = Integer.parseInt(num, 2); String oct = Integer.toOctalString(dec); System.out.println("Binary " + num + " in Octal is " + oct); } } @java_codings

13. Program to Convert Binary to Decimal. import java.io.*; class BinaryToDecimal { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter Binary no. to convert in Decimal : "); String number = br.readLine(); /* to convert Binary number to decimal number use, int parseInt method of Integer wrapper class. Pass 2 as redix second argument. */ int decimalNumber = Integer.parseInt(number, 2); System.out.println("Binary number converted to decimal number"); System.out.println("Decimal number is : " + decimalNumber); } } @java_codings

12. Program to Calculate Mean. import java.util.Scanner; class CalculateMean { public static void main(String[] args) { int sum = 0, inputNum; int counter; float mean; Scanner NumScanner = new Scanner(System.in); System.out.println("Enter the total number of terms whose mean you want to calculate"); counter = NumScanner.nextInt(); System.out.println("Please enter " + counter + " numbers:"); for (int x = 1; x <= counter; x++) { inputNum = NumScanner.nextInt(); sum = sum + inputNum; System.out.println(); } mean = sum / counter; System.out.println("The mean of the " + counter + " numbers you entered is " + mean); } } @java_codings

11. Program to Create a Simple Calculator. import java.util.Scanner; import java.io.*; class Calculator { public static void main(String[] args) { int choice; int x = 0; int y = 0; int sum; PrintStream out; Scanner input; Calculator calc = new Calculator(); try { out = new PrintStream("calclog.txt"); do { System.out.println("Calculator Program"); System.out.println("--------------------\n"); System.out.println("1. Add"); System.out.println("2. Subtract"); System.out.println("3. Multiply"); System.out.println("4. Divide"); System.out.println("5. Mod"); System.out.println("6. Power"); System.out.println("99. End Program\n"); System.out.println("Enter Choice: "); input = new Scanner(System.in); choice = input.nextInt(); while ((choice < 1 || choice > 6) && choice != 99) { System.out.println("Please enter 1, 2, 3, 4, 5, or 6: "); choice = input.nextInt(); } if (choice != 99) { System.out.println("Please enter 2 numbers only: "); x = input.nextInt(); y = input.nextInt(); } switch (choice) { case 1: sum = calc.add(x, y); System.out.printf("The sum is %d\n\n", sum); out.println(x + "+" + y + "=" + sum); break; case 2: sum = calc.sub(x, y); System.out.printf("The answer is %d\n\n", sum); out.println(x + "-" + y + "=" + sum); break; case 3: sum = calc.multi(x, y); System.out.printf("The answer is %d\n\n", sum); out.println(x + "*" + y + "=" + sum); break; case 4: try { sum = calc.div(x, y); System.out.printf("The answer is %d\n\n", sum); out.println(x + "/" + y + "=" + sum); } catch (Exception e) { System.out.println("\nError: Cannot Divide by zero\n\n"); } break; case 5: sum = calc.mod(x, y); System.out.printf("The mod is %d\n\n", sum); out.println(x + "%" + y + "=" + sum); break; case 6: sum = calc.pow(x, y) System.out.printf("The answer is %d\n\n", sum); out.println(x + "^" + y + "=" + sum); break; } } while (choice != 99); input.close(); System.out.println("Ending program..."); } catch (Exception e){ System.out.println("ERROR: Some error occured"); e.printStackTrace(); } } public int add(int num1, int num2) {int sum; sum = num1 + num2; return sum; } public int sub(int num1, int num2) { int sum; sum = num1 - num2; return sum; } public int multi(int num1, int num2) { int sum; sum = num1 * num2; return sum; } public int div(int num1, int num2) {int sum; sum = num1 / num2; return sum; } public int mod(int num1, int num2) {int sum; sum = num1 % num2; return sum; } public int pow(int base, int exp) {int sum = 1; if (exp == 0) {sum = 1; } while (exp > 0) {sum = sum * base; exp--; } return sum; } } @java_codings

10. Program to Convert Celsius to Fahrenheit. import java.util.*; class CelsiustoFahrenheit { public static void main(String[] args) { double temperature; Scanner in = new Scanner(System.in); System.out.println("Enter temperature in Celsius"); temperature = in.nextInt(); temperature = (temperature * 9 / 5.0) + 32; System.out.println("Temperature in Fahrenheit = " + temperature); } } @java_codings

9. Program to Calculate Binary Number Calculation. import java.util.*; class BinaryCalculator { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("First Binary: "); String binOne = in.next(); System.out.print("Second Binary: "); String binTwo = in.next(); int left = Integer.parseInt(binOne, 2); int right = Integer.parseInt(binTwo, 2); System.out.println("Sum of the binary numbers : " + Integer.toBinaryString(left + right)); System.out.println("Difference of the binary numbers : " + Integer.toBinaryString(left - right)); System.out.println("Product of the binary numbers : " + Integer.toBinaryString(left * right)); System.out.println("Quotient of the binary numbers : " + Integer.toBinaryString(left / right)); } } @java_codings

8. Program to Find Simple Interest and Compound Interest. import java.lang.*; import java.util.Scanner; class CalculateInterest { public static void main(String[] args) { double p, n, r, si, ci; Scanner s = new Scanner(System.in); System.out.print("Enter the amount : "); p = s.nextDouble(); System.out.print("Enter the No.of years : "); n = s.nextDouble(); System.out.print("Enter the Rate of interest : "); r = s.nextDouble(); si = (p * n * r) / 100; ci = p * Math.pow(1.0 + r / 100.0, n) - p; System.out.println("\nAmount : " + p); System.out.println("No. of years : " + n); System.out.println("Rate of interest : " + r); System.out.println("Simple Interest : " + si); System.out.println("Compound Interest : " + ci); } } @java_codings

7. Program to Calculate Area's. import java.util.Scanner; class AreaCalculator { float l, b, h, r, ba, s, c; float result = 0f; float pi = 3.14f; int var; public static void main(String[] args) { AreaCalculator ar = new AreaCalculator(); ar.options(); } public void options() { Scanner a = new Scanner(System.in); System.out.println("Enter the Object of which Area is to be calculated \n1:square \n2:rectangle \n3:Triangle\n4:circle\n5:Trapezoid\n6:Repeat\n7:Exit"); var = a.nextInt(); Area a1 = new Area(); if (var == 1) { System.out.println("Enter the Side of Square"); s = a.nextFloat(); a1.square(s); options(); } else if (var == 2) { System.out.println("Enter the Length of Rectangle"); l = a.nextFloat(); System.out.println("Enter the Breadth of Rectangle"); b = a.nextFloat(); a1.rectangle(l, b); options(); } else if (var == 3) { System.out.println("Enter the Height of Triangle"); h = a.nextFloat(); System.out.println("Enter the Base of Triangle"); ba = a.nextFloat(); a1.triangle(h, ba); options(); } else if (var == 4) { System.out.println("Enter the Radius of Circle"); r = a.nextFloat(); a1.circle(r); options(); } else if (var == 5) { System.out.println("Enter the A side of Trapezoid"); b = a.nextFloat(); System.out.println("Enter the B side of Trapezoid"); c = a.nextFloat(); System.out.println("Enter the Height of Trapezoid"); h = a.nextFloat(); a1.trapezoid(b, c, h); options(); } } } class Area { public void square(float s) { float result = 0f; result = s * s; System.out.println("The Area of Square is :" + result); } public void rectangle(float l, float b) { float result = 0f; result = l * b; System.out.println("The Area of Rectangle is :" + result); } public void triangle(float h, float ba) { float result = 0f; result = 0.5f * h * ba; System.out.println("The Area of Triangle is :" + result); } public void circle(float r) { float result = 0f; result = 3.14f * (r * r); System.out.println("The Area of Circle is :" + result); } public void trapezoid(float b, float c, float h) { float result = 0f; result = (((b + c) / 2) * h); System.out.println("The Area of Trapezoid is :" + result); } } @java_codings

6. Program to Accept value of the side of Square and Calculate Area of Square. import java.util.*; class AreaOfSquare { public static void main(String args[]) { int side, area; Scanner sc = new Scanner(System.in); System.out.println("Enter value of the sides of square"); side = sc.nextInt(); area = side * side; System.out.println("Area of Square : " + area); } } @java_codings

5. Program to Accept value of length & width and Calculate Area of Rectangle. import java.util.Scanner; class AreaOfRectangle { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Enter the length of Rectangle:"); double length = scanner.nextDouble(); System.out.println("Enter the width of Rectangle:"); double width = scanner.nextDouble(); //Area = length*width; double area = length * width; System.out.println("Area of Rectangle is:" + area); } } @java_codings

4. Program to Accept value of Radius and Calculate Area of Circle. class CalculateCircleAreaExample { public static void main(String[] args) { int radius = 3; System.out.println("The radius of the circle is " + radius); /* * Area of a circle is pi * r * r where r is a radius of a circle. */ // NOTE : use Math.PI constant to get value of pi double area = Math.PI * radius * radius; System.out.println("Area of a circle is " + area); } } @java_codings

3. Program to accept three Number and Print Largest among them. class CommandLineArgs { public static void main(String args[]) { int a, b, c; a = Integer.parseInt(args[0]); b = Integer.parseInt(args[1]); c = Integer.parseInt(args[2]); if (a > b && a > c) { System.out.println("Largest Number is : " + a); } else if (b > c) { System.out.println("Largest Number is : " + b); } else { System.out.println("Largest Number is : " + c); } } } @java_codings

2. Program to Accept values of Two Numbers and print their Addition. import java.util.Scanner; class AddNumbers { public static void main(String args[]) { int x, y, z; System.out.print("Enter two integers to calculate their sum : "); Scanner in = new Scanner(System.in); x = in.nextInt(); y = in.nextInt(); z = x + y; System.out.println("Sum of entered integers = " + z); } } @java_codings

1. Program to Print Hello World. class HelloWorld { public static void main(String args[]) { System.out.println("Hello World!!"); } } @java_codings