Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 10 Oct 2011 06:31 PM |
No, C++ is better than java. return int[3] a = {1,2,3} |
|
|
| Report Abuse |
|
|
Samacado
|
  |
| Joined: 16 Feb 2008 |
| Total Posts: 25119 |
|
| |
|
Samacado
|
  |
| Joined: 16 Feb 2008 |
| Total Posts: 25119 |
|
|
| 10 Oct 2011 06:36 PM |
@booing (except there is no value stored in a[3]) |
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 10 Oct 2011 06:55 PM |
...Scamando, Do you know what C is? |
|
|
| Report Abuse |
|
|
Aaaboy97
|
  |
| Joined: 05 Apr 2009 |
| Total Posts: 6612 |
|
|
| 10 Oct 2011 06:55 PM |
new double[length]
I think that's how it works. |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 10 Oct 2011 06:55 PM |
inb4LocalChum/Java
~ I'm a unicorn ~ |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 10 Oct 2011 07:13 PM |
double list[] = new double[100];
~ I'm a unicorn ~ |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2011 07:26 PM |
new int[] {0,0,0};
new double[] {0.0, 0.0, 0.0};
~+[Praise the holy god of Java coffee beans!]+~ |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
| |
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
| |
|
|
| 10 Oct 2011 07:33 PM |
use jarva
~+[Praise the holy god of Java coffee beans!]+~ |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 10 Oct 2011 08:02 PM |
@Oysi Eh, I don't get to contribute often. :/
~+[Praise the holy god of Java coffee beans!]+~ |
|
|
| Report Abuse |
|
|
bombpaw
|
  |
| Joined: 15 Mar 2009 |
| Total Posts: 3484 |
|
| |
|
bombpaw
|
  |
| Joined: 15 Mar 2009 |
| Total Posts: 3484 |
|
|
| 10 Oct 2011 09:00 PM |
Whoops
int[] a = new int[Length] |
|
|
| Report Abuse |
|
|
Samacado
|
  |
| Joined: 16 Feb 2008 |
| Total Posts: 25119 |
|
|
| 10 Oct 2011 10:15 PM |
@booing I literally woke up from a nap, opened my laptop, posted on this thread, and fell back asleep. I am not sure what happened.
Also I don't know what C is. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
myrco1001
|
  |
| Joined: 17 Sep 2010 |
| Total Posts: 2574 |
|
|
| 11 Oct 2011 05:07 AM |
Wasn't it new int[] a = {5, 6};
-♂ MYRCO♂- Scripter, music obsessed, atheist and dutch. What else? |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 11 Oct 2011 08:06 AM |
Why return an array, when you could just return a new vector?
~+[Praise the holy god of Java coffee beans!]+~ |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|