Forum: Java Oct 9th, 2006 |
| Replies: 2 Views: 1,414 hmm... you you are faced with the same problem... nggghhh...
im in a process of generating a java doc... pro my project and i've got some unused variables there and have to do what you have... |
Forum: Java Oct 5th, 2006 |
| Replies: 4 Views: 2,587 I have an algorithm problem with recursion:
i have a route from A to D and it looks like this
[A, B, C, D]
the alphabet in the above list is an object of a class, lets call that class Nodes... |
Forum: Java Oct 4th, 2006 |
| Replies: 2 Views: 1,414 when you have a variable and you are not using it at all in the code... i.e you forgotten about this particular member
well in eclipse there is something that indicates that, that particular... |
Forum: Java Oct 3rd, 2006 |
| Replies: 2 Views: 1,366 ok solved the first problem... adding
forSetA and forSetB has the same thing it was a typo mistake...
but i still have a bigger problem to solve (see... orriginal thread..) |
Forum: Java Oct 3rd, 2006 |
| Replies: 2 Views: 1,366 say i have a Map, a HashMap, and its key is a bunch of Integer and the values is a List of strings. i.e.
{1=["A", "B", "C", "D"], 2=["A", "B", "E", "D"], 3=["D", "F", "G"]}
then i have a Set... |
Forum: Java Oct 2nd, 2006 |
| Replies: 2 Views: 4,839 Hi,
its already been answered (http://forum.java.sun.com/thread.jspa?threadID=773133&tstart=0) |
Forum: Java Oct 2nd, 2006 |
| Replies: 2 Views: 4,839 Hi guys,
I have a HashMap, and it stored a bunch of Strings... the key is a String and the value is a Set of String...
and it looks something like this
what is the best way to iterate... |
Forum: Java Sep 29th, 2006 |
| Replies: 2 Views: 1,430 the for loop is newly introduced in 1.5 its basically says for each file in the listRoot do |
Forum: Java Sep 27th, 2006 |
| Replies: 2 Views: 1,540 it was quite simple actually, with the use of HashMap instead of an ArrayList to put the car object in (key: "car colour", value: car object) |
Forum: Java Sep 26th, 2006 |
| Replies: 2 Views: 1,540 I have the following class as a example to a similar problem im having ...
Class Car
code:
public class Car {
private String name;
public Car(String name) {
... |
Forum: Java Apr 11th, 2006 |
| Replies: 3 Views: 1,868 :o errrm ... yeah i wasnt being too specific at all wasnt i.... |
Forum: Java Apr 9th, 2006 |
| Replies: 3 Views: 1,868 for a start tidy your code up... declare all the variables at the top before even using them, and only create them when u think its really necessary... also you cant create a variable with the same... |
Forum: Java Apr 8th, 2006 |
| Replies: 12 Views: 8,837 also spotted some other mistakes
See my code
import javax.swing.*;
public class Pool
{
public static void main(String[] args)
{
int input1, input2, input3, Volume; |
Forum: Java Apr 8th, 2006 |
| Replies: 12 Views: 8,837 i think u forgot the semicolon ";" |
Forum: Java Apr 8th, 2006 |
| Replies: 12 Views: 8,837 your input1 is a type of integer as in numbers, and your input dialog is will only take in String type as in. so the value being taken by the Dialogbox needs to be converted from string type to int... |
Forum: Java Apr 7th, 2006 |
| Replies: 8 Views: 7,692 GridBagLayout is prolly the way...
as for creating the JButtons... its a little something like this
String[] numbers = {"0", "1", "2", "3", 4", "5", "6", "7", "8", "9"}; // goes on to 26... |
Forum: Java Apr 7th, 2006 |
| Replies: 5 Views: 2,259 what do you mean by "even if parts don't exist" , can u give us some example, thx |
Forum: Java Apr 5th, 2006 |
| Replies: 5 Views: 2,259 OK this works, i forgot to add the "\\" at the end of the file argument
import java.io.File;
public class testFile {
public static void main(String[] args) {
File file = new... |
Forum: Java Apr 5th, 2006 |
| Replies: 5 Views: 2,259 Hi,
How do you go about in creating a direcory folder?
I've been playing around with class File which has the method mkDir() (no arguments and returns type boolean), which i thought would be... |
Forum: Java Mar 29th, 2006 |
| Replies: 1 Views: 1,162 Ok found it, was looking at the wrong thing.
just incase anyone interested its the ResultSetMetaData.getColumnCount(); |
Forum: Java Mar 28th, 2006 |
| Replies: 1 Views: 1,162 which method in the ResultSet that will return the number of column in a table?
I'm not entilry sure but i think its the getFetchSize()
However on the API it says that :
here says "rows" not... |
Forum: Java Mar 27th, 2006 |
| Replies: 6 Views: 5,538 try this:
1.user enter number
2a.user click operator
2b.set code to store number to a variable
2c.set code to store the status of the (last) operator click
3. user enters next numbers
4a. user... |
Forum: PHP Mar 27th, 2006 |
| Replies: 4 Views: 2,002 on your html <head> tags add something like this...
<LINK REL="SHORTCUT ICON" HREF="points_to_your_icon_or_image">
let me know if it works
--
fd |
Forum: Cases, Fans and Power Supplies Mar 27th, 2006 |
| Replies: 1 Views: 1,287 That would depend on what motherboard you have. Some motherboard only have heatsink for the chipset. But yeah you can safely assume that. |
Forum: Viruses, Spyware and other Nasties Mar 27th, 2006 |
| Replies: 1 Views: 1,112 Don't know if anyone seen this article yet...
http://news.bbc.co.uk/2/hi/technology/4849904.stm
I think its the more reason not to use IE as your default browser, although at the end of... |
Forum: Java Nov 9th, 2005 |
| Replies: 18 Views: 34,621 I followed this link and i get this:
Nice, NOT!!! :( |
Forum: Java Nov 7th, 2005 |
| Replies: 2 Views: 1,460 hey thanks for the reply.
set my RSS feed to the correct link and hey presto, it does what it say on the tin. |
Forum: Java Nov 7th, 2005 |
| Replies: 2 Views: 1,460 Hi,
I'm using your RSS FEED link to get all the news or event that is happening in your forum. however i am only interested in whats happening in the Java forum.
Is there a way where i can... |