how to pass a rJava .jnew call multiple parameters?

淺唱寂寞╮ 提交于 2019-12-11 02:28:16

问题


the documentation describes how to pass a single parameter. No worries there. My challenge is trying to pass multiple parameters to java constructors that take them.

For example:

foo <- .jnew("some/java/class/that/takes/two/parameters", ???)

Comma delimiting doesn't work, nor does putting a space between them. How does one do this?


回答1:


This document explains how to work with different constructors. See section "looking up constructors and methods".

Apparently you have to call the new() function instead of / after .jnew().

I'm also still experimenting...



来源:https://stackoverflow.com/questions/30088291/how-to-pass-a-rjava-jnew-call-multiple-parameters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!