Tagged Questions
0
votes
1answer
44 views
Infinite loop on empty ResultSet?
I have a problem with some code i've written. Usually it works just fine, but sometimes for unknown reasons it doesn't. From my MySQL database I request the child groups of a certain group. The query ...
0
votes
2answers
30 views
Get notified when app runs into an infinite loop?
We have our product built on Java stack, and its basically a transactional system. I am just curious to know that do we have any mechanism so that a notification can be sent if program goes into an ...
0
votes
1answer
35 views
Server goes into infinite loop while implementing Tiles with Velocity
EDIT:
I am trying to integrate Tiles with Velocity using spring MVC.
My server is going into infinite loop.
The console reading of server is:
I have marked the start of the loop as "-->".
--> at ...
0
votes
2answers
37 views
Merge Sort algorithm Infinite loop
I am trying to create a merge sort algorithm, but when I go to sort the broken down arrays, I enter an infinite loop, the main problem is happening in my merge method below. Thanks in advance for the ...
0
votes
1answer
97 views
Java: Infinite loop in an application using a thread
I have a store which has a number of queues. Each queue has a number of max clients that can wait to be served and I can write the number of queues. My store would have to close after a certain amount ...
0
votes
1answer
47 views
Counting distinct words V2 [duplicate]
I've asked this question before ( Counting distinct words ) and made the code more appropriate. As described in first question I need to count the distinct words from a file.
De-Bug shows that all ...
-1
votes
1answer
78 views
A* infinite loop
I'm trying to implement an A* algorithm for a pathfinding problem.
It works, like 9 out of 10 times, but at some points I get a (possibly) infinite loop, and the program doesn't find the optimal ...
0
votes
2answers
96 views
Beginners Java (Loops) - Vending machine
import java.util.Scanner;
public class cat{
public static void main(String args[]){
System.out.print("Enter a command = ");
double balance = 0;
String a;
//scanner ...
-1
votes
2answers
83 views
Can someone help me figure out why one of my methods is not running at all?
Why when I run my program and enter 5, it allows me to enter my records, but when the main menu runs again and I enter 6, the changePhoneNumber method is not run and it goes back to the main menu. Is ...
0
votes
2answers
107 views
When reading from a Scanner in a loop, it goes into an infinite loop
Two problems here. When I try to traverse this home-grown binary tree using a "recursive iterator" (an iterator that traverses the tree recursively, puts the elements into a queue, and then removes ...
0
votes
1answer
70 views
Fixing an infinite loop?
I am a first year Comp Sci major and in class we have a project where we make the algorithm for the game called "Bagels." We are to make a random 3 digit number, but none of the digits can be the same ...
0
votes
4answers
84 views
Can anyone see where the infinite loop in my program is?
The purpose of this program is to find the smallest number evenly divisible by all integers 1 through 20. I know it could be made more efficient, but I'm not interested in optimizing it right now. ...
2
votes
3answers
81 views
Why is this thread running multiple times in a row?
I just solved the problem myself. I had multiple calls for syncCustomers() due to a dialog closing event problem. I solved it by providing the parent JFrame in the JDialog constructor. Pretty stupid ...
0
votes
1answer
31 views
Cannot insert an element in the concrete position and an infinite loop
I'm trying to include a char inside a bidimensional array, the problem is, that when I write the position for the element, the code seems to ignore it and the position is 0, 0 by default. Here's the ...
1
vote
2answers
119 views
Infinite Loop or Early terminating do while loop
I have been fighting with this program for awhile now. It has started to compile correctly, but when I run it as it is, it says "Your bill is __" infinitely. When I change the initial response value ...