You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/core-concepts/android-runtime/marshalling/java-to-js.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -147,11 +147,11 @@ var objectArr = Array.create(java.lang.Object, 10);
147
147
```
148
148
149
149
### Array of Primitive Types
150
-
The automatic marshalling works only for cases with arrays of objects. In cases where you have a method that takes an array of primitive types, we need to convert as follows:
150
+
The automatic marshalling works only for cases with arrays of objects. In cases where you have a method that takes an array of primitive types, you need to convert it as follows:
151
151
```Java
152
152
publicstaticvoid myMethod(int[] someParam)
153
153
```
154
-
Then we need to invoke it as follows:
154
+
Then yoy need to invoke it as follows:
155
155
```JavaScript
156
156
let arr =Array.create("int", 3);
157
157
arr[0] =1;
@@ -167,7 +167,7 @@ The above scenario gets more tricky with two-dimensional arrays. Consider a Java
0 commit comments