Click here to Skip to main content
15,929,512 members
Home / Discussions / Java
   

Java

 
AnswerRe: how to validate date Pin
Cedric Moonen22-Jun-10 20:29
Cedric Moonen22-Jun-10 20:29 
QuestionRemember password in website Pin
neer117-Jun-10 20:00
neer117-Jun-10 20:00 
AnswerRe: Remember password in website Pin
Richard MacCutchan17-Jun-10 22:01
mveRichard MacCutchan17-Jun-10 22:01 
QuestionEncrypt using java and Decrypt with C Pin
Murugan k16-Jun-10 19:43
Murugan k16-Jun-10 19:43 
AnswerRe: Encrypt using java and Decrypt with C Pin
Richard MacCutchan16-Jun-10 21:30
mveRichard MacCutchan16-Jun-10 21:30 
QuestionSubstring issue Pin
CodeScribbler15-Jun-10 3:11
CodeScribbler15-Jun-10 3:11 
AnswerRe: Substring issue Pin
Richard MacCutchan15-Jun-10 21:56
mveRichard MacCutchan15-Jun-10 21:56 
AnswerRe: Substring issue Pin
David Skelly15-Jun-10 22:35
David Skelly15-Jun-10 22:35 
Your use of substring is correct, but the test for the String value is not:

DOB.substring(3,5) == "01"


This is wrong because you are testing to see if DOB.substring(3,5) and "01" are the same object instance. In fact, they are not. They are two different String objects so even if they both have the same value this test will return false. You want to use the equals method to test the String value.

String s1 = new String("01");
String s2 = new String("01");
if (s1 == s2) // returns false
if (s1.equals(s2)) // returns true

GeneralRe: Substring issue Pin
CodeScribbler17-Jun-10 2:43
CodeScribbler17-Jun-10 2:43 
QuestionEmulating a serial communication through RFCOMM Pin
ant-damage14-Jun-10 10:36
ant-damage14-Jun-10 10:36 
QuestionNokia 2323 DateTime Issue??? Pin
Member 211994514-Jun-10 2:56
Member 211994514-Jun-10 2:56 
AnswerRe: Nokia 2323 DateTime Issue??? Pin
Richard MacCutchan14-Jun-10 4:39
mveRichard MacCutchan14-Jun-10 4:39 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Member 211994514-Jun-10 14:22
Member 211994514-Jun-10 14:22 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
David Skelly14-Jun-10 22:48
David Skelly14-Jun-10 22:48 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Member 211994515-Jun-10 1:51
Member 211994515-Jun-10 1:51 
GeneralRe: Nokia 2323 DateTime Issue??? [modified] Pin
Richard MacCutchan15-Jun-10 3:54
mveRichard MacCutchan15-Jun-10 3:54 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
David Skelly15-Jun-10 4:24
David Skelly15-Jun-10 4:24 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Richard MacCutchan15-Jun-10 5:01
mveRichard MacCutchan15-Jun-10 5:01 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
David Skelly15-Jun-10 6:40
David Skelly15-Jun-10 6:40 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Richard MacCutchan15-Jun-10 6:59
mveRichard MacCutchan15-Jun-10 6:59 
GeneralRe: Nokia 2323 DateTime Issue??? Pin
Member 211994515-Jun-10 14:17
Member 211994515-Jun-10 14:17 
QuestionHow can I add Resources with jar file? Pin
002comp13-Jun-10 18:20
002comp13-Jun-10 18:20 
AnswerRe: How can I add Resources with jar file? (Solved) Pin
002comp13-Jun-10 18:50
002comp13-Jun-10 18:50 
QuestionSending of byte array messages to an VB Receiving Emulator application Pin
pohcb_sonic10-Jun-10 18:43
pohcb_sonic10-Jun-10 18:43 
AnswerRe: Sending of byte array messages to an VB Receiving Emulator application Pin
Richard MacCutchan10-Jun-10 23:15
mveRichard MacCutchan10-Jun-10 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.