The program compiles and will print out "Hello1" since you called the method, varargs, that accepts a single int as a parameter. Everything seems to be fine.
Type: Posts; User: Staticity
The program compiles and will print out "Hello1" since you called the method, varargs, that accepts a single int as a parameter. Everything seems to be fine.
Could you show us the stack trace (error)? Also, what is the general purpose of this program? It seems a bit odd to just say "this doesn't work, fix it" without giving any other information.
Yeah, I didn't really know how to word what the issue was.. But I believe I just solved the problem. I was just having an issue visualizing what was really going on whenever you preformed the...
So, I will soon be a student at a University studying Computer Science, and I have taken it upon myself to study ahead for my Data Structures class. I am currently on the 7th week of assignments, and...
I reduced the number to 2, and the speed was the same. If you look at the actionPerformed method I provided.. The problem is with the condition. The while loop finishes for some reason after the...
The idea of multithreading is new to me, and in order to practice I have decided to make my Web Crawler a bit faster.
After implementing the new process using a thread pool with ExecutorService,...
There are also other classes in the API that you can use. One very common (and useful) class is the Character class.
Just to give you a tip, I suggest you take a look at what methods the Character...
Haha, that's programming. The most common error is the simplest error. Glad you found it.
You should give it another look. Doing it as you go isn't the best idea. You may be repeating your mistakes.
Here's something I thought was very important from that link. "A scanning operation...
Hey again Whome, it really seems like you are "brand new" to programming. I suggest waiting a bit longer before diving in to the unknown (I know how badly that can get).
I took the initiative last...
Hey, what's up Nate.
There are several great ways to debug your code; one of them, which I particularly advise, is to read through your code line by line and understanding what exactly is being...
It seems like that didn't work for me, I had the same reuslt. Do you have any other suggestions perchance?
For future reference , and now would be great as well, could you read this for proper code notation?
http://www.javaprogrammingforums.com/whats-wrong-my-code/announcements.html
The first thing I...
Like I've stated, there is nothing fundamentally incorrect with the way I have been drawing anything. If I run the program on my computer, it looks fine. Also considering that one of my other...
Hey there Whome, I'll be glad to help. What have you attempted so far?
Sorry about that. They're .jar files. It's easier/faster to upload the several classes using a Jar instead of an Applet.
Here is the HTML snippet.
<!--[if !IE]>-->
<object...
Even though I only have a year's worth of experience, I'm going to try and help out since there hasn't been a reply yet.
I'm going to assume that you want to compare the data within the...
I'm not sure if this would be the correct post, but I've started some simple development for my portfolio website. I embedded several different jars (as tests) with an Object tag and they all...
So, I have a general question to ask everyone. I'm always looking for new resources to expand my knowledge of programming, and I've come across a few recurring situations when I program a game.
-...
So, in order to practice for future Competitions... I've printed out a few old UIL packets to go through. I noticed a few re-occurring problems that are somewhat difficult, but manageable. I find...
I'm sorry, I don't quite understand your question. Could you clarify please?
Depending on how far you want to space your tree, you are correct. There is an inverse relationship between the A's and spaces.
So in my eyes, if your greatest length of A's (which would be the...
Do you notice any pattern occurring in the program? What is the correlation between the # of A's and the # of spaces that should be produced?
I suppose by a "straight tree", you want your lines to be aligned in the center.. What have you tried?
Hey slayer,
Do you mind reading This? It makes it lot easier for us to help you.
What type of parameter is your toString method receiving? What is it's purpose?