⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 helloimpl.java

📁 一个java写的加密算法
💻 JAVA
字号:
/* * Copyright 2004-2005 Sun Microsystems, Inc.  All rights reserved. * Use is subject to license terms. */package samples.webservices.jaxrpc.simplebean;import java.math.BigDecimal;public class HelloImpl implements HelloIF {    public String sayHello(String s) {        String message = "Hello ";        return message + s;    }    public String[] reverse(String[] words) {        String[] result = new String[words.length];        int r = 0;        for (int w = words.length - 1; w >= 0; w--) {            result[r] = words[w];            r++;        }        return result;    }    public BigDecimal calculateInterest(SimpleAccountBean simpleAccount) {        BigDecimal rate = new BigDecimal("0.05");        BigDecimal factor = rate.add(new BigDecimal("1.00"));        BigDecimal newBalance = simpleAccount.getBalance().multiply(factor);        return newBalance;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -