Search Results

Showing results 1 to 40 of 114
Search took 0.03 seconds.
Search: Posts Made By: KimJack
Forum: Java Oct 9th, 2009
Replies: 1
Views: 138
Posted By KimJack
For some reason this method prints out an extra integer at the bottom. For example: It is supposed to only print out 4 x4.

20 20 20 20
20 20 20 20
20 20 20 20
20 20 20 20
20

Any idea...
Forum: Java Oct 8th, 2009
Replies: 8
Views: 342
Posted By KimJack
Thanks everyone. Just needed a little psuedocode to gain some understanding.
Forum: Java Oct 8th, 2009
Replies: 8
Views: 342
Posted By KimJack
I have read it many times, if I understand all I would not be asking for assistance. If you cannot provide assitance without being rude, I would rather you not respond at all.
Forum: Java Oct 8th, 2009
Replies: 8
Views: 342
Posted By KimJack
I understand how to get elements from an array. I am working on the display. How to display elements of an array at certain positions. If charA and charB are matches then display the positions of...
Forum: Java Oct 8th, 2009
Replies: 8
Views: 342
Posted By KimJack
Hi all,

I wondering how to get started with this. I am working on a method that will take two ints. These ints represent positions in an arraylist of characters. I am trying to determine if...
Forum: Java Oct 4th, 2009
Replies: 7
Views: 245
Posted By KimJack
hmm, I have never heard of an array of Character. Would you provide an example?
Forum: Java Oct 4th, 2009
Replies: 7
Views: 245
Posted By KimJack
Here is a snippet of code:



Array<Character> letters = new ArrayList<Character>();
char[] characters = new char[row * col];
...

