Skip to content

Conversation

badaljangid
Copy link
Owner

Assignment 1 — Task 1 (append)

Files changed

  • mypackage/MyString.java — Implemented the append(String newString) method using manual char array logic.
  • Main.java — Added test code for the append() method.

How to test

  1. Compile:
    javac mypackage\MyString.java Main.java
  2. Run:
    java Main
  3. Example Input:
    Enter a string: Hello
    Enter text to append: World
  4. Expected Output:
    Result: HelloWorld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant