Click here to Skip to main content
15,913,115 members
Home / Discussions / Java
   

Java

 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
002comp23-Jun-10 22:50
002comp23-Jun-10 22:50 
Questionhow to validate date Pin
kirancgi22-Jun-10 8:17
kirancgi22-Jun-10 8:17 
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 
Hey guys

I have another elementary problem that needs solving. In the program, after you enter your date of birth (e.g. 14/08/1977), the program takes the month out, and gives you a vacation period in that month.

I'm using a long if statement, with a string value assigned to each month. The if statement pretty much goes if, else if, else if...and so on. Am I using the substring method incorrectly?

if(DOB.substring(3,5) == "01")
		{
			System.out.println("Holiday Month: " + month1 + "\n" + "Days: " + DOB.substring(3,5));	
		}

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 
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 

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.