package p1;
public class Test {
public static void main(String[] args) {
int[] intArr = {15,30,45,60,75};
intArr[2] = intArr[4];
intArr[4] = 90;
/* this is for testing code
* for (int i = 0; i < intArr.length; i++) { System.out.printf("\n intArr[%d]="
* + intArr[i], i); }
*/
}
}
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Saftschnitzel
Highly Voted 3 years, 9 months agoDarGrin
Most Recent 3 months, 1 week agoSreeni_A
5 months agoGauriKatara
9 months, 2 weeks agoKolodets
8 months, 3 weeks agobaledevit
1 year, 3 months agoiSnover
1 year, 3 months agoSSJ5
2 years, 9 months agonatiqbashir
2 years, 11 months ago