RMI 是java语言的一个RPC框架,本文给出基础例子如下: 1.实现接口: public interface ICalc extends Remote { public int add(int param1, int param2) throws java.rmi.RemoteException; } 2.服务端实现该接口: public class CalcImpl extends UnicastRemoteObject implements ICalc { protected CalcI
1.新建Java测试类,导出Jar包,放在kettle目录中的libext文件中 package test; public class Test{ public static final String getMyName(String name){ return name+"12345"; } } 2.抽数据--经过java处理--输出文件到桌面 import test.Test; public boolean processRow(StepMetaInterface smi, Ste
public static void main(String[] args) { Student stu1 = new Student(); stu1.setId(1); stu1.setName("张三"); // Class c = Student.class.getClass(); try { Class c = stu1.getClass(); Field f[] = c.getDeclaredFields(); System.out.println("字段数组大小:
import java.util.regex.Matcher;import java.util.regex.Pattern; public class Main { public static void main(String[] args) throws Exception { String str = "10.2368686986859686"; Pattern p = Pattern.compile("[\\d]*[\\.][\\d]{2}"); // 小数保
Through its implementation, this project will familiarize you with the creation and execution of threads, and with the use of the Thread class methods. In order to synchronize the threads you will have to use (when necessary), run( ), start( ), curre
简单数据类型int,跟Integer在lambda中的使用还不一样,有区别 code: package com.qhong.lambda.testDemo; import java.util.Arrays; import java.util.Comparator; import java.util.List; /** * Created by qhong on 2018/5/23 9:30 **/ public class baseDemo { public static void main(S