Issue solved within a minute after posting this... Sorry.
Type: Posts; User: tyeeeee1
Issue solved within a minute after posting this... Sorry.
I separated each piece and then did System.out.println(); on each of them but nothing was null. I just decided to take 'final' away from BufferedReader and it somehow solved the problem. O.o I guess...
Here is the error message along with some debug messages. According to what it says the file does exist, but for some reason it still gives a null pointer error.
URL Path:...
Just CnP the code here. All you need to do would be something like this:
-Every time your game loop does a loop, check if A or B is pressed; if the A key is pressed then do X-- else if the B key...
Hey,
I'm attempting to load two text files and, although I've solved this problem a few times before, nothing I try seems to work. If anyone can think of something to try it'll help! ^.^ Here is...
Why would you want to create a search engine such as this when Google, Bing, Yahoo, Ask, etc... already exist and do this job very well?
Try manually creating the jar. This webpage should help (Creating an Executable jar File).
Solution found. Apparently, due to a space within the database name, it was messing up. If anyone encounters a problem similar to mine just check out this page for some information on a fix...
I'm currently attempting to figure out how to use a Derby database in java. So-far I've been reading through this (Java For Complete Beginners - Databases) tutorial and I'm kinda-sorta sure that I've...
Thanks for checking and for the advice. ^.^ I had to get a second opinion because when I tried using Netbeans for the first time a few minutes ago it had every single package line underlined saying...
After awhile I learned how to use multiple class files instead of having a huge singular file and now I'm trying to figure out how to keep organized with all my class files. I've looked up packages...
I'm going over it now, but it totally lost me when it came to this example:
import javax.swing.SwingUtilities;
import javax.swing.JFrame;
import javax.swing.JPanel;
import...
I've removed the collision related code, here is the basic program:
Edit: Threw the program into one file, this should still work...
import javax.swing.*;
import java.awt.*;
class Rawr
I've been trying to wrap my head around how to detect and fix collision at the moment but as I'm not very familiar with drawing on a JPanel I managed to mess up somehow. At the moment my loop looks...
I've managed to fix the errors, it looks like I forgot two semicolons and a pair of (). Thanks again!
C:\Users\NAME>cd C:\Users\NAME\Java Projects\Text Adventure
C:\Users\NAME\Java Projects\Text Adventure>javac *.java
Battle.java:29: error: unexpected type
tempInt =...
O.o It's actually just as simple as that? Thanks a ton!
--- Update ---
I just ran into three, to me, strange errors after trying to write a simple program to test out using two separate class...
Hey, I just recently finished my CS class and so I started going out and trying to learn a few various things that the course didn't touch on at all. The one huge problem that I'm having is that, in...
Hey, I've just started messing around with reading from text documents and I've done fairly well in my experiments so-far; I just ran into a small problem with the one part of the code that I was...
Edit: After a bit of messing around the problem has been solved thanks to both of your comments. Thanks!
Hey, I'm trying to change a non-final variable when a button is clicked in my program. The problem I'm running into is that, as far as I know, you can't use non-final variables within an...
Thank's for the tutorial link, I'll go through it and see what I can learn.
--- Update ---
Edit: I managed to get it working and finish the assignment after a bit more googling and a lot of...
Here is what my console said after I had the applet open for a few seconds, I only understood the first line of the error which leads me to think that the applet is skipping the main method and...
After using "appletviewer -debug AssignmentJ13PartFour.java" the following appeared in the cmd:
Initializing jdb...
*I typed 'run'*
run sun.applet.Main AssignmentJ13Partfour.java
Set...
I'm using Google Chrome, would that be the same as right clicking the page and checking out the page source or inspecting the elements?
(We've barley done anything with applets in the class so I'm...