Need java help! urget!

~v3n0m~

Member
Aug 28, 2008
6,773
100
0
Hi guys, im in a kinda very very urget situation and I need help to complete a java program. if there are any one whos good in java please leave a post here. Thanks
 

Oyakaa

Banned
Nov 22, 2011
7
3
0
උඹ චීත්ත කෑල්ලක් උනා නම් කට්ටිය පොර කනවා උදව් කරන්න
 

~v3n0m~

Member
Aug 28, 2008
6,773
100
0
machan, i want to create a recursive function to split a string into small chunks of strings and store them in newly created objects. the function has to be re-executed to create new objects and store the splitted strings until a certain condition is met.

but the problem is how to create the code to create new objects automatically as the function is being re-executed ?
 

¤--bACarDi--¤

Well-known member
  • Jan 9, 2009
    12,130
    288
    83
    124.43.xxx.xxx
    whats the delimiter to split string?

    for the new objects,

    class StringStore
    {

    String string;

    public StringStore(String input)
    {
    this.string = input;

    }

    public String getString()
    {
    return this.string;
    }

    }

    public void splitStrings (string)
    {

    new StringStore(string);

    }
     

    ~v3n0m~

    Member
    Aug 28, 2008
    6,773
    100
    0
    whats the delimiter to split string?

    for the new objects,

    class StringStore
    {

    String string;

    public StringStore(String input)
    {
    this.string = input;

    }

    public String getString()
    {
    return this.string;
    }

    }

    public void splitStrings (string)
    {

    new StringStore(string);

    }

    thanks machan, i got it working. :)