Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TraversingIA{
- public static void main(String[] args) {
- int LA[] = {1,2,3,4,5};
- int LB=0;
- int K=LB; //step 1
- int UB=4;
- while(K<=UB){ //step 2
- System.out.print(LA[K]+" "); // step 3 LA[K] will it will show you error because
- //compiler said that this is not a statement only LA[K]
- K++; //step 4
- }
- System.out.print("\nExit"); // step 5
- // Just understant the fact thanks :)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement