Click here to Skip to main content
15,433,964 members
Home / Discussions / Java
   

Java

 
GeneralRe: JAVA Pin
jschell17-Feb-22 11:34
Memberjschell17-Feb-22 11:34 
QuestionHow TO run the jar file in teradata ? Pin
Tauqeer Ahmad 202226-Jan-22 22:23
MemberTauqeer Ahmad 202226-Jan-22 22:23 
AnswerRe: How TO run the jar file in teradata ? Pin
OriginalGriff26-Jan-22 23:17
mveOriginalGriff26-Jan-22 23:17 
GeneralRe: How TO run the jar file in teradata ? Pin
Slacker00727-Jan-22 2:21
professionalSlacker00727-Jan-22 2:21 
GeneralRe: How TO run the jar file in teradata ? Pin
Tauqeer Ahmad 202227-Jan-22 3:59
MemberTauqeer Ahmad 202227-Jan-22 3:59 
AnswerRe: How TO run the jar file in teradata ? Pin
jschell30-Jan-22 7:18
Memberjschell30-Jan-22 7:18 
GeneralRe: How TO run the jar file in teradata ? Pin
Tauqeer Ahmad 202230-Jan-22 23:39
MemberTauqeer Ahmad 202230-Jan-22 23:39 
QuestionLooping Array and Satisfying multiple conditions-Support Pin
Member 1551308825-Jan-22 22:01
MemberMember 1551308825-Jan-22 22:01 
If I pass the url=http/market/state/update,I need the output as MARKET_STATE_UPDATE but now I am getting MARKET _UPDATE.
please share your thoughts to help me to solve the issue


String[] tokens = requestUrl.getPath().split("/", -1);
for (String tokens1 : tokens) {
switch (tokens1) 
case "market": 
if (requestType.equals("put")) { //satisfying this condition
if (tokens.equals("state")) { // when it comes to this line its not reading the state value
return RecordDto.EventTypeEnum.MARKET_STATE_UPDATE;
} else if (tokens.equals("chain")) {
return RecordDto.EventTypeEnum.MARKET_CHAIN_UPDATE;
} else {
return RecordDto.EventTypeEnum.MARKET_UPDATE; // In the end i am getting this result
}
} else if (requestType.equals("delete")) {
if (tokens.equals("chain")) {
return RecordDto.EventTypeEnum.MARKET_CHAIN_DELETE;
}
break;
Case "value":
if (requestType.equals("put")) {
if (tokens.equals("level")) {
return RecordDto.EventTypeEnum.Value_LEVEL_UPDATE;
} else if (tokens.equals("period")) {
return RecordDto.EventTypeEnum.Value_PERIOD_UPDATE;
} else {
return RecordDto.EventTypeEnum.VALUE_UPDATE;
}
} else if (requestType.equals("delete")) {
if (tokens.equals("period")) {
return RecordDto.EventTypeEnum.VALUE_PERIOD_DELETE;
}
}
break;

AnswerRe: Looping Array and Satisfying multiple conditions-Support Pin
Afzaal Ahmad Zeeshan5-Feb-22 11:40
mveAfzaal Ahmad Zeeshan5-Feb-22 11:40 
QuestionPdf em java (PDF in Java) Pin
Daniel Carvalho 202221-Jan-22 1:54
MemberDaniel Carvalho 202221-Jan-22 1:54 
AnswerRe: Pdf em java (PDF in Java) Pin
OriginalGriff21-Jan-22 2:00
mveOriginalGriff21-Jan-22 2:00 
GeneralRe: Pdf em java (PDF in Java) Pin
Daniel Carvalho 202224-Jan-22 5:53
MemberDaniel Carvalho 202224-Jan-22 5:53 
QuestionRe: Pdf em java (PDF in Java) Pin
David Crow24-Jan-22 6:06
MemberDavid Crow24-Jan-22 6:06 
AnswerRe: Pdf em java (PDF in Java) Pin
Daniel Carvalho 202225-Jan-22 4:19
MemberDaniel Carvalho 202225-Jan-22 4:19 
AnswerRe: Pdf em java (PDF in Java) Pin
Richard Deeming25-Jan-22 5:10
mveRichard Deeming25-Jan-22 5:10 
GeneralRe: Pdf em java (PDF in Java) Pin
englebart12-Feb-22 14:40
professionalenglebart12-Feb-22 14:40 
QuestionGetting data from a web site using Jsoup Pin
David Crow20-Jan-22 4:59
MemberDavid Crow20-Jan-22 4:59 
AnswerRe: Getting data from a web site using Jsoup Pin
englebart12-Feb-22 14:44
professionalenglebart12-Feb-22 14:44 
Questionjava program Pin
Ricca Marie Fantilanan11-Jan-22 2:21
MemberRicca Marie Fantilanan11-Jan-22 2:21 
AnswerRe: java program Pin
Richard MacCutchan11-Jan-22 2:40
mveRichard MacCutchan11-Jan-22 2:40 
AnswerRe: java program Pin
Member 1550241316-Jan-22 23:01
MemberMember 1550241316-Jan-22 23:01 
GeneralRe: java program Pin
Pete O'Hanlon16-Jan-22 23:18
mvaPete O'Hanlon16-Jan-22 23:18 
GeneralRe: java program Pin
Richard MacCutchan17-Jan-22 0:39
mveRichard MacCutchan17-Jan-22 0:39 
AnswerRe: java program Pin
Prashanth Rao 202118-Jan-22 23:18
MemberPrashanth Rao 202118-Jan-22 23:18 
Questionhow do i properly connect my external style sheet link to my jsp page. Pin
jonathanIckovich25-Dec-21 19:42
MemberjonathanIckovich25-Dec-21 19:42 

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.