Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Char[] array insert (https://www.askmehelpdesk.com/showthread.php?t=617854)

  • Dec 7, 2011, 08:51 PM
    SEV637
    Char[] array insert
    Hey I was just wondering how I would solve this, I have tried many options but none of them seem to work, I have commented in what I actually need done, would someone please be able to help me?


    Public class StringImproved
    {
    char[] content;

    public boolean insert(java.lang.String insertionString, int index)
    {
    return false;
    /**
    * Insert the nominated string at the index.
    * @param insertionString The string to insert into StringImproved object.
    * @param index The position to insert at.
    * @return True if successful false otherwise.
    */
    }
    }

    Cheers :)

  • All times are GMT -7. The time now is 03:49 PM.