Made In China Talk  

Go Back   Made In China Talk > International Business Talk > Import > Fashion & Accessories
Directory Register FAQ Members List Calendar Mark Forums Read 中文




Another Java question?


Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2009, 02:54 AM
John John is offline
Senior Member
 
Join Date: May 2008
Posts: 2,071
Feedback: (0)
Default Another Java question?

I have to do this on notepad - please remember. And not BlueJ, plain, simple old-fashioned Java.I have to print a series such: 1, -2, 3, -4, 5, -6, etc.c(SOPln=System.out.println)import. etc..........public static etcint i,jfor (j=1; j<=1000; j=j+2){i==i-jSOPln(i)i==i+j+2SOPln(i)}etc.Will that work? Also tell me if there are any Syntax errors in there. Thanks.And i=1 after inthehe
Reply With Quote




  #2  
Old 07-06-2009, 02:54 AM
Amenda Amenda is offline
Senior Member
 
Join Date: Jul 2008
Posts: 1,344
Feedback: (0)
Default Another Java question?

No, your logic is flawed and it will not work as desired.Yes, there is not a single line of workable code in your example.
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


| Business Forum | Toronto Chinese

All times are GMT +9. The time now is 02:26 AM.


All rights reserved. Copyright © 2007 Made In China Talk