public void createShuffleLetters()
{
Forum: Java Oct 4th, 2009
Replies: 7
Views: 245
Posted By KimJack
Hi All,


Is it possible to convert an arraylist of chars to an array? For example:

ArrayList<Character> array = new ArrayList<Character>();

Can this be converted to an array of chars. I...
Forum: Java Oct 3rd, 2009
Replies: 11
Views: 378
Posted By KimJack
This is great, but how would I go about preventing duplicates when the array is randomized?
Forum: Java Oct 3rd, 2009
Replies: 11
Views: 378
Posted By KimJack
This was was not working for me.

Here is what I have so far. In stead of printing it out in one row how can i get it to print in both rows and colomns. For example:

A B C D
E F G H
I J K...
Forum: Java Oct 3rd, 2009
Replies: 11
Views: 378
Posted By KimJack
Hi,

This is a very simple question. Is it possible to print a one dimensional array into the shape of a grid?

For example if I have the follow array:

chars arrayofChars[] = {'A', 'B', 'C',...
Forum: Java Oct 1st, 2009
Replies: 2
Solved: Memory Game
Views: 235
Posted By KimJack
Yes, I think I got it. Thanks
Forum: Java Oct 1st, 2009
Replies: 2
Solved: Memory Game
Views: 235
Posted By KimJack
Hello,

I am working on a plain old simple text version of a memory game.
The player will be able to match letters of the alphabet by clicking on various numbers. For example

This is what the...
Forum: Java Sep 10th, 2009
Replies: 1
Solved: Stringtokenizer
Views: 209
Posted By KimJack
Hi all,

I have a quick question. Is this a proper way of using blackbox testing to test the stringTokenizer class? If not, would you provide a proper example that displays the pass or fail.

...
Forum: Java Aug 1st, 2009
Replies: 2
Views: 337
Posted By KimJack
Hi,

I really hope that someone can give me a little advice. I am working on a program that reads a text file formatted as follows:

Bike, Schwinn, 45.00
Car, Mercedes, 98,000
...

I am...
Forum: Java Jul 30th, 2009
Replies: 3
Views: 297
Posted By KimJack
I really hope that someone can provide some suggestions or help to guide me in the right direction.
I am trying to use a scanner to parse a string and use its elements with methods. It is...
Forum: Java Jul 29th, 2009
Replies: 3
Views: 297
Posted By KimJack
Hello,

I have a text file that is formatted as such:
Volkswagen, 547, 9.78, 2
Mercedes, 985, 45.77, 35
...

I am trying to figure out how use the Scanner to read from the text file and store...
Forum: Java Jun 6th, 2009
Replies: 10
Views: 1,752
Posted By KimJack
Thanks all, it works fine, but I am curious as to why eclipse gives the error but not JGrasp.
Forum: Java Jun 4th, 2009
Replies: 10
Views: 1,752
Posted By KimJack
There must be some sort of error in Eclipse, because it is the only one that gives this error. However, I moved over to JGrasp and it works fine with your solution.

Is there any way to add a 0...
Forum: Java Jun 3rd, 2009
Replies: 10
Views: 1,752
Posted By KimJack
Thanks, I tried that but still get the same error. Any other suggestions?
Forum: Java Jun 3rd, 2009
Replies: 10
Views: 1,752
Posted By KimJack
Hello all,

I am trying to display time in the following format that represents hours and minutes:
hh:mm


public String getTime()
{
String time = String.format("%tI:%tM",...
Forum: Java May 25th, 2009
Replies: 2
Views: 378
Posted By KimJack
Hello All,

I really hope that you can help me. I am working on a program that will read a randomaccess file's contents and store the contents into an array. It will then update the array and...
Forum: Perl Apr 3rd, 2009
Replies: 3
Views: 560
Posted By KimJack
Thank you for all of the help.
Forum: Perl Apr 2nd, 2009
Replies: 3
Views: 560
Posted By KimJack
Hello All,

I am working on a simple program that will counts the number of matches found. I then need to display the text of the last successful pattern and the text the preceeds the last...
Forum: HTML and CSS Aug 19th, 2008
Replies: 4
Views: 3,940
Posted By KimJack
Here is the code which is in a table. Any help will be appreciated.



<table width="92%" border="0">
<tr>
<td width="61%"...
Forum: HTML and CSS Aug 17th, 2008
Replies: 4
Views: 3,940
Posted By KimJack
Hello all,

I have a problem that I hope some one can assist me with. I have a site done in html and css that also has swf files embedded. It works great on Internet Explorer, but Firefox is...
Forum: Graphics and Multimedia Jul 21st, 2008
Replies: 0
Views: 609
Posted By KimJack
Hello All,

I am fairly new at this but I am trying to add drop caps to each paragraph of text that will be included in a text scrollbar.
I have tried eveything that I can think of.

I...
Forum: Java Apr 24th, 2008
Replies: 1
Views: 1,269
Posted By KimJack
Hi,

I am working on a sort of stack calculator. If anyone can suggest a better method please advice:

Basically, using the stringtokenizer to break the string into tokens. If the token does...
Forum: IT Professionals' Lounge Apr 18th, 2008
Replies: 21
Views: 30,927
Posted By KimJack
So the basic question that I would like to ask is: In the job sector, who would have the bigger salary and who whould move up in a company faster, CS or CIS degrees?

I am currently a senior in...
Forum: Java Apr 17th, 2008
Replies: 11
Views: 1,081
Posted By KimJack
This is the line the received the exception:

hash2.put(info,((Item)hash.get(info)).getDescrip());

Well, "info" is infact a substring from a string entered by the user and getDescrip() returns a...
Forum: Java Apr 16th, 2008
Replies: 11
Views: 1,081
Posted By KimJack
Thanks Ezzaral,
It worked exactly as you described however I am now receiving the following error that I am trying to figure out:

Exception in thread "main" java.lang.ClassCastException:...
Forum: Java Apr 16th, 2008
Replies: 11
Views: 1,081
Posted By KimJack
I have tried the following:


if(test.containsKey("mouse"))
{
test2.put("mouse", (test.getDescrip()));

}
Forum: Java Apr 16th, 2008
Replies: 11
Views: 1,081
Posted By KimJack
No prob JavaAddict,

I started a new thread because the old one started to get a bit confusing and unorganized. I was starting to confuse myself with all of the changes that I was making...
Forum: Java Apr 16th, 2008
Replies: 11
Views: 1,081
Posted By KimJack
Thanks for your help Ezzaral.
Forum: Java Apr 15th, 2008
Replies: 11
Views: 1,081
Posted By KimJack
Hello All,

How can I get the information that corresponds with the containsKey to be put into the hashtable.

I am checking to see if a hashtable contains a key. If it does how can I put...
Forum: Java Apr 14th, 2008
Replies: 3
Views: 763
Posted By KimJack
Just at a glance there are numerous issues. You need to fix the obvious things then resubmit your code within code tags to allow for ease of reading.
Forum: Java Apr 14th, 2008
Replies: 6
Solved: HashTables
Views: 749
Posted By KimJack
All are type Objects with the exception of "info", which is a String read from user input. Of course hash and hash2 represents the hash tables.
Forum: Java Apr 13th, 2008
Replies: 6
Solved: HashTables
Views: 749
Posted By KimJack
Well, I have made some progress. But it still will not "remove" the item from the hashtable.

this is how I used the put method:

hash2.put(hash.get(info), hash.getDescrip());

However when...
Forum: Java Apr 13th, 2008
Replies: 6
Solved: HashTables
Views: 749
Posted By KimJack
The problem has to be with how I am using the put method. When I test the put method with simple strings it works fine.
Forum: Java Apr 13th, 2008
Replies: 6
Solved: HashTables
Views: 749
Posted By KimJack
How is this? I still have the same problem. It will not go into the hashtable.


for(int i = 0; i < 7; i++)
{
if(hash.containsKey(info))
...
Showing results 1 to 40 of 114

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC