0

public static void main(String[] args) { // TODO code application logic here

    int a[] = { 1, 3, 4 };
int b[] = { 5, 6, 7, 8, 9 };
int[]c = new int[a.length+b.length];
int count = 0;
    System.out.println(result(c[a.length+b.length]));
}
public static int result () {
    // TODO code application logic here

     for (int i = 0; i < c.length; i++) {

    System.out.print(c[i] + " ");
    int count = 0;

    return result ;
     }
}
4
  • 1
    Does this answer your question? Combine two integer arrays into one array in java Commented May 10, 2020 at 17:46
  • thanks , but the result give first 3 then 1 2 3 4 5 6 how can remove number 3 Commented May 10, 2020 at 20:17
  • 3 1 2 3 4 5 6 BUILD SUCCESSFUL (total time: 0 seconds) Commented May 10, 2020 at 20:18
  • it solved , thanks alot Commented May 10, 2020 at 20:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.