Click here to Skip to main content
15,867,568 members
Home / Discussions / Java
   

Java

 
GeneralRe: how to protect jar file from decompilation Pin
Renu Meena18-Mar-18 20:35
Renu Meena18-Mar-18 20:35 
Questionproblem in implementing isPalindrome() by using java collections.reverse Pin
ElenaRez12-Mar-18 9:41
ElenaRez12-Mar-18 9:41 
SuggestionRe: problem in implementing isPalindrome() by using java collections.reverse Pin
Richard MacCutchan12-Mar-18 9:55
mveRichard MacCutchan12-Mar-18 9:55 
GeneralRe: problem in implementing isPalindrome() by using java collections.reverse Pin
ElenaRez12-Mar-18 11:33
ElenaRez12-Mar-18 11:33 
GeneralRe: problem in implementing isPalindrome() by using java collections.reverse Pin
Richard MacCutchan12-Mar-18 22:54
mveRichard MacCutchan12-Mar-18 22:54 
GeneralRe: problem in implementing isPalindrome() by using java collections.reverse Pin
ElenaRez13-Mar-18 10:23
ElenaRez13-Mar-18 10:23 
QuestionOutOfMemoryError exception while pushing in the stack Pin
Elenora4-Mar-18 5:02
Elenora4-Mar-18 5:02 
AnswerRe: OutOfMemoryError exception while pushing in the stack Pin
Richard MacCutchan4-Mar-18 6:32
mveRichard MacCutchan4-Mar-18 6:32 
I would guess that the two following if statements are not correct, so you are stuck in the while loop.
Java
if((!stack.empty())&&(s.charAt(i)==')'||s.charAt(i)=='}'||s.charAt(i)==']')){
    if(stack.peek()==s.charAt(i)){

So if you have just encountered an open bracket the first of these statements will be false, because i is still pointing to the open bracket in your string. The loop will just continue round examining the same character.
AnswerRe: OutOfMemoryError exception while pushing in the stack Pin
Luc Pattyn4-Mar-18 8:27
sitebuilderLuc Pattyn4-Mar-18 8:27 
AnswerRe: OutOfMemoryError exception while pushing in the stack Pin
jschell10-Mar-18 10:23
jschell10-Mar-18 10:23 
Questionhow i encryt the file by aes need some help Pin
SHUBHAM KHANDAR4-Mar-18 4:56
SHUBHAM KHANDAR4-Mar-18 4:56 
AnswerRe: how i encryt the file by aes need some help Pin
Richard MacCutchan4-Mar-18 6:22
mveRichard MacCutchan4-Mar-18 6:22 
QuestionJava Breakout via MVC Pattern Pin
Rautap28-Feb-18 11:53
Rautap28-Feb-18 11:53 
QuestionBetweennessCentrality Pin
Member 1369070821-Feb-18 23:35
Member 1369070821-Feb-18 23:35 
RantRe: BetweennessCentrality Pin
Richard Deeming22-Feb-18 0:39
mveRichard Deeming22-Feb-18 0:39 
GeneralRe: BetweennessCentrality Pin
jschell23-Feb-18 13:42
jschell23-Feb-18 13:42 
QuestionWeather Java application Pin
Member 1367572517-Feb-18 3:20
Member 1367572517-Feb-18 3:20 
AnswerRe: Weather Java application Pin
Richard MacCutchan17-Feb-18 4:01
mveRichard MacCutchan17-Feb-18 4:01 
AnswerRe: Weather Java application Pin
jschell17-Feb-18 11:44
jschell17-Feb-18 11:44 
AnswerRe: Weather Java application Pin
Lshadown19-Feb-18 8:30
Lshadown19-Feb-18 8:30 
QuestionFor loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 11:39
IrishCoder9916-Feb-18 11:39 
AnswerRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 12:07
professionalphil.o16-Feb-18 12:07 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 12:52
IrishCoder9916-Feb-18 12:52 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
phil.o16-Feb-18 12:53
professionalphil.o16-Feb-18 12:53 
GeneralRe: For loops, how to jump back to the start of the loop efficiently? Pin
IrishCoder9916-Feb-18 13:10
IrishCoder9916-Feb-18 13:10 

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.