- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Nerd
- PC Specs
- x6 3.2ghz HD 5870 16GB gddr3 2TB Win7x64pro
25 Posted Topics
Hi. I have a little problem with my code. I want to cast a complete arrayList to a different type, but java wont let me... Here is a compressed version of what is happening: [CODE] //The interface I use. public abstract interface Drawable{ //some methods } //A class that is … | |
Hi. I am trying to make a script that will print out numbers in rapid succession after working a little with them. The script needs to write them in the console one after another (next line). The code works just fine when I do not utilize multi threading, but when … | |
Hi! I am looking for a laptop with DirectX 11. It needs to be nVidia graphics, and preferably light. Price is not really an issue as long as these 2 criteria is fulfilled. I have looked at the Vaio Z, but they only got dx10. Other than that, they are … | |
Re: If I were you I would go to a real career advisor. I know they exist in my contry, hopefully you can find one in yours:) | |
Hi! I am working on an program that basicly needs a large list. The program works fine untill i comletely fill up the "List<Object>" type. And no, it is not due to lack of ram. The program tries to add more than System.Int32.MaxValue ammount of objects. I have thought about … | |
Re: "SELECT (particularField1,particularField2) FROM database1 WHERE 'certain criteria';" | |
Re: "where row = '4'"? It is hard to interpret your code. Sounds like you have a sql-issue, not a C# issue. | |
I'm developing a web-program that needs to check a whole bounch of potentially faulty http-links. Now, I have found a way of doing this, the only problem is that it relies on try-catch, not in it self horribly bad, but the time it takes to check the links is extremely … | |
Hi. I am working on a multi threaded program (game renderer). What I want to do is to loop through my threads and get a boolean value that tells me if the thread is done rendering or not. If all the threads is done, I want the code to go … | |
Re: I believe that would be correct. Since B get everything from A, and then changes booleanA. So when example gets everything from B it will have the values: False, true, true. | |
Re: Please use CODE-tags to post code. It makes it a lot easier to read! Also, try to write better English. It is hard to understand what you write. | |
Hi. I got a noobish question: Is it possible to return an array "directly", so, something like this. [CODE] public int[] getArray(){ return int[]{this.intA, this.intB}; } [/CODE] I know I can just make the array first. But does this not use unnecessary cpu time and memory? This is going to … | |
Re: Then write #*7; not "# to the power of 7". This is basic math. Consider learning that before Java :) | |
Re: "while (validInput == false)", it would be more esthetically pleasing to write "while(!validInput)". [CODE] public static float calculateInterest( float mortgage, float interest, int period ) { // Post: float intRate = interest / 100; return mortgage * intRate * period; } [/CODE] This can be made more efficient by writing: … | |
Re: Can't you just flip the array when it is sorted? Sure, it is not optimized, but it works. | |
Hi, I'm working on a game for a homework assignment. We are a group of 4 and basicly got the game running now, but we got issues with the rendering/drawing. I use BufferStrategy to get double buffering, and i have a custom draw-loop in a canvas. What this does is … | |
Hi, I'm trying to set a double-value, but somehow it does not take my statements. This is what I got: [CODE] public double getDouble() { return aDoubleValue; } public double getAnothertDouble() { return aDoubleValue2; } public void myMethod(MagicObject a) /* Some magic */ //Here lies the problem: (FX is a … | |
Re: Please give us some code. It is a lot easier then. | |
Re: Here is what you do: get all your integers into a int array (like this: int[] intArray = new int[count]; Make sure to count your integers first (run trough the file and count them)). Ok, so next you want to use something that is called modulo. The operator you use … | |
Hi. Im working on a text-based "game" that uses strings to generate maps. So I need to split these strings into bits that i can work with, but somehow the .split method kills the white space in my string. How can I get around this? Of course I can force … | |
Re: The problem might be that there is 11 digits in you value. Regular integer values only takes 10, so you might get a memory loop or whatever it is called where the value gets to high, so it starts at the bottom and works it was up from -2,147,483,648, or … | |
Hi. I'm working on a encryption thing. For it to run properly i need jsp to be able to handle big integer numbers (10^15 and higher). The long variable gets me to about 10^9, but that is not enough. I cant seem to find a way to force jsp to … | |
I am trying to make a cookie that should contain a number value. It all work fine, unless the form that sends the info to my receiver page sends and empty string. Then something strange happens. It does not seem to be empty, so my error checker does not detect … |
The End.