java
文章平均质量分 70
callmedhh
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java 中用rmi实现helloWorld
直接上代码server包的类列表HelloImplHelloLLMainSclient包的类列表HelloWorldMainCpackage server;import java.rmi.Remote;import java.rmi.RemoteException;public interface HelloImpl extends Remote{ pu原创 2012-12-23 02:18:23 · 906 阅读 · 1 评论 -
使用非递归与递归来判断回文
非递归方法//回文public class Palindromes { public static boolean isPalindomes(char []a){ int flag = 0; char [] b = dealString(a); for (int i = 0; i < b.length; i++) { if (b[i]!=b[b.length-i-1])原创 2013-01-08 00:37:34 · 1933 阅读 · 0 评论 -
计算一个数二进制中1的个数
Write a recursive method that returns the number of 1’s in the binary representation of N. Use the fact that is equal to the number of 1’s in therepresentation of N/2, plus 1, if N is odd.根据要求可以知道题目原创 2013-01-07 23:59:17 · 1093 阅读 · 1 评论
分享