Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
84% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #2K
~24.1K People Reached
About Me

The computer guy. I live only because computers still exist :P That's right. I'm that crazy about them! Apart from computers, I love music. Music is my escape. Add it to programming and you have my ideal heaven. I listen to anything that sounds good.…

Interests
Listening to music, reading, playing table tennis, basketball, soccer. Just hanging out with friends.
PC Specs
Macbook Pro 13". Partitioned hard drive. OSX on 1 partition, Windows 7 Enterprise on the other.

27 Posted Topics

Member Avatar for insanely_sane

Hola people :D So now that my holidays have begun... I'm bored :P I have decided to make random stuff with Java. So till now I have upgraded my checkers game (added high scores, color 'themes' for the board, etc.), made a music player kind of thing (used JFileChooser and …

Member Avatar for David_97
0
2K
Member Avatar for ~s.o.s~

I know that an IDE is not recommended but it is helpful. The very good, easy to use for beginners is Holtsoft's Ready to Program IDE. Its simple and nice. You can get the installer [URL="http://www.holtsoft.com/"]here[/URL].

Member Avatar for ~s.o.s~
46
6K
Member Avatar for insanely_sane

Ok, so you know how, if we want to output the elements of an array to the screen, we have to make a for loop right? So I have the following code... [CODE] char array[] = new char [10]; array[0] = '1'; array[1] = '2'; . . . . array[9] …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for insanely_sane

Hey guys. So I want to learn how to do a simple I/O to and from a file. I want the simplest way to do this. My teacher sent me her program but I don't think I get what she is doing and it's giving me an error. So I …

Member Avatar for Progr4mmer
0
225
Member Avatar for techie929

no. Indices always start at 0. ALWAYS. At least thats what I have noticed.

Member Avatar for jon.kiparsky
0
97
Member Avatar for insanely_sane

Here's an easy one for you experts :P What is casting and parsing? How exactly are they different? After explaining, could anyone possibly tell me how to cast/parse the various types from and to each other? (the types being: int, double, char and String) Also, in which situations would I …

Member Avatar for Mattox
0
252
Member Avatar for Climber Ty

[URL="http://www.java-forums.org/advanced-java/4130-rounding-double-two-decimal-places.html"]Here[/URL] is your solution for rounding off. If you cannot figure what that is saying, then do ask. As for the values not being accepted, here are some mistakes in your code: [CODE]fahrenheit = input.nextInt();[/CODE] You are telling the compiler to accept the input as an integer and that would …

Member Avatar for Climber Ty
0
186
Member Avatar for insanely_sane

Hey guys. I'm brushing up on my GUI programming in Java and I am using the Ready to program IDE(by holtsoft). So the title tells it all really. I have tried and failed, but I need to see if there is a way to get the typewriter effect (as in, …

Member Avatar for ztini
0
165
Member Avatar for lancevo3

Is this your whole code? If yes, then umm... where have you defined the variables r, d, n? The computer wouldn't know what r,d,n are... Also the following is wrong [CODE]if (padding == "r")[/CODE] same goes for the ' == "d" ' only Strings are put in double quotes. if …

Member Avatar for lancevo3
0
143
Member Avatar for ncstplaya1234

hmm.. I havent tested the code so I assume it runs perfectly. One way to eliminate 1 line would be by using the "do-while" loop instead of the "while" loop. The difference between both being that do-while will execute the code within it atleast once before check for the stopping …

Member Avatar for insanely_sane
0
85
Member Avatar for insanely_sane

Ok.. so uptil now I've been using the DOS compiler and IDE for C++, version 3.0 by borland...(which is like ancient history).. But now I think it's about time to upgrade :P So since I have been away from C++ for a loooooong time, I need to start from scratch. …

Member Avatar for mike_2000_17
0
194
Member Avatar for insanely_sane

Been working on this for 2 hours non stop. Can't seem to figure out exactly what's the problem. Perhaps I'm taking a wrong approach to this problem. Right, I need to copy a singly linked list to another new list. Can use any method EXCEPT RECURSION. Here's the code so …

Member Avatar for Taywin
0
3K
Member Avatar for insanely_sane

Ok... So I have the following program: [CODE]public int seq2 (int n) { if (n <= 0) return 1; else return seq2 (n - 1) + 2 * n - 1; }[/CODE] It gives the following output: 1 2 5 10 17 26 37 50 65 82 So that means …

Member Avatar for insanely_sane
0
186
Member Avatar for insanely_sane

Yeah... I have a headache... So I have the following code: [CODE]public class inc { public static void main (String args[]) { new inc(); } public inc() { System.out.println (addTwo(7)); } public int addTwo(int n) { System.out.println (n); if (n < 1) { return 2; } else { return addTwo(n-1)+2; …

Member Avatar for insanely_sane
0
165
Member Avatar for insanely_sane

Ok.. so I just started python (just = 3 hours ago). I have basic input and output set. Hell I even understand slicing and stuff (OMG SUBSTRINGS SO MUCH EASIER ON PYTHON :O ) but Im finding it not so easy to understand how to use for loops (silly me. …

Member Avatar for insanely_sane
0
209
Member Avatar for SD91

If I could have an example of the output, that would be helpful in trying to help you :P . Although it looks really simple. You put the whole code in a while loop which ends if the value is 0. I just need an example of what the output …

Member Avatar for insanely_sane
0
260
Member Avatar for insanely_sane

Alright. So I have a Macbook Pro. I also know a bit of c++. I want to know how to draw simple shapes. You know, rectangles, circles and stuff. Like in java (while using console) you can do c.drawRect and stuff? Same way.. is there something or some way to …

Member Avatar for ramox
0
334
Member Avatar for packer01fan

I think you are getting an out of bounds error because of the line [CODE]++draw[ 1+ (randLotto.nextInt(35))];[/CODE] Since the size of the array is 7, the only accepted numbers in the [] brackets range from 0-6 (inclusive). but you are randomizing a number between 1 and 35 which.. well increase …

Member Avatar for packer01fan
0
720
Member Avatar for insanely_sane

Ok so I dont think I have installed ANY compiler for C++ on my Windows Vista system. So I would need info about that as well. Anyhow. Just like java can be run using javac and then java w/e w/e... how do I run my .cpp notepad files via the …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for pdiana

welcome to dani web Putri :) I hope you can find this to be a very friendly place. PS. A little warning. IT GEEKS RULE THIS WEBSITE! :P

Member Avatar for pdiana
0
108
Member Avatar for xdeja

This is my understanding of what you want: If the player tries to remove more than or half of how many ever stones there are left in a pile, it will show an error unless it is the last stone. You will need to first calculate how many stones the …

Member Avatar for Taywin
0
4K
Member Avatar for mwattah

FOR LOOPS They keep executing code for a LIMITED amount of time specified by the user. eg. [CODE=java]for (int i = 0; i < 10; i++) { System.out.println ("hello world"); } [/CODE] This will print Hello world 10 times. it has 4 parts. 1) initializing condition: the 'int i = …

Member Avatar for AuburnMathTutor
0
130
Member Avatar for knickers08

I think you'll have to talk to cell phone service providers to see how they can forward Messages to your website.

Member Avatar for Exelweb
0
103
Member Avatar for SD91

Nice to meet you :) Hopefully you can help me :P seeing that I'm only in 11th grade.

Member Avatar for SD91
0
93
Member Avatar for insanely_sane

Hey, My name's Akhil... I am a grade 11 student in Canada (16 year old). I came to Canada a year ago. Before that I was in Dubai for 10 years. I've been interested in computers since the age of 4. I used to love typing (random stuff of course) …

Member Avatar for invisal
0
187
Member Avatar for insanely_sane

EDIT: This was moved from the Java discussion forum. It seems more appropriate to post it here. This is not exactly a homework assignment. I'm just doing it for fun ^^ Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my …

Member Avatar for insanely_sane
0
207
Member Avatar for insanely_sane

Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my Computers class already, I recently just started making extra stuff for fun. One of things I'm doing is Making a graphical/visual sorting applet. Something like : [url]http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html[/url] I have my code …

0
110

The End.