The Asian Place - Desi Forum - Asian Forum  

Go Back   The Asian Place - Desi Forum - Asian Forum > Education - University - College - School > University
JOIN NOW! Mark Forums Read

Today we are discussing Official Java Thread in the University Forum.
Join in the discussion and express your views on Official Java Thread

"*bookmarks link* You see thats the thing...Even though its simpler, I didn't fully understand the logic behind it. Indeed, its a clever way to write the method...simple-ish on the outside but complex-ish on the inside. ..."
Reply
 
LinkBack Thread Tools
Old 14-11-2008, 21:01   #31 (permalink)
Zero
Respected Member
 
Zero's Avatar
Gentleman's Club
 
1 Highscore
Location: .
Gender: Male Male
Posts: 14,536
Rep Power: 703
Rep Level: Zero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond repute
Default

*bookmarks link*

You see thats the thing...Even though its simpler, I didn't fully understand the logic behind it.

Indeed, its a clever way to write the method...simple-ish on the outside but complex-ish on the inside. Thats Java for you.

I just desk checked it now as well...and it seems like its created perfectly.

If we wanted to convert 1111 ro decimal (which is 15):

There would be four loops, each with i= {0,1,2,3} and the loop terminates when its less than string length (in this case 4). I think the result = result * 2 is some sort of binary shift...not too sure, but it works lol.

Cleverly done I must say.

Signature

Zero is offline
 
Reply With Quote
Old 18-10-2009, 21:37   #32 (permalink)
StyLeZ
Forum Addict!
 
StyLeZ's Avatar
 
Location: in the streetz
Gender: Male Male
Country:
Posts: 1,751
My Mood:
Rep Power: 107
Rep Level: StyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond repute
Default

Interesring stuff...ver interesting....
not looking forward to this in the upcoming years but it has to be done.

Seems compicated though. Im so glad u guys are here to help LOL
StyLeZ is offline
 
Reply With Quote
Old 18-10-2009, 21:42   #33 (permalink)
Zero
Respected Member
 
Zero's Avatar
Gentleman's Club
 
1 Highscore
Location: .
Gender: Male Male
Posts: 14,536
Rep Power: 703
Rep Level: Zero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond reputeZero has a reputation beyond repute
Default

Started Unix already. C is starting on Tuesday. Oh Joy lol.

Signature

Zero is offline
 
Reply With Quote
Sponsored Links
Old 18-10-2009, 21:59   #34 (permalink)
StyLeZ
Forum Addict!
 
StyLeZ's Avatar
 
Location: in the streetz
Gender: Male Male
Country:
Posts: 1,751
My Mood:
Rep Power: 107
Rep Level: StyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond reputeStyLeZ has a reputation beyond repute
Default

im still only learning the basics of algorithms but i know the stuff we are learning is gonna get covered in java scriprting which is part of the module.
StyLeZ is offline
 
Reply With Quote
Reply

Bookmarks

Tags
java, programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Official GTA: IV Thread DJ B4VVY Technology, Hardware, Software and Games 94 07-11-2008 17:34
Euro 08 - Official Thread Cheeky_Princess Local, National and International Sports 84 28-06-2008 11:07
Official Music Thread mindstate Music and Radio 26 16-05-2008 09:17
official joke on the member above u thread mindstate Arcade Chat + Fun & Games Talk 23 10-11-2007 22:45


All times are GMT +1. The time now is 03:59.

Contact Us - The Asian Place - Sitemap - Privacy Statement - Top

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
© The Asian Place 2004-2008 All Rights Reserved