- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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
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 … | |
Re: 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]. | |
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] … | |
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 … | |
Re: no. Indices always start at 0. ALWAYS. At least thats what I have noticed. | |
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 … | |
Re: [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 … | |
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, … ![]() | |
Re: 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 … | |
Re: 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 … | |
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. … | |
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 … | |
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 … | |
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; … | |
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. … | |
Re: 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 … | |
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 … | |
Re: 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 … | |
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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 = … | |
Re: I think you'll have to talk to cell phone service providers to see how they can forward Messages to your website. | |
Re: Nice to meet you :) Hopefully you can help me :P seeing that I'm only in 11th grade. | |
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) … | |
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 … | |
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 … |
The End.