Showing posts with label homework. Show all posts
Showing posts with label homework. Show all posts

Wednesday, May 30, 2012

Wednesday, May 16, 2012

An intuitive understanding of heapsort?


At school we are currently learning sorting algorithms in Java and I got for my homework the Heap Sort. I did my reading, I tried to find out as much as I could, but it seems I just can't grasp the concept.

Tuesday, February 28, 2012

Array lists and string splitting(Java) [closed]


I am trying to read a text file, and read its contends. Easy enough, right? But the files contents read: Part1:Part2

Socket communication between server and client using threads [closed]


I am busy with a project where the client Gui sends user and password details to a server where the details needs to be verified Sever side against the data in the database on the server. We are required to use Threads(from what I understand is that the Server needs to be able to handle multiple requests).

Friday, February 24, 2012

Extending an abstract class [closed]


The following code for RectangleNode extends an abstract class called GraphElement, this is needed for my program to draw rectangles where necessary. My question is regarding the abstract method in GraphElement.

Multithreading in Java Help Needed


Before I go any further, this IS apart of my homework.The part that I am having trouble with however, is not the main point of the assignment.

data validation


I am writing a loan calculate with data validation. My maximum loan amount is 1,000,000 and I am using the method below to validate. When I enter 1,000,000 into the program it comes back with my error method. I thought (d >= max) would allow me to go up to and including my max. Can anyone see a problem with this method or is it possible I should be looking elsewhere in my code for a problem.

Tuesday, February 21, 2012

Clarify what is asked for in java Exceptions assignment


It does not appear evident to me what is asked in a java assignment I have received. Does anyone understand what is needed:

Monday, February 20, 2012

Creating 9 subarrays from a 9x9 2d array java


Hello I need help creating 9 sub arrays of 3x3 dimensions from a 9x9 array. I've seen that stackOverflow had a similar question already asked but unfortunately it was in c++. Can anyone point me in the right direction of how to create a a sub array.

Monday, January 30, 2012

how get Image icon in JTable


i have created JTable. i get the value from DB to JTable . i am having problem while click on row it show the image icon path. cannot show the image. how i can set the image.