supercorey's Profile
Reputation: 119
Stalwart
- Group:
- Contributors
- Active Posts:
- 186 (0.12 per day)
- Joined:
- 15-February 09
- Profile Views:
- 36,244
- Last Active:
Yesterday, 03:42 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Linux
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 175
Latest Visitors
-
Raminator 
25 Apr 2013 - 16:35 -
skymonkier 
24 Apr 2013 - 11:51 -
Takk 
06 Apr 2013 - 21:59 -
koborivers 
06 Apr 2013 - 21:50 -
drakethedragon 
30 Mar 2013 - 09:11 -
raziel_ 
22 Feb 2013 - 09:06 -
geohhot 
26 Jan 2013 - 01:06 -
jjl 
19 Jan 2013 - 20:27 -
Narek Babadja... 
30 Dec 2012 - 03:42 -
DaneAU 
25 Dec 2012 - 05:03
Posts I've Made
-
In Topic: What does an int default at?
Posted 9 Apr 2013
pbl really has the best solution here.
But to answer the original question of what an int defaults to, the answer is really nothing. When you initialize a variable like you did without assigning it a value at any point and try to use it as an argument or as part of an expression, etc. then the program won't even compile. Also, you can't compare int primitives to null since int isn't actually an object to be in a null-state, it's just a data primitive. -
In Topic: ISP's watching what you download?
Posted 6 Apr 2013
Well, it would. But spyware like that doesn't simply exist from ISPs (that we know of, at least.)
You wouldn't just get a copyright notice from ripping it - for that matter, if you did, I suggest you get a good lawyer, but I have a feeling that's not the entire story here. If your ISP sent you a notice about it, that means at some point you received or sent that movie over the internet and either the MPAA or other publishing company noticed you were seeding the torrent and contacted your ISP about it. The point of an ISP is that they deal in your Internet access. Anything you just do on your computer without network activity shouldn't ever be noticed by them. Heck, even if they did notice it, they likely wouldn't care. See Lemur's post.
I don't really want to flat out call tpaskell a liar... but his current story seems really unlikely. -
In Topic: Threads? Are they as bad as they seem?
Posted 27 Feb 2012
There are actually ways to use Swing in a thread-safe way, but they aren't immediately obvious. If you'd like to read more on the topic, there is an article here.
Cheers! -
In Topic: java noob, need help with lab
Posted 27 Feb 2012
Sir, I just ran your code and it works perfectly fine for values greater than 75cents. Just because the first while statement isn't true doesn't mean that the subsequent statements won't execute. -
In Topic: Threads? Are they as bad as they seem?
Posted 27 Feb 2012
Okay, threads may seem rather complicated at first along with everything concurrent, but they really are quite useful and powerful tools. The official Oracle Concurrency Tutorials do a very good job of presenting this concept.
Secondly, if you are using Swing for your game, which would seem most likely, you wouldn't be able to use threads well. Swing isn't thread-safe which means that using threads can cause unexpected behavior. For now you can easily stick with a timer which should serve the purpose perfectly well.
Good luck and cheers!
My Information
- Member Title:
- D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- The Matrix
- Years Programming:
- 7
Contact Information
- E-mail:
- Private
|
|



Find Topics
Find Posts
View Reputation Given


|
Comments
AthenaDX
12 Nov 2012 - 09:22creativecoding
06 Mar 2012 - 10:19no2pencil
04 Mar 2012 - 21:22DimitriV
14 Nov 2011 - 17:32creative code monkey
07 Oct 2011 - 05:27hulla
26 Sep 2011 - 09:30EnvXOwner
22 Jul 2011 - 19:50EnvXOwner
11 Jul 2011 - 11:00