- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
13 Posted Topics
Not an ArrayList. An Array. For some reason, my teacher (or rather, the lesson plan we are using) requires that we make a program that takes an array of integers and removes all the zeroes. So far I have: [CODE] public void remove(int index) { for(int i = index; i … | |
Re: They format output. s formats strings, d formats integers, and f formats double precision floating point data (double). Basically you can use them to trim a string down so it only displays a set amount of characters ("%.2s", for two characters only as an example), rounds to a certain amount … | |
Why do they release their own version? Also why don't they allow Java on their portable devices? I'm looking for their specific reason, something besides "Apple are Nazis". | |
This probably isn't the best place for this sort of thread, but it's the most popular board on the web development forums and I suppose it's semi-related to PHP so... I've made a few small scale desktop apps with C# and Java (including a few games through XNA) but now … | |
[CODE] public class ArrayHolder { int[,] array; ReceivesArray r; public ArrayHolder() { array = new int[50, 50]; // array gets filled //... r = new ReceivesArray(array); } } public class ReceivesArray { int[,] receivedArray; public ReceivesArray(int[,] theArray) { receivedArray = theArray; } } [/CODE] I'm doing something like the example … | |
I usually make enumerations separate from classes, but when my CS teacher was teaching us about enums, he put it inside the class, and when it came time to set a variable of the enum outside of the class, he told us to just pass a string to the class … | |
I know that it's possible to "force" a class to have a certain function through interfaces, but is there any way to "force" a class to have and assign certain variables? Also, is there way to "force" a class to assign inherited variables? | |
I've been learning Java here and there for the past few years from high school classes, but I don't know if I have enough knowledge of programming to actually make something useful. What do you think someone should know to be considered a beginning programmer? I'm just trying to gauge … | |
I am making Tetris in Java. I have the Grid as its own class (extends JPanel) a menu bar (also extends JPanel) and a class for the main game window (extends JFrame). I created instances of the Grid and the menu bar inside the main game window class and added … | |
I have to have Tetris made in Java in 3-5 weeks, but I haven't started, and have no idea how to start. I'm not asking anyone to make the game for me, I just need a general idea of what to do to get things rolling. Firstly, what classes should … | |
I've taken a few classes in high school that used java (including AP Computer Science A/AB) and have a grasps on the basics of the language. However, I know nothing on making an actual application, since most of the projects we made in class were simple little things; their main … | |
1. I'd like to become at least competent with C++ (good enough to work on large scale projects or even get a job as a C++ programmer), how long do you think it will take? I have some experience with java, and am learning with the PDF version of [URL="http://www.amazon.com/Beginners-Guide-Second-Guides-McGraw-Hill/dp/0072232153"]this … |
The End.