Disregard (dunno if anyone read this). I figured this out. Turns out you can only have one WEB-INF within a folder no matter how many different other folders within that folder.
Type: Posts; User: mstabosz
Disregard (dunno if anyone read this). I figured this out. Turns out you can only have one WEB-INF within a folder no matter how many different other folders within that folder.
Hey guys,
I'm usually pretty good with this stuff, but Servlets are kicking my ass. The logic all seems straightforward enough, but I can't figure out the environment.
Here's my setup: running...
You shouldn't call a function outside the body of a function (which you did on line 3). You've also left your main function completely empty so your program won't do anything.
Also, don't put a...
That 2nd try is a little closer, but that call to displayinfo(); is just sorta hanging out in the top of the class where the variables and method definitions go. There's no way to reach it and I...
Your code looks okay but it's all out of order. You're sorting the array, then printing it twice after the sort. When you run the array through that sorting loop, you're completely changing the...
What do you have so far?
Try working out this problem on pen and paper if you need some help figuring out the logic and how to begin. If you have some specific questions on Java syntax or are...
You shouldn't have your package declaration inside the body of a class. Also you shouldn't have it twice.
To change things to private, just precede them with the private keyword instead of...
Do you know how to declare variables?
Do you know how to assign values to them?
Do you know how to take in input from the user?
Do you know how to do math operations? How would you go about...
Like they said, you gotta remove the semicolon. But even when you do that, your code will probably not have the result you intended. It should go from printing out the number "1" to having no...
I've been studying web development too. I pick up the back end stuff pretty quickly but front end always gives me trouble. HTML and CSS aren't really tough but I feel like good front end stuff...
Ok. Attaching a simple WindowListener got this all working correctly. I'm not crazy about the clutter caused by the 6 other methods the interface requires me to implement, but it is what it is. ...
Ok got it working. Thanks Norm and Copeg.
I thought the statement JButton[] handButton = new JButton[13]; instantiated them. I guess I was wrong. I always screw up with object array. Blech. So I oughtta throw something like handButton[i]...
Wasn't sure which subforum to put this in. It feels like it crosses a couple different aspects of Java.
So I have these two classes that I wrote a few months back. The Card class represents a...
Hmm. Is there a better way? The System.exit(0) statement is inside that catch block. If it hits that, there are no other statements to execute, so it wouldn't do anything. But if I got rid of the...
Hmmm...
Earlier today tried the May export and the (newer) October export on a third computer and they both worked. Just now tried both on this computer, and they both worked. Then closed them...
XAMPP I think is only using 80 and 443. But I changed around to some other arbitrary port numbers and still got the same thing. Netstat doesn't show port 10,000 as being in use, so you're probably...
Ooof. Forgot I posted this, and been too busy to reply back. Sorry about that.
You only need the server portion, which I've pasted above, to see the problem. There's an Address class...
I wrote this program back in May that makes use of networking. It's a smallish program that is comprised of 2 parts, a client and a server. The server just receives information from a single...
No, but it's a lot more reliable than using ==
I think that == sometimes works with Strings but not always so you shouldn't count on it.
You can also use .compareTo() and...
Indeed. For this particular problem, I left my computer and went off to the gym for my daily exercise, a process which takes about 90 minutes (30 minutes travel to and from the gym, and an hour on...
Number 1 looks like a good candidate for recursion, since it involves factorials. But you can probably do it with a for loop that counts down. In a nutshell, the question is asking: "If given the...
Well, a submit button, on something like a GUI, would be added as a JButton object. JButton jbtSubmit = new JButton("Submit"), then use the add() method in the JFrame class to add that to a frame. ...
The output depends on the input. If you wrote this, then gave a height and width of 4, you would get an area of 16 for the square and 8 for the triangle.
What question?