java - 将 java 函数/方法转换为 json 对象
问题描述
我正在构建一个 java 方法的代码摘要算法,我正在尝试在 json 文件中构建一个数据集以进行训练,如下所示
爪哇代码
public void sum(int a,int b){
/*printing the sum of two number*/
System.out.println(a+b);
}
JSON文件
{"code":"public void sum(int a,int b){System.out.println(a+b);}","comment":"printing the sum of two number"}
解决方案
推荐阅读
- android - React Native Android - 使用本地 gradle
- python - 有效日期时间python
- ruby-on-rails - Rails 5使用来自个人文件夹的image_tag显示图像不起作用
- jenkins - 将参数值从属性文件传递给 Jenkins
- google-cloud-datastore - 投影查询与常规查询
- python - RuntimeError: new_Ad 返回 -1
- amazon-web-services - 如何从 kubernetes pod 中识别主机云提供商?
- python - 永久更改python变量而不使用文件
- wiremock - Wiremock 代理存根问题
- android - 从图库中单击时选择多个图像