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

📄 functions.java

📁 一个java写的加密算法
💻 JAVA
字号:
/* * Copyright 2004-2005 Sun Microsystems, Inc.  All rights reserved. * Use is subject to license terms. */package samples.webapps.simple.jsp2.examples.el;import java.util.*;/** * Defines the functions for the jsp2 example tag library. *  * <p>Each function is defined as a static method.</p> */public class Functions {    public static String reverse( String text ) {        return new StringBuffer( text ).reverse().toString();    }    public static int numVowels( String text ) {        String vowels = "aeiouAEIOU";	int result = 0;        for( int i = 0; i < text.length(); i++ ) {	    if( vowels.indexOf( text.charAt( i ) ) != -1 ) {	        result++;	    }	}	return result;    }    public static String caps( String text ) {        return text.toUpperCase();    }}

⌨️ 快捷键说明

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