Java array help (newbie)

From: syncz (edwardchoi08_at_hotmail.com)
Date: 06/30/04

  • Next message: David Zellhoefer: "Re: how to set up a simple plugin mechanism"
    Date: 29 Jun 2004 23:12:33 -0700
    
    

    Hi all,

    I need some help here regarding array. I'll like to add a variable to
    an array until the user choose to stop adding, then it will print the
    result out. how do i go along doing that? Some source code examples
    will be helpful since i'm new to java. Thanks!

    something like....
    ##################
    for(;;)
    double barbar[] = new double[8];
    int arr = 0;
    Enter num:
    <store num in foo>
    barbar[arr] = foo;
    arr++
    blah blah.
    ##################


  • Next message: David Zellhoefer: "Re: how to set up a simple plugin mechanism"

    Relevant Pages

    • Re: Serialization with XmlSerializer: how to set the XML root node to something different from <
      ... Methods can return instances of Foo. ... If your method returns an array, then the attributes that apply are those on ... You are asking specifically about xml serialization, ...
      (microsoft.public.dotnet.xml)
    • Re: Static _Bool initialization
      ... The "&" operator will never yield a null pointer if its operand is ... If foo is an array of more than 42 elements, ... If the compiler (which can ...
      (comp.std.c)
    • Re: pointer usage in c
      ... > char *foo; ... I think my teacher wrong. ... Your array b is local to the function foo. ...
      (comp.lang.c)
    • Re: Returning a string array from a function
      ... I'd like to return an string array from a function so ... E.g. "total" only gets found out inside foo. ... to avoid storing past the end of the sptr[] array if `total' ...
      (comp.lang.c)
    • multi-dimensional arrays
      ... License Status: blah blah ... Depending on the data in License Status, I either want to print the ... I split each line into a two part array. ... colon, and the data after the colon. ...
      (comp.lang.awk)