diff --git a/ballerina/Package.md b/ballerina/Package.md deleted file mode 100644 index da0bdc8..0000000 --- a/ballerina/Package.md +++ /dev/null @@ -1,43 +0,0 @@ -## Package overview - -This package provides APIs to create new Java array instances, get elements from arrays, set elements, etc. - -#### Create a Java array instance -```ballerina -handle stringClass = check java:getClass("java.lang.String"); -handle StrArray = arrays:newInstance(stringClass, 4); -``` - -#### Get an element from a Java array -```ballerina -handle firstWord = arrays:get(words, 0); -``` - -#### Replace an element in a Java array -```ballerina -arrays:set(strArray, 0, java:fromString("Ballerina")); -``` - -#### Get Java array length -```ballerina -int length = arrays:getLength(array); -``` - -#### Get a Ballerina array from a Java array -```ballerina -int[] array = check arrays:fromHandle(arrayHandle, "int"); -``` - -#### Get a Java array from a Ballerina array -```ballerina -handle handleValue = check arrays:toHandle(bArray, "char"); -``` - -## Report issues - -To report bugs, request new features, start new discussions, view project boards, etc., go to the Ballerina standard library parent repository. - -## Useful links - -- Chat live with us via our Discord serverl. -- Post all technical questions on Stack Overflow with the #ballerina tag. diff --git a/ballerina/Module.md b/ballerina/README.md similarity index 100% rename from ballerina/Module.md rename to ballerina/README.md