我是想读一个数,转换为字符,然后添加这个字符到当前字符串的开头:for(int i =0; ....)
{
BigInteger temp = greatdecry[i].remainder(BigInteger.valueOf(128));
String tempstring = String.valueOf((char)temp.longValue());
iString = iString.insert(0, tempstring);
}
但是输出不对,有的字符时对的,有的不对...
{
BigInteger temp = greatdecry[i].remainder(BigInteger.valueOf(128));
String tempstring = String.valueOf((char)temp.longValue());
iString = iString.insert(0, tempstring);
}
但是输出不对,有的字符时对的,有的不对...
解决方案 »
- 我从官网下载SDK,准备配置android开发环境时,奇怪的事情发生了。看全文
- S2SH进行List查询 查出来一直是0跳
- java.net.SocketException: Connection reset by peer: socket write error
- 关于struts2拦截器的疑问
- JAVA客户端中如何通过SOAPHeader发送验证信息给WS?
- 请教SQL问题!
- 求教关于C3P0数据源连接的问题
- 我安装了tomcat,但是不能访问欢迎页面,我应该怎样检查设置??
- [STRUTS] 为什么点击刷新按钮F5数据会多次提交?
- struts如何组织各种control,特别是control多的时候
- 采用JAVA SSH框架编程的人,必须、绝对、应该知道的事情!!
- swftools 转换报错 Error: Couldn't create a font for 'QXRUDT+SimSun'
import javax.swing.JOptionPane;
public class test2
{
public static void main(String[] args)
{
String abc="";
String a="";
while(a!="stop"){
a=JOptionPane.showInputDialog(null, "请输入数字");
abc=a+abc;
JOptionPane.showMessageDialog(null, "当前的值是"+abc);
}
}
}
Just because I am paranoid it doesn't mean that nobody
is really out there trying to kill me. (Woody Allen) 编码,然后解码:
输出:
Just bgRBhN^J%8\Z7+
ranoid"XU?iQ mONqW
an thavOb=iU{<^)
ally owcgC_BCFC
g to kk[MH^W}(Fh0S"
Allen+j|Zy)X'%-G3$