No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
can you guys help me with my assignment given to me, my prof. said .. create a java class that will accept four Integers & develop a method that will arrange the accepted integer from highest to lowest. example: if you enter random number like: [B]10 6 7 9[/B] the … |
|
I want to remove all the spaces, carriage returns, and "comments" (the text inside the <>'s) from this document: I tried the regular expression [ICODE]( )|(\n)(|<.*>)[/ICODE], but that removes everything but the [ICODE]-1[/ICODE] at the end. It doesn't do that if I remove the [ICODE]|(<.*>)[/ICODE], but then it doesn't remove … |
|
I can turn on anti-aliasing, but whenever I draw stuff the arguments are still ints, not floats or doubles. How can I change this? |
|
I'm doing active rendering for a game, and I was wondering,,, Does drawing outside a canvas still use just as much CPU? As in, If I draw one rectangle, and then draw another outside the canvas, does it ignore the other rectangle, or waste CPU on it? I want to … |
|
I have an application I'm making... And it has a canvas in it. The problem is, on the y axis, my canvas is offset by ten pixels downward and I can't figure out why. You can see what I'm talking about in the screenshot. Do you know what's wrong? |
|
I have a tree, and I want to find the depth of it. For example for this tree: [CODE]0 root / \ 1 5 1 / \ 2 1 3 | 3 2[/CODE] It should give a depth of 3. [CODE] public int getDepth() { int maxDepth = 0; if(this.hasChildren()) … |