Java (Basic) Certification - || | Hackerrank Certifications

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • Please follow us
    / dev.19.community
    Thanks for watching us ...
    Dev19🖤

ความคิดเห็น • 8

  • @kaushik.lakhani
    @kaushik.lakhani ปีที่แล้ว +16

    class Arithmetic {
    public Integer sum(Integer[] arr){
    int total =0;
    for(int i=0;i

  • @jozefmichalicka3443
    @jozefmichalicka3443 ปีที่แล้ว +6

    Hey, did you notice that you are violating rules with this video??? Thank you for cheating

  • @kritik__0990
    @kritik__0990 ปีที่แล้ว +2

    Sir you can me the JAVA multi sum code

  • @chaitanyasripathi1912
    @chaitanyasripathi1912 3 หลายเดือนก่อน

    Sir can you tell me java encryption and decryption

  • @resumesurajsingh20
    @resumesurajsingh20 ปีที่แล้ว +2

    hey can u provide the soltuion of the multi sum
    please

  • @parvez1070
    @parvez1070 ปีที่แล้ว +6

    import java.util.Scanner;
    public class Arithmetic {
    public static int sum(Integer[] array) {
    int sum = 0;
    for (int num : array) {
    sum += num;
    }
    return sum;
    }
    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    String integerInput = input.nextLine();
    String[] integerStrings = integerInput.split(" ");
    Integer[] numbers = new Integer[integerStrings.length];
    for (int i = 0; i < integerStrings.length; i++) {
    numbers[i] = Integer.parseInt(integerStrings[i]);
    }
    int integerSum = sum(numbers);
    System.out.println(integerSum);
    input.close();
    }
    }
    Multi Sum