LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] OT: Java error \92 (F12,BlueJ,UTF_8)

[ILUG] OT: Java error \92 (F12,BlueJ,UTF_8)

Frank Murphy (Frankly3D) frankly3d at gmail.com
Sat Nov 7 14:37:25 GMT 2009


>
> Frank Murphy (Frankly3D) wrote:
>> Google no help, with my brain anyhow.
>> http://tinyurl.com/yez6rnr
>>
>> Numbers 1 to 10, original squared and cubed, displayed like a table.
>>
>> This cause an error, as it stands:
>> illegal character:\92
>>
>> It's the "\"
>>
>> public class table
>> {
>> public static void main(String [] args)
>> {
>> int Number = 0;
>>
>> int Squared = 0;
>> Squared = (Number*Number);
>>
>> int Cubed = 0;
>> Cubed = (Squared*Number);
>>
>> for (Number = 1; Number <= 10; Number = Number+1)
>> System.out.print\n("Number Squared Cubed"); // this line was the hint
>> we were given
>> }

On 07/11/09 14:34, stephen mulcahy wrote:
 >
 > System.out.print\n("Number Squared Cubed"); // this line was the hint we
 > were given
 >
 > maybe changed print\n to println ?
 >
 > -stephen
 >

No, tried that earlier.
It just prints them as a string.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell