Newbie "for/Looping" help please

either i'm incredibly dull... or this is really hard.... i cant seem to figure out the for statement at all...

i did a for statement for one of my labs.. which i understood and then i was told to do this other one cause not so much people got the for statement... so i was just wondering if someone could help me out here... maybe a lil push.. or full detail explain!! thanks so much in

oh guess this might help

" http://zernike.uwinnipeg.ca/~s_liao/Courses/1903/Lab08.pdf " the lab that i have to do.. if your thinking "why should we get his work done for him that lazy guy" it's not really to do my work.. i really wanna learn how to do this.. and the prof wont tell us.. plus i can't understand him at all

Message was edited by:

Chopkilla

[784 byte] By [Chopkillaa] at [2007-10-3 9:22:08]
# 1
Do you have a specific question?
paulcwa at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 2
i can't figure out how i would display it like that.... i don't know how the for statement works at all...
Chopkillaa at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 3
> i can't figure out how i would display it like> that.... i don't know how the for statement works at> all... http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html
zadoka at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 4
ya that's my problem.. i can't read that fine.. but for some reason i can not understand it at all :S
Chopkillaa at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 5
> ya that's my problem.. i can't read that fine.. but> for some reason i can not understand it at all :SPlease be more specific. What don't you understand?
zadoka at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 6

If you don't understand it at all, not even a little tiny bit, then drop the class and give up. You might want to quit college in general, or at least take an ESL class (English as a Second Language) first. It's pretty simple and geared towards beginners. Or maybe an introduction to using computers, what a computer language is, etc.

If, however, you actually understand it at least a little (which is more probable) then ask about the parts you don't get.

paulcwa at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 7

k to make the lines go diagnol.. i don't understand that.. i know this much so far

public class num {

public static void main(String[] args){

for (int i = 1; i <= 9; i++)

}

}

that's basically all i know.... i just started using for statements this week.. it's already hard to explain myself..

Chopkillaa at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 8
First that will not compile because you do not have an opening brace for the for loop.Second, what are you trying to do inside the loop? Print something? If you can't explain it to yourself, think about how hard it is for us to understand you.
zadoka at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 9

Im just guessing, but I think he needs to print this:

*

*

*

*

*

*

*

*

*

*

In your for loop, you need to print a certain amount of spaces, followed a an asterisk. Count the amount of spaces before each asterisk to see if you can figure it out.

CaptainMorgan08a at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...
# 10
Ah, you're way ahead of me.Message was edited by: paulcw
paulcwa at 2007-7-15 4:35:44 > top of Java-index,Java Essentials,New To Java...