N
N
Nikolaanastasiia2020-08-02 04:08:33
Java
Nikolaanastasiia, 2020-08-02 04:08:33

How to substitute another value by index into an array?

5f26119a5101e843583629.png

I can't solve the problem, please help me write the code

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri, 2020-08-02
@Nikolaanastasiia

int[] source = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        int[] dest = new int[source.length];
        System.arraycopy(source, 1, dest, 0, source.length - 1);
        System.out.println(Arrays.toString(dest));

N
Neron, 2015-02-18
Lordov @Nekto_Habr

Put an SVG on each button with zero transparency, and set it to 100% transparency on hover?
(not a coder, but a sympathizer)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question