Forum: Java Jan 7th, 2009 |
| Replies: 1 Views: 311 I am trying to learn some oop in java. What I am trying to do is building a binary tree to convert an ekspresion in reverse police notation to infix notation. The problem is that I have three... |
Forum: Java Nov 30th, 2008 |
| Replies: 4 Views: 481 data was an Object, I changed it so a String and did Double.parseDouble(data); instead of ((Double)data).doubleValue();
Now it works. Thank you both :) |
Forum: Java Nov 30th, 2008 |
| Replies: 4 Views: 481 You are right. It will never return anything but a double.
I wrote some code. The problem now is that I get a NullPointerException which I dont get. Every operator has two children so the none of... |
Forum: Java Nov 30th, 2008 |
| Replies: 4 Views: 481 Hi, I am having some troubles with a recursive function.
The function needs to get a string as an input. The string contains both symbols and numbers. What the function does is doing some operation... |
Forum: Java Nov 28th, 2008 |
| Replies: 2 Views: 852 I have a binary tree which I would like to get printed out inorder.
Right now I have this recursice loop:
public void inorder()
{
if(leftChild != null )
... |
Forum: Java Nov 28th, 2008 |
| Replies: 1 Views: 1,458 Hi. I am working on a project where I convert postfix notation to infix and evaluateing it. This includes building an evaluations tree (binary tree). I get how to create nodes, but how do I get the... |
Forum: Java Oct 22nd, 2008 |
| Replies: 3 Views: 620 So I need to do both this:
ArrayList suggestions = new ArrayList();
and this:
public ArrayList<String> suggestions( String word )
{
return suggestions; |
Forum: Java Oct 22nd, 2008 |
| Replies: 3 Views: 620 Hi. If given an arraylist in an interface like this:
interface Dictionary {
public boolean hasWord(String word);
public ArrayList<String> suggestions( String word );
public void addWord(... |
Forum: Computer Science Oct 6th, 2008 |
| Replies: 2 Views: 1,446 Thank you. That was really helpfull :) |
Forum: Java Oct 4th, 2008 |
| Replies: 3 Views: 483 http://www.java2s.com/Tutorial/Java/0180__File/0260__BufferedReader.htm |
Forum: Computer Science Oct 4th, 2008 |
| Replies: 2 Views: 1,446 Hi,
I need to make a big-theta notation on an algoritm I made. The algoritm is soposed to find factors of a number. This is the algoritm implemented in java:
public class factor {
public... |