Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Whats wrong?
|
Posted: Apr 30, 2004 12:45 PM
|
|
Here's an example. You can see what the original looked like (sort of, without the > prefixes on each line), but replying and then using the "Quote Original" button -- that will paste the unformated text into your reply.
/**
* LovelyFormattedJavaCodeSample -- does nearly nothing, but it sure is purty!
*/
class LovelyFormattedJavaCodeSample
{
private String name;
public LovelyFormattedJavaCodeSample( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
// Just to how how a "for" and quoted strings look:
public String sayHello( int howManyTimes )
{
for( int i = 0; i < howManyTimes; i++ )
System.out.printnl( "Hello from " + name + "!" );
}
// ...
}
|
|