Jump to content


Check out our Community Blogs

ahwoo

Member Since 03 Sep 2012
Offline Last Active Oct 10 2012 02:44 PM
-----

Posts I've Made

In Topic: Array accept only positive values

10 October 2012 - 02:32 AM

Thanks for the help guys,
stuck on the next part of the question which requires me to
reverse and output the int array
got this
for (int i = numCount - 1; i >= 0; i--)
System.out.println(i)

However when I terminate it doesn't reverse it properly

EDIT: Solved

In Topic: Array accept only positive values

10 October 2012 - 01:45 AM

Thanks for the help so far!!!
I'm trying to add the termination to the loop
inside the while loop
however im getting this error:

else if (num = 0) {
break;
}
Type mismatch: cannot convert from int to boolean

yeah trying to add that but it won't let me

In Topic: Array accept only positive values

10 October 2012 - 01:22 AM

You need to check the entered number if it's negative, then don't accept it and let the user add a new number. if it's 0, terminate.

is it limited to 5 numbers, or is it just your test?


Yep limited to 5 numbers,
and for the check do I put it after the first while loop or before? and then nest the while loop,
yeah im also not sure where to add the check if num = 0, at the beginning of the loop
something like
if (num < 0)

In Topic: SQL Help

18 September 2012 - 04:14 AM

Yeah I tried

In Topic: SQL Help

18 September 2012 - 04:04 AM

Hi,
I have a date function in the format
06/APR/96, I've been able to convert it to what I want which is to_char(sg_start, 'DD-Mon') but now i would like to convert it convert it to a date using to date and then select the earliest date

Any help would be appreciate

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