I have an array
a[]={0,1,2,3,4}
and out put should be: 3,4,0,1,2.


can any body write the code for this program? if u write appreciate.

Thanks!

Recommended Answers

All 3 Replies

Yeah I can but I'm not going to. I would explain it to you but you're clearly useless.

Yeah I can but I'm not going to. I would explain it to you but you're clearly useless.

agreed

Ansar i want to ask you a question does array length changes under certain conditions

if not: you can convert the array into a String then split the String into a 2 halves for example the first_str = "0 1 2"; and second_str = "3 4";

then by creating a new String e.g final_str = second_str + first_str; then convert that final into an array then sout it.
hope that this helped you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.