Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cout<< and <<endl ?

807600Aug 31 2007 — edited Sep 1 2007
Does anyone have any experience using
cout<< and <<endl ?

I've never seen these in any of the texts I'm using.

For example can someone tell me what they indicate in the follwing recursive method?

void cheers(int n) {
if ( n==1 )
cout << "Hurray" << endl; (orSystem.out.println("Hurray");
else {
System.out.println("Hip"); (or cout << "Hip" << endl);
cheers(n-1)
}

Thanks,
Mark
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2007
Added on Aug 31 2007
8 comments
162 views