Forum: Java 21 Days Ago |
| Replies: 1 Views: 317 Binary Search tree help in Java 98% complete Ok, the code is almost done and I need help finishing up my delete function(between lines 51 to 71), I can't seem to figure out how to delete the 50 and the 20. Here is my code. BTW i'll list the... |
Forum: Java Aug 29th, 2008 |
| Replies: 3 Views: 422 |
Forum: Java Aug 27th, 2008 |
| Replies: 3 Views: 422 |
Forum: Java Aug 27th, 2008 |
| Replies: 3 Views: 422 Linked List help The program compiles but is not run right can somebody help plz? There are two parts a class and a main.
public class LinkedList56 {
private class node{
int data;
node... |
Forum: Java Aug 24th, 2008 |
| Replies: 1 Views: 335 array out of bounds help Im just trying to figure out why I have a array out of bounds that all can somebody help?
public class Life2 {
public static void main(String[] args) throws Exception{
boolean dead;
int winsX =... |
Forum: Java Apr 8th, 2008 |
| Replies: 4 Views: 294 Re: Can't figure out error in OOP ok, i uncommented out what I had commented, now I'm getting this error, truckinfo[i] = new Truck(); Vehicle.java:103: non-static variable this cannot be referenced from a static context, i tried... |
Forum: Java Apr 8th, 2008 |
| Replies: 4 Views: 294 Re: Can't figure out error in OOP ok, i fixed that, and it compiles but after i enter in a few things, it says, Exception in thread "main" java.lang.NullPointerException at Vehicle.main(Vehicle.java:112) but it worked for the vehicle... |
Forum: Java Apr 8th, 2008 |
| Replies: 4 Views: 294 Can't figure out error in OOP I can't figure out why it is saying (Vehicle.java:174: cannot find symbol) but there is a symbol, what is going on?
import java.util.Scanner;
public class Vehicle{
protected int hp;
protected int... |
Forum: Java Mar 18th, 2008 |
| Replies: 1 Views: 423 help with adding to a list ok, i need help adding to a list after the list have been made. Its the only thing stopping me from getting this thing done, help please....
import java.util.Scanner;
import java.io.*;
import... |
Forum: Java Mar 12th, 2008 |
| Replies: 3 Views: 443 Need help with Object Oriented Programming #1, Im tryin to get this bb code right, #2 I need help with finding the problem with me code, it is saying that my for loop is a illegal start type and also a identifer is needed, but I have no clue,... |
Forum: Java Feb 1st, 2008 |
| Replies: 1 Views: 778 |
Forum: Java Dec 4th, 2007 |
| Replies: 6 Views: 738 Re: Turning my board from console to Message box waoh woah woah, thanks for the help, but I like it simple, I only got to arrays in my book so, everything I did so far has been simple, nothing to advance, thats why I have about 3 to 4 pages of code. |
Forum: Java Dec 4th, 2007 |
| Replies: 6 Views: 738 |
Forum: Java Dec 4th, 2007 |
| Replies: 6 Views: 738 Turning my board from console to Message box My tic tac toe board is done, but I need it to show up in the Dialog box, not the console, how would I do that?
Here is my code:
javax.swing.JOptionPane.showMessageDialog(null, "\n-------");
... |
Forum: Java Dec 4th, 2007 |
| Replies: 2 Views: 343 |
Forum: Java Dec 4th, 2007 |
| Replies: 2 Views: 343 Need help with a method can anybody see anything worng?
I'm returning these to the main
sO=ScoreO(O);
sX=ScoreX(X);
These are my two methods:
//method to tally the score for x
public static int ScoreX(boolean X){ |
Forum: Java Dec 3rd, 2007 |
| Replies: 4 Views: 673 |
Forum: Java Dec 2nd, 2007 |
| Replies: 4 Views: 673 |
Forum: Java Dec 1st, 2007 |
| Replies: 5 Views: 581 number coordinates help I need help understanding why my code doesn't work while using number coordinates. I'm using a two dimensional array, I would like to post my code so you guys can check my errors, but I don't want... |
Forum: Java Nov 19th, 2007 |
| Replies: 0 Views: 1,133 Character input help!!!! I need to this program to let me enter in an letters A B C or D so this program can run, why isn't this program not working, please help.
Here is my code:
public class DriversLicense{
public... |
Forum: Java Oct 21st, 2007 |
| Replies: 1 Views: 579 Making a table, help please Hello, I need help making a table based off my tax code I made, the tax code was a little, but I need help with the table part also. The table should look like this:
Income Single Married Joint... |
Forum: Java Sep 26th, 2007 |
| Replies: 2 Views: 862 Re: Pattern Program help again Ok I solved the last program, but I need on this one, I have no clue:
Ok, I need help on a for loop nested program using for loops, I'm trying to use a patten that goes like this:
123456
12345
... |
Forum: Java Sep 26th, 2007 |
| Replies: 2 Views: 862 Pattern Program help Ok, I need help on a for loop nested program using for loops, I'm trying to use a patten that goes like this:
123456
12345
1234
123
12
1
but when I try it, it goes like this:
654321 |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 1,324 |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 1,324 |
Forum: Java Sep 10th, 2007 |
| Replies: 11 Views: 1,324 |
Forum: Java Sep 9th, 2007 |
| Replies: 11 Views: 1,324 |
Forum: Java Sep 9th, 2007 |
| Replies: 11 Views: 1,324 |
Forum: Java Sep 9th, 2007 |
| Replies: 11 Views: 1,324 |
Forum: Java Sep 5th, 2007 |
| Replies: 4 Views: 685 |
Forum: Java Sep 5th, 2007 |
| Replies: 4 Views: 685 Re: I need help on displayingInput and Output I fixed it up but it is still not working, what is wrong, there are no errors?????
It wont read in the command prompt
public class Interest {
public static void main(String [] args) {
... |
Forum: Java Sep 5th, 2007 |
| Replies: 4 Views: 685 I need help on displayingInput and Output ok I have a program that is suppose to use dialogs boxes to obtain input and display output and also use console input an output. But here is the thing, I believe my code is a little right but don't... |
Forum: Java Aug 29th, 2007 |
| Replies: 3 Views: 1,756 Re: Converting uppercase to lowercase help???? Hmm ok, but another question, how would I do a single line for assigning all the letters A throw Z instead of making a command with 26 different lines of codes, in other words, shorting it up? |
Forum: Java Aug 29th, 2007 |
| Replies: 3 Views: 1,756 Converting uppercase to lowercase help???? Ok guys, I need help, I found a couple of examples but don't understand. None of the Java examples uses this method for Converting letters uppercase to lowercase:
int offset = (int) 'a' -(int)... |