Forum: C#
Mar 11th, 2006, 12:50 PM
|
|
Replies: 6
Views: 314
Well, my program runs sucessfully using a...
Well, my program runs sucessfully using a workaround with the Clone method, so for the time being, I need to leave it at that. There's still major other portions of it that need to get done, so I...
|
Forum: C#
Mar 9th, 2006, 5:05 PM
|
|
Replies: 6
Views: 314
Quick sort is is a different class completly. ...
Quick sort is is a different class completly. The var "data" is encapsulated in that class as a static var that all the other quick sort methods modify when doing the sort. I don't see why the var...
|
Forum: C#
Mar 8th, 2006, 6:52 PM
|
|
Replies: 6
Views: 314
Parameter Mutation
I have a static method (quicksort) that looks to me like it should return a new set of data thats sorted, but should not change the org. data set.
//dataCopy is a...
|
Forum: Java
Jan 8th, 2006, 7:56 PM
|
|
Replies: 4
Views: 188
If you got it out of a book, then it's prob...
If you got it out of a book, then it's prob designed for a 1D array, hence why it dosen't work. It looks like that sorting algorithm is BubbleSort, which isn't the best sorting algorithm to begin...
|
Forum: Java
Jan 8th, 2006, 12:05 AM
|
|
Replies: 4
Views: 188
|
Forum: C++
Jan 6th, 2006, 11:56 PM
|
|
Replies: 11
Views: 464
Do you know what an array is? I'd say maybe put...
Do you know what an array is? I'd say maybe put each "node" in the DNA sequence into an array (2 arays total, one for each sequence), and then have something that loops through the 2 arrays and does...
|
Forum: Java
Jan 6th, 2006, 11:50 PM
|
|
Replies: 9
Views: 316
|
Forum: Java
Jan 6th, 2006, 10:13 PM
|
|
Replies: 9
Views: 316
The solution proposed by para does work. One...
The solution proposed by para does work. One small modification tho, my constructors had an error too
public SwipeInfo() {
head = null;
tail = null;
}
public SwipeInfo(SwipeInfoNode m)...
|
Forum: Java
Jan 6th, 2006, 10:09 PM
|
|
Replies: 9
Views: 316
Exactly it. In lists where order of the nodes...
Exactly it. In lists where order of the nodes matters, such as a queue, it allows you to insert in constant time, as opposed to looping through the list every time when you need to add at the end,...
|
Forum: Java
Jan 6th, 2006, 3:30 PM
|
|
Replies: 9
Views: 316
Linked list insertion at the tail
This is so simple, yet I can't understand why it won't work.
I'm trying to implement a linked list where insertions occur at the tail.
I have the constructors
public SInfo() {
head =...
|
Forum: Java
Jan 5th, 2006, 12:53 PM
|
|
Replies: 15
Views: 356
|
Forum: Coder's Corner Lounge
Jan 4th, 2006, 11:58 PM
|
|
Replies: 10
Views: 259
|
Forum: Coder's Corner Lounge
Jan 4th, 2006, 10:25 PM
|
|
Replies: 10
Views: 259
|
Forum: Community Introductions
Jan 4th, 2006, 10:07 PM
|
|
Replies: 13
Views: 364
System.out.println("Greetings, fellow coders");
Greetings everyone,
I thought I'd just introduce myself around here since I've been asking a ton of questions lately.
I'm currently a soph CompSci major at a major research university in the...
|
Forum: Visual Basic
Jan 4th, 2006, 7:46 PM
|
|
Replies: 43
Views: 963
|
Forum: Java
Jan 4th, 2006, 7:41 PM
|
|
Replies: 24
Views: 592
|
Forum: Java
Jan 3rd, 2006, 7:07 PM
|
|
Replies: 6
Views: 241
|
Forum: Java
Jan 3rd, 2006, 7:06 PM
|
|
Replies: 6
Views: 241
|
Forum: Java
Jan 3rd, 2006, 4:46 PM
|
|
Replies: 0
Views: 106
Disposing windows
In my application, where the GUI is written in SWT, it is currently possible to close the main application window from the Windows task bar, yet the dialog windows the main window has spawned remain...
|
Forum: Java
Jan 3rd, 2006, 4:36 PM
|
|
Replies: 6
Views: 241
Some do, some don't. Most users don't know how...
Some do, some don't. Most users don't know how to launch a Java application on their system, and I think this is the reason. JAR files, which are essentially executable java zip files, on my system...
|
Forum: Java
Jan 1st, 2006, 12:17 AM
|
|
Replies: 1
Views: 197
Getting size of user's screen
Does anyone know how to get the size of a user's screen?
I'm implementing a SWT application, and I'd like to know the size so that I can calculate the mid-point of the screen, and use that info so...
|
Forum: C
Dec 30th, 2005, 10:05 PM
|
|
Replies: 4
Views: 297
|
Forum: C
Dec 30th, 2005, 6:50 PM
|
|
Replies: 4
Views: 297
Making an exe file
If you're familiar with the Eclipse IDE for Java on Windows, there is a file called "eclipse.exe" that does nothing but display a splash screen and start the Java Virtual Machine to execute the...
|
Forum: Java
Dec 28th, 2005, 4:40 PM
|
|
Replies: 3
Views: 171
|
Forum: Java
Dec 27th, 2005, 5:11 PM
|
|
Replies: 3
Views: 171
How to disable Close button in SWT
Occasionally my SWT application must launch a dialog to get more information from the user. If the user clicks the "X" in the upper right corner, the program crashes because it is expecting that...
|
Forum: Java
Dec 27th, 2005, 1:15 AM
|
|
Replies: 2
Views: 183
|
Forum: Java
Dec 27th, 2005, 1:13 AM
|
|
Replies: 2
Views: 183
Is there anything wrong with this code?
I have the following code
private String okWidgetSelected(SelectionEvent evt) {
System.out.println("ok.widgetSelected, event=" + evt);
if (testRegGame() == false) {
String a[] = new...
|
Forum: Java
Dec 26th, 2005, 11:33 PM
|
|
Replies: 4
Views: 227
OK, I realize now that the date variable isn't...
OK, I realize now that the date variable isn't initalized when I try to set it's value...the date variable is only init in the open() method. date = new Text(dialogShell, SWT.NONE);
I guess the real...
|
Forum: Java
Dec 26th, 2005, 11:27 PM
|
|
Replies: 4
Views: 227
That could be, as I'm trying to set the date...
That could be, as I'm trying to set the date before opening the window on the screen, so it is possible that the date variable isn't initialized.
Let me post my code, and see if it helps. I am...
|
Forum: Java
Dec 26th, 2005, 8:40 PM
|
|
Replies: 4
Views: 227
using Text fields in SWT
In my GUI (developed using SWT), I have a Text field called date.
It appears in the window with this code
date = new Text(dialogShell, SWT.NONE);
date.setBounds(42, 49, 119,...
|
Forum: Java
Dec 26th, 2005, 8:30 PM
|
|
Replies: 4
Views: 158
|
Forum: Java
Dec 26th, 2005, 5:44 PM
|
|
Replies: 4
Views: 158
|
Forum: Java
Dec 26th, 2005, 3:46 PM
|
|
Replies: 4
Views: 158
Exception troubles dealing with GUIs
I've written an application that runs fine from a console, so I am now building a GUI on top of it.
When the user clicks on the "Run" button I provide, the GUI takes 3 strings (paths and file...
|
Forum: Java
Dec 3rd, 2005, 11:17 PM
|
|
Replies: 1
Views: 131
|
Forum: Java
Dec 3rd, 2005, 11:05 PM
|
|
Replies: 1
Views: 131
Trouble writing to file
I need to get data out of my program and into a CSV file. For some reason, the output code that follows dosen't seem to work -- no file is created with the data being outputted. What am I missing? ...
|
Forum: Java
Nov 25th, 2005, 12:12 PM
|
|
Replies: 2
Views: 148
|
Forum: Java
Nov 24th, 2005, 9:10 PM
|
|
Replies: 2
Views: 148
Stuck on using a Global array
I'm working on a program that deals with membership info and must use a global object array to store the data. The problem I get is a NullPointerException when I try to add data to the array for the...
|