Hii all,
I have an assignment in my java course and i just did the required 1 , and the else is very confusing for me , I'll be very appreciate if any one could help me for 2nd required and then ill try again in the rest .
<URL SNIPPED>

Recommended Answers

All 5 Replies

Never mind. Wrong post.

I don't know what "else" you are talking about. Please post the content instead of link to a file... Also, do not expect that people here will do it for you. You need to show your afford and your code first.

i never said that i need peoble to do my assignment , I just need the idea , what i know when iam using for Loop i have to make it like this for(int i = 0 ; i < 10 ; i++)
and if like this : int x = 0 , if(x == 0 ) so do plahh plahh ....
so how to make a compentaion with for and if in one sentense and make the 2nd one in my assignment in the same time , i just need the idea , and iam really sorry for disturb

for(int i = 0 ; i < 10 ; i++){
  if(x == 0 ){
    System.out.println("Zero");
  }
  else if(x == 1 ){
    Syetem.out.println("One");
  }
}

thanks all and special thanks to peter budo

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.