Whoa! I haven't been here in a long time--let's see if I can still do this. *cough cough* Anyways, I find this post quite humorous. I was just thinking about coming back to this community, and for my...
Type: Posts; User: Brt93yoda
Whoa! I haven't been here in a long time--let's see if I can still do this. *cough cough* Anyways, I find this post quite humorous. I was just thinking about coming back to this community, and for my...
HELP!!!!!!!! Will not be given to you...
Try designing a plugin acceptable program without them. ;)
while(true)
{
//do all of the updates
Thread.sleep(16); //60 frames per second
}
sleep isn't exact, but it should work for what you're doing.
The way you structured that program annoys me. Anyways, in order to update the image without max/min-imizing you need an infinite loop that calls repaint().
@Copeg. I didn't just give him the answers. I actually tutored him.
If I'm not mistaken, frame.pack(); applies all of the changes to the content pane.
my msn is jedislayerofhoth@hotmail.com
I'm willing to do it. do you have skype?
Glad I could help.
@xxcorrosionxx Copeg's actions are not un-just. He is a moderator of a VERY popular forum. That should be proof enough that he knows what he's talking about. All of the evidence shows that you're...
I learned them as Arguments, and Parameters. Is that incorrect -- a C++ term?
If you're a student earning their BS or MS then go here for an Internship.
If you're not a student then try here.
Since you have ~2 years of experience with Java I'm willing to let you join my...
No clue who he was talking to, but okay.
I'm willing to do it since you're paying.
Here is my contact info.
--E-mail: jedislayerofhoth@hotmail.com
--Skype: brt93yoda
You can private message me too.
You do need to remove all of the spaces after you read the file. You can't convert the string "10 " to the int 10.
You checked if the stream had more lines in your OP.
while ((line =...
@DanBrown how long have you programmed in Java or in general?
Good post Whitesoup12. I wonder why the Prof. wanted to return 0 as an error. I was taught to return -1 instead.
Here's what you need to know.
1) Read a file (DONE)
2) Tokenize a String (DONE)
3) Convert a string to an int
To convert a String to an Int use the following code:
...
You need to change System.out.print(sinput2.nextToken() + " "); to System.out.println(temp + " ");
Are you using an Android? If so the Android Development kit is free from google. You can use JavaSE instead of Me.
Do you have a BCS or MCS? If so try getting an internship with Google. They pay well and they love Java/C/C++ devs. I'm not saying that programming is about money, but you do need to live.
Haha my bad. I've never used JavaEE so good luck.
You have to get the token, and then check the size.
StringTokenizer sinput2 = new StringTokenizer(sinput);
String temp = sinput2.nextToken();
System.out.println(temp.length()); //There is no...
If you're loading the whole file into the program you have to increase the heap past the default size. Try running your program in Terminal as so; java -Xmx500M nameOfClass.java
If it's a jar:...