Jump to content

Check out our Community Blogs


Member Since 06 Dec 2006
Offline Last Active Dec 13 2006 05:12 AM

Topics I've Started

[RegExp] Financial value yes/no

12 December 2006 - 01:33 AM


I'm trying to determine of a given value is a financial one.

It should match:
- can be positive or negative (ie. 1234.56€ or -1234.56€)
- has minimum 2 digits after the . (ie 1234.5€ should return false)
- whitespaces should be ignored so the user can type 1234.56 € and it still returns true.

I came up with this:

but I'm having some problems with the whitespaces. Can someone push me in the right direction please? Or maybe it can made better? It's tested with Regular Expression Library.

Looking for a song

10 December 2006 - 11:04 AM


I just ran into a sweet trippy movie and I'm wondering if anyone knows the song that is used...?


Free Image Backup

08 December 2006 - 07:33 AM


Why dont you guys make a HD image?
DriveImageXML, a free tool.


Moving elements in an array

06 December 2006 - 11:48 AM


I'm currently studying Java on my own and I wanted to try to "rotate" elements in an array.
So the start would be:
But if I enter "rotate 1" it should give me

But I keep running into ArrayIndexOutOfBounds errors if I check my pseudocode in Java.

I don't want some code, just a hint or two would be very much appreciated:)

This is what I have already:
for(t=DIM-1 ; t > rot ; t--)
     if(t < DIM)
        k = table[t];
        table[t-1] = table[t];
        table[t+1]= k;
        k = table[t];
        table[t-1] = table[t-DIM];
        table[t+1] = k;

New guy in town

06 December 2006 - 11:36 AM


Searching the internet about moving elements in an array I bumped on your forum :)
I'm a 29 year old guy getting more and more interested in programming. Just learning Java with BlueJ.
Other hobbies are: getting pierced, tats, music

If you got any questions...fire away:)


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download