Forum: Java 15 Days Ago |
| Replies: 2 Views: 302 Oh, my! Might be, but wasn't good enough. How could I miss that OraLocaleInfo? One more stupid mistake in my list :D
Thank you sooo much |
Forum: Java Jul 15th, 2009 |
| Replies: 19 Views: 500 No, I can't, because We only give homework help to those who show effort (http://www.daniweb.com/forums/announcement9-2.html) |
Forum: Java Apr 19th, 2009 |
| Replies: 13 Views: 521 Well, let's look closer to example given there (I mean the points of attention):
//create a model
final DefaultListModel model = new DefaultListModel();
//creating JList based on our model... |
Forum: Java Mar 15th, 2009 |
| Replies: 7 Views: 769 Well, if follow your's app logic: the Category must be a part of the Item (belongs to it). So if I were you - I would place the definition of it in Item class. And then import it from that class for... |
Forum: Java Jan 21st, 2009 |
| Replies: 1 Views: 1,645 Hello, Allen.
You close your BufferedWriter bw in the cycle (when you are writing data into the file). So in the best case you'll have an empty file ... in worst - an exception.
Just take it out of... |
Forum: Java Jan 19th, 2009 |
| Replies: 14 Views: 1,767 It happened because you calling maxF and maxC methods before you are filling arrays inputFahr and inputCel with data. And your maximum goes through arrays, filled by default values (in your case it's... |
Forum: Java Dec 22nd, 2008 |
| Replies: 13 Views: 1,048 I have a little variation on your 'old' code. It is not the best solution, but it is better than nothing. You can analyse it and make summary for yourself:
public void fillBoard()
{
... |
Forum: Java Nov 27th, 2008 |
| Replies: 10 Views: 4,204 Just to add to what I and Stultuske are saying, here is an example for you:
You have method:
public static void printArray(int count)
{
for (int i=0; i<count; i++ )
{
... |
Forum: Java Nov 26th, 2008 |
| Replies: 5 Views: 1,160 You should realize interface Comparable in your class Person. After that you'll can compare your objects, like that:
Person a, b;
a = ...;
b=...;
a.CompareTo(b);
This will allow you to sort... |
Forum: Java Nov 20th, 2008 |
| Replies: 2 Views: 1,111 Here is a lot of information about binary trees with code eaxamples:
http://cslibrary.stanford.edu/110/BinaryTrees.html... |
Forum: Java Nov 20th, 2008 |
| Replies: 3 Views: 473 Here is part of description of this function, given by java help:
public boolean renameTo(File dest)
It asks a File as parameter, but you give String to it. |
Forum: Java Nov 18th, 2008 |
| Replies: 22 Views: 1,318 Oh ... it never ends :( Thanks a lot for spending time working with me and my problem. I have tried new variant - same trouble. I found the way to pass through this problem:
I add "\n\n" in the end... |
Forum: Java Nov 16th, 2008 |
| Replies: 7 Views: 1,314 As I understood, you have combined information in your file "books.txt" (name -
string and price - double). To split information, that was read from your file you should use patterns (in example... |