Forum: Java Aug 20th, 2009 |
| Replies: 5 Views: 224 A second option would be to just have a item count variable which increments every time an object is added to an array. Then if the count is > 10 give appropriate responce. |
Forum: Java Jun 30th, 2009 |
| Replies: 13 Views: 992 At this point I am probably as confused as you. =(
Do you think it makes a difference if the applet is run on your pc or on a web server? The getCodeBase() method may give an error from the folder... |
Forum: Java Jun 30th, 2009 |
| Replies: 13 Views: 992 The error is being thrown at line 26 of readFileApplet.java by the method getCodeBase().
I don't know for sure why. I haven't used URL or getCodeBase() before. Sun's documentation states that it get... |
Forum: Java Jun 30th, 2009 |
| Replies: 13 Views: 992 You are probably getting this error because you are trying to do an action on an object that is 'null'. I would add an if statement saying
if (myObjects == null){
System.out.println("this was... |
Forum: Java Jun 26th, 2009 |
| Replies: 4 Views: 237 I would try
import java.lang.Math;
public class CalcDrive {
public static void main(String[] arguments) {
CalcTest one = new CalcTest(); |