trying to print an image using recusion

/*

* prog1.java

*

* Created on December 12, 2006, 1:21 AM

*

* To change this template, choose Tools | Template Manager

* and open the template in the editor.

*/

/**

*

* @author Compaq_Administrator

*/

publicclass prog1{

/** Creates a new instance of prog1 */

public prog1(){

}

/**

* @param args the command line arguments

*/

publicstaticvoid main(String[] args){

int n;

for (int count = 1; count <= 6; count++){

n = count;

if (n = 1)

System.out.println("*");

if (n = 2)

System.out.println("**");

if (n = 3)

System.out.println("***");

if (n = 4)

System.out.println("****");

if (n = 5)

System.out.println("*****");

}

}

it says found in required boolean is there anyways to make this print out

*

**

***

****

*****

or am i far from what im looking to do?

Thanks,

Tom

[1940 byte] By [tk3445a] at [2007-11-26 12:19:28]
# 1
> trying to print an image using recusion I'd answer, but I can't due to a conflict of interest.~
yawmarka at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...
# 2
You are using the assignment operator, =, instead of the equality operator == in all of you if statements. Change those, and it should work.~TimBut it isn't recursion, BTW.
SomeoneElsea at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...
# 3
> But it isn't recursion, BTW.*ahem* Recusion.~
yawmarka at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...
# 4
thanks for the help, i should know that by now i always do that because im use to programming from highschool using the dreaded VB
tk3445a at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...
# 5
I need help to fine out the use of recursion of a problem in which recursion provides an efficient solution, and another problem in which it would be inappropriate to use recusion.
makea at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...
# 6

> I need help to fine out the use of recursion of a

> problem in which recursion provides an efficient

> solution, and another problem in which it would be

> inappropriate to use recusion.

I need to find out why you hijacked this thread with your post rather than starting a new thread for your question. I also have a problem in understanding what effort you have done so far other than blithely post the gist of your homework assignment into this hijacked thread.

Eagerly awaiting your urgent reply,

Cotton

cotton.ma at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...
# 7
For shame, cotton. Haven't you figured out that this is one nitwitgoing through and reviving old threads to troll? He's hit a bunchin the last <short time frame>.
es5f2000a at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...
# 8

> For shame, cotton. Haven't you figured out that this

> is one nitwit

> going through and reviving old threads to troll?

> He's hit a bunch

> n the last <short time frame>.

If only this were true. But experience tells me it isn't. :(

[url=http://www.google.com/search?hl=en&q=worlds+shitest+thread]http://www.google.com/search?hl=en&q=worlds+shitest+thread[/url]

cotton.ma at 2007-7-7 15:07:58 > top of Java-index,Archived Forums,Socket Programming...