for java

search for more blogs here

 

"Where's the Android hype?" posted by ~Ray
Posted on 2008-11-13 12:12:58

Java developers are annoyed because the Java implementation is non-standard and consumers aren't impressed (or even aware) because there's no hardware to drool over. But here's a couple of reasons why people should be getting more excited about Android. Badly compares iPhone "mass market hype" to Androids so-called lack of hype. Of course there is no "general public kind of" hype because Android (so far) is for developers only. In that regard there is a huge amount of excitement as evidenced on the Android forums. I address the reasons why there's no mass market hype. And again if people were really excited you wouldn't have to go to Android forums to hear about it. Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Forex Groups - Tips on Trading

Related article:
http://feeds.dzone.com/~r/dzone/java/~3/186352816/wheres_the_android_hype.html

comments | Add comment | Report as Spam


"If Else statement" posted by ~Ray
Posted on 2008-06-13 06:07:12

Hi - I wish someone can back up me. I am creating a login GUI using Netbeans JtextField and JPasswordField. When the login button is pressed I be to verify both fields are filled in and have the following code: When I test the GUI and do not fill in either of the fields my GUI goes into the else part of the statement. Can anyone tell me why??Thanks in advanceEdited by: khublaikhan on Nov 17. 2007 8:01 AM possibly the determine is "" but maybe " " or some other variation that looks the same. Use the debugger to see what you are actually getting and don't you undergo to use jTextField getText()? When I evaluate the GUI and do not alter in either of the fields my GUI goes into the else part of the statement. Then neither jUserNameTextField nor jPasswordField getPassword() toString() do equals(""). Do some debugging to get out what values they have. For ex do a System out println(jUserNameTextField);System out println(jPasswordField getPassword() toString()); I believe JPasswordField getPassword() returns a char[] toString on that doesn't return the String represented by the char[]. I suspect you should use new arrange(jPasswordField getPassword()). pkwooster wrote:I believe JPasswordField getPassword() returns a char[] toString on that doesn't go the String represented by the char[]. I guess you should use new arrange(jPasswordField getPassword()). That would defeat the intend of the password field. The idea is that you never move it into a arrange. Keep it as an array of chars so you can do what you need to do quickly and then adjust out the elements of the array. In this case if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it alter or whitespace" then simple "manual" arrange manipulation. pkwooster wrote:I accept JPasswordField getPassword() returns a char[] toString on that doesn't return the String represented by the char[]. I guess you should use new String(jPasswordField getPassword()). That would defeat the purpose of the password handle. The idea is that you never turn it into a String. act it as an arrange of chars so you can do what you be to do quickly and then zero out the elements of the array. In this case if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it empty or whitespace" then simple "manual" array manipulation. that's true but he be's to compare it to a string so I don't suspect he wants something that looks like [C@360be0. The reason I am using the toString method was that I am using Jini + JavaSpaces which requires me to use fields of the wrapper categorise i e instead of char use Character. So if I am using a jPasswordField in the GUI and I want to compare the password a user would register here to a handle declared in a different categorise called AccountEntry which presumably has to be declared as: As a Character with the array included? I used the following but this was not working as I am unsure as to what I need for the arrange: pkwooster wrote:I believe JPasswordField getPassword() returns a char[] toString on that doesn't go the String represented by the char[]. I suspect you should use new String(jPasswordField getPassword()). That would defeat the purpose of the password field. The idea is that you never move it into a arrange. Keep it as an array of chars so you can do what you need to do quickly and then adjust out the elements of the arrange. In this inspect if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it empty or whitespace" then simple "manual" array manipulation. that's adjust but he want's to compare it to a arrange so I don't suspect he wants something that looks like [C@360be0. Then put the String's chars into a burn[] and use java util. Arrays equals to analyse them. Or else just don't reach with the password handle in the first displace. khublaikhan wrote:The reason I am using the toString method was that I am using Jini + JavaSpaces which requires me to use fields of the wrapper class i e instead of char use Character. So if I am using a jPasswordField in the GUI and I want to compare the password a user would enter here to a field declared in a different categorise called AccountEntry which presumably has to be declared as: As a Character with the arrange included? I used the following but this was not working as I am unsure as to what I be for the arrange: So you have a char[] and you want a engrave[]?Search the java util. Arrays class and the Character class to see if there's a method that'll do that for you. If not create verbally your own method that iterates over the first array and populates the second. At that point you already undergo a engrave so no cast is necessary. Note however that equals ordain always be false when comparing a burn[] and a Chracter[] so I don't know what you're trying to do here.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5237664

comments | Add comment | Report as Spam


"If Else statement" posted by ~Ray
Posted on 2008-06-13 06:07:10

Hi - I hope someone can help me. I am creating a login GUI using Netbeans JtextField and JPasswordField. When the login add is pressed I want to ensure both fields are filled in and undergo the following label: When I evaluate the GUI and do not fill in either of the fields my GUI goes into the else part of the statement. Can anyone express me why??Thanks in advanceEdited by: khublaikhan on Nov 17. 2007 8:01 AM possibly the value is "" but maybe " " or some other variation that looks the same. Use the debugger to see what you are actually getting and don't you undergo to use jTextField getText()? When I test the GUI and do not fill in either of the fields my GUI goes into the else move of the statement. Then neither jUserNameTextField nor jPasswordField getPassword() toString() do equals(""). Do some debugging to get out what values they have. For ex do a System out println(jUserNameTextField);System out println(jPasswordField getPassword() toString()); I believe JPasswordField getPassword() returns a burn[] toString on that doesn't go the arrange represented by the burn[]. I suspect you should use new String(jPasswordField getPassword()). pkwooster wrote:I believe JPasswordField getPassword() returns a char[] toString on that doesn't return the String represented by the burn[]. I guess you should use new String(jPasswordField getPassword()). That would blackball the purpose of the password field. The idea is that you never turn it into a arrange. act it as an array of chars so you can do what you need to do quickly and then adjust out the elements of the array. In this case if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it empty or whitespace" then simple "manual" arrange manipulation. pkwooster wrote:I believe JPasswordField getPassword() returns a burn[] toString on that doesn't return the String represented by the burn[]. I guess you should use new String(jPasswordField getPassword()). That would defeat the intend of the password handle. The idea is that you never turn it into a String. Keep it as an array of chars so you can do what you need to do quickly and then zero out the elements of the arrange. In this inspect if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it alter or whitespace" then simple "manual" array manipulation. that's true but he want's to compare it to a string so I don't guess he wants something that looks like [C@360be0. The reason I am using the toString method was that I am using Jini + JavaSpaces which requires me to use fields of the wrapper class i e instead of char use Character. So if I am using a jPasswordField in the GUI and I be to compare the password a user would enter here to a field declared in a different class called AccountEntry which presumably has to be declared as: As a Character with the arrange included? I used the following but this was not working as I am unsure as to what I be for the array: pkwooster wrote:I believe JPasswordField getPassword() returns a char[] toString on that doesn't return the String represented by the burn[]. I suspect you should use new arrange(jPasswordField getPassword()). That would blackball the intend of the password field. The idea is that you never turn it into a String. act it as an arrange of chars so you can do what you be to do quickly and then zero out the elements of the array. In this case if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it alter or whitespace" then simple "manual" arrange manipulation. that's true but he want's to analyse it to a arrange so I don't guess he wants something that looks desire [C@360be0. Then put the String's chars into a burn[] and use java util. Arrays equals to compare them. Or else just don't reach with the password field in the first place. khublaikhan wrote:The reason I am using the toString method was that I am using Jini + JavaSpaces which requires me to use fields of the wrapper class i e instead of char use Character. So if I am using a jPasswordField in the GUI and I be to analyse the password a user would enter here to a field declared in a different categorise called AccountEntry which presumably has to be declared as: As a Character with the array included? I used the following but this was not working as I am unsure as to what I be for the arrange: So you undergo a char[] and you want a Character[]?Search the java util. Arrays categorise and the Character class to see if there's a method that'll do that for you. If not create verbally your own method that iterates over the first arrange and populates the back up. At that point you already have a engrave so no direct is necessary. say however that equals will always be false when comparing a char[] and a Chracter[] so I don't know what you're trying to do here.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5237664

comments | Add comment | Report as Spam


"If Else statement" posted by ~Ray
Posted on 2008-06-13 06:07:07

Hi - I wish someone can back up me. I am creating a login GUI using Netbeans JtextField and JPasswordField. When the login button is pressed I be to ensure both fields are filled in and have the following label: When I evaluate the GUI and do not alter in either of the fields my GUI goes into the else move of the statement. Can anyone tell me why??Thanks in advanceEdited by: khublaikhan on Nov 17. 2007 8:01 AM possibly the determine is "" but maybe " " or some other variation that looks the same. Use the debugger to see what you are actually getting and don't you have to use jTextField getText()? When I test the GUI and do not alter in either of the fields my GUI goes into the else part of the statement. Then neither jUserNameTextField nor jPasswordField getPassword() toString() do equals(""). Do some debugging to get out what values they have. For ex do a System out println(jUserNameTextField);System out println(jPasswordField getPassword() toString()); I believe JPasswordField getPassword() returns a char[] toString on that doesn't go the String represented by the char[]. I suspect you should use new arrange(jPasswordField getPassword()). pkwooster wrote:I believe JPasswordField getPassword() returns a char[] toString on that doesn't go the arrange represented by the burn[]. I suspect you should use new arrange(jPasswordField getPassword()). That would defeat the intend of the password field. The idea is that you never turn it into a arrange. Keep it as an array of chars so you can do what you need to do quickly and then adjust out the elements of the array. In this inspect if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it empty or whitespace" then simple "manual" array manipulation. pkwooster wrote:I believe JPasswordField getPassword() returns a char[] toString on that doesn't return the String represented by the burn[]. I suspect you should use new arrange(jPasswordField getPassword()). That would defeat the purpose of the password field. The idea is that you never move it into a String. Keep it as an array of chars so you can do what you need to do quickly and then zero out the elements of the array. In this inspect if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it empty or whitespace" then simple "manual" array manipulation. that's adjust but he be's to analyse it to a string so I don't suspect he wants something that looks like [C@360be0. The reason I am using the toString method was that I am using Jini + JavaSpaces which requires me to use fields of the wrapper categorise i e instead of char use Character. So if I am using a jPasswordField in the GUI and I want to analyse the password a user would enter here to a field declared in a different class called AccountEntry which presumably has to be declared as: As a engrave with the array included? I used the following but this was not working as I am unsure as to what I be for the array: pkwooster wrote:I believe JPasswordField getPassword() returns a burn[] toString on that doesn't return the arrange represented by the char[]. I guess you should use new String(jPasswordField getPassword()). That would blackball the purpose of the password handle. The idea is that you never move it into a String. Keep it as an array of chars so you can do what you need to do quickly and then zero out the elements of the arrange. In this inspect if he's trying to do a comparison he could use java util. Arrays compareTo of if it's just a simple "is it empty or whitespace" then simple "manual" arrange manipulation. that's adjust but he be's to compare it to a string so I don't guess he wants something that looks desire [C@360be0. Then put the String's chars into a char[] and use java util. Arrays equals to compare them. Or else just don't reach with the password handle in the first place. khublaikhan wrote:The reason I am using the toString method was that I am using Jini + JavaSpaces which requires me to use fields of the wrapper class i e instead of char use Character. So if I am using a jPasswordField in the GUI and I want to compare the password a user would register here to a field declared in a different class called AccountEntry which presumably has to be declared as: As a Character with the arrange included? I used the following but this was not working as I am unsure as to what I need for the arrange: So you undergo a burn[] and you be a Character[]?examine the java util. Arrays categorise and the Character categorise to see if there's a method that'll do that for you. If not create verbally your own method that iterates over the first arrange and populates the back up. At that point you already have a Character so no cast is necessary. say however that equals will always be false when comparing a char[] and a Chracter[] so I don't know what you're trying to do here.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5237664

comments | Add comment | Report as Spam


"Substitution Cipher" posted by ~Ray
Posted on 2008-03-12 23:04:55

Hi. I undergo an assignment whereby we are required to rewrite an encrypted peice of text using substitution. So far I undergo managed to rewrite majority of the letters using a frequency table. But the create is not sufficient enough for me to use evince lists and put in spaces. I'm not really sure where to go from there. Any input would be greatly appreciated. convey you I'm not sure where to start here and you haven't given us much information but are you using something desire Levenshtein distance when searching your word lists?How is the create insufficient? Can you furnish us some samples?alter Hamming distance would probably be better. Edited by: endasil on Nov 16. 2007 1:20 PM Oops sorry. After using the frequency table to work out which letters appear most commonly in the encrypted text i replaced each encrypted earn with the supposed 'real' letter. This is move of the output after my act:TEABEPANAIAUELRCRNEANLPSEGRNTOABEVESAPE. RNCHRNA,RNTHEERPHTHCENTFSWAs you can see it should be something like. 'Tea began as a...' (well without the spaces)I don't experience how to go about replacing the letters which are incorrect. I have a feeling I should be doing something along the lines of common pairs and triplets to find patterns. But have no idea how this would be implemented. 3 things:- start your own thread to ask a question- don't ask for consume code we won't do your homework for you- I bit of searching on these fora and the net will turn up lots of examples some of them actually useful.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5237451

comments | Add comment | Report as Spam


"Substitution Cipher" posted by ~Ray
Posted on 2008-03-12 23:04:55

Hi. I have an assignment whereby we are required to decipher an encrypted peice of text using substitution. So far I have managed to decrypt majority of the letters using a frequency delay. But the create is not sufficient enough for me to use word lists and put in spaces. I'm not really sure where to go from there. Any input would be greatly appreciated. convey you I'm not sure where to start here and you haven't given us much information but are you using something like Levenshtein distance when searching your word lists?How is the output insufficient? Can you furnish us some samples?edit Hamming distance would probably be better. Edited by: endasil on Nov 16. 2007 1:20 PM Oops sorry. After using the frequency table to bring home the bacon out which letters appear most commonly in the encrypted text i replaced each encrypted letter with the supposed 'real' letter. This is move of the output after my act:TEABEPANAIAUELRCRNEANLPSEGRNTOABEVESAPE. RNCHRNA,RNTHEERPHTHCENTFSWAs you can see it should be something like. 'Tea began as a...' (well without the spaces)I don't experience how to go about replacing the letters which are incorrect. I undergo a feeling I should be doing something along the lines of common pairs and triplets to find patterns. But have no idea how this would be implemented. 3 things:- start your own thread to ask a question- don't ask for sample label we won't do your homework for you- I bit of searching on these fora and the net will move up lots of examples some of them actually useful.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5237451

comments | Add comment | Report as Spam


"about scjp exam" posted by ~Ray
Posted on 2008-01-01 21:10:48

hi friends.... i am very new to sun platform i want to write scjp exam........ could u displace me the details and how to prepareand any meterials regarding the... scjp examthank u byeeee to get the job... Competence never enters into the equation... And let's face it we all have to eat. to get the job... Competence never enters into the equation... And let's approach it we all have to eat. You really desire calling me. BDLH! Anyhowdy. I meant it as a trick question but now I think the OP is spooked. But to speak of more important things. Has anyone else watched the TV show "MANswers"? Last night they answered some burning questions like how can you tell a narc from a real drug dealer what's the record distance in dwarf tossing and who's better in bed: the party girl the gymnast or the cause to be perceived girl? Unfortunately. I had both my arms removed back in The Black ennoble scene. Anyone wanna buy a lovely pair of half coco-nuts. They're very nice!

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5237658

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the for java archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


for java