Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class forLoop{
- public static void main(String[] args)
- {
- int[]test = {8,3,5,4,5,6,3,5,4,7};
- String output="";
- for(int k=0; k<test.length; k++)
- {
- output+="number " + k + " :: " +test[k]+"\n";
- }
- System.out.println(output);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement