import java.util.Arrays;public class Main{ public static void main(String []args){ char c1='s'; String str1="rock"; char[] str2= {'s', 't', 'a', 'r'}; ...
1. Max and min, 2. sum and avg, 3. search for an element, 4. move the min to the beginning
in
Array,
JAVA
- on ১:১৩ AM
- No comments
1. Max and min, 2. sum and avg, 3. search for an element, 4. move the min to the beginningMax= 20 Min= 2 Sum= 39 Avg= 7.8 Please Enter any value: 89 [10, 2, 20, 3, 4] [2, 10, 20, 3, 4] import...
Triangle Star
in
JAVA
- on ১২:২৯ AM
- No comments

******import java.util.Scanner;public class Main{ public static void main(String[] args) { for(int i=1; i<=3; i++){ for(int j=1; j<=i;j++){ ...
Switch Case Weekdays
in
JAVA
- on ১১:৩৪ PM
- No comments

import java.util.Scanner;public class Main{ public static void main(String[] args) { Scanner scn = new Scanner(System.in); System.out.print("Please enter any number: "); int num = scn.nextInt(); ...
1+2+3+.....+10=55
in
JAVA
- on ১১:২১ PM
- No comments

public class Main{ public static void main(String[] args) { int sum=0; for(int i=1; i <= 10; i++) { sum=sum+i; } System.out.println("Sum= "+ sum); }}Output:...