- 博客(6)
- 收藏
- 关注
原创 java 二进制转十进制
import java.util.Scanner;public class Main{ static Scanner sc=new Scanner(System.in); public static void main(String args[]){ String str; while(sc.hasNext()){ str=sc
2016-10-19 20:56:40
667
原创 hdu2051 Bitset (十进制转化为二进制) java
Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000)Input For each case there is a postive number n on base ten, end of file.Output For each case output
2016-10-14 00:37:22
230
原创 十进制转化成十六进制(数据结构java作业)
在ShiYan6.java的main方法中添加相应的代码,实现十进制数向十六进制数的转换public class ShiYan6 { public static void main(String args[ ]) { LinkedStack<Integer> stack = new LinkedStack<Integer>(); int N=235;
2016-10-12 23:45:22
1646
原创 hdu2030汉字统计 java
Problem Description 统计给定文本文件中汉字的个数。Input 输入文件首先包含一个整数n,表示测试实例的个数,然后是n段文本。Output 对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。[Hint:]从汉字机内码的特点考虑~Sample Input 2 WaHaHa! WaHaHa! 今年过节不说话要说只说普通话WaHaHa! WaHaHa! 马上就
2016-10-11 23:42:15
197
转载 Java判断字符是否是汉字、字符串中是否有中文。
Java判断字符是否是汉字,界限【 19968–171941 】 1. 判断字符是否是中文 /** * 输入的字符是否是汉字 * @param a char * @return boolean */ public static boolean isChinese(char a) { int v = (int)a; return (v >=19968 && v <=
2016-10-11 23:31:24
525
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人