java ²ð·ÖÓëºÏ²¢×Ö·û´®
ÀýÈ磺һ¸ö×Ö·û´®£º123fsf¶á
¸ÄºóҪΪ£º1%2%3%f%s%f%¶á
´úÂëÈçÏÂ
String a="123fsf¶á";
char[] b=a.toCharArray();//×Ö·û´®²ð·Ö³É×Ö·û
String bb = "";
//×Ö·ûºÏ²¢³É×Ö·û´®
for(int i=0; i<b.length;i++){
if(i == b.length-1){
bb += b[i];
}else{
bb += b[i]+"%";
}
}
System.out.println(bb);
Ïà¹ØÎĵµ£º
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
public class test {
public static void main(String[] args) {
ArrayList<ArrayList<Integer>> list = getArrays(1, 20, 30);
Iterator<ArrayList<Integer>> iter = list.itera ......
package test;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Test {
public static void main(String arg[]) {
String fileName = "E:\\share\\test.txt";
String writeData = "HelloWorld!\r\nnihaoÎÒµÄ ......
±¾ÈËÕýÔÚѧϰJava£¬ÄÇЩ֪ʶµã¶¼Ñ§µÃºÜºÃ£¬µ«Ò»µ©ÒªÎÒÓÃËùѧµÄ֪ʶ×ö¸öÏîÄ¿³öÀ´ÎÒ¾ÍÎÞ´ÓÏÂÊÖ£¬²»ÖªµÀ´ÓÄÄÀï×öÆð²ÅºÃ£¡Ò»·½ÃæµÄÔÒòÊÇÎÒµÄÔĶÁÁ¿Ì«ÉÙÁË£¬¶þÕß¾Ñé²»×㣡ÎÒÕý½¹¼±×ÅÔõô¸Ä±äÎÒÕâÖÖ״̬£¬ËùÒÔÏëÕÒЩ×öÏîÄ¿µÄ½Ì²ÄÀ´×Ôѧ£¬µ«Õæ²»ÖªµÀ¸Ã¿´ÄÄЩ½Ì²ÄºÃ£¬ËùÒÔÔÚ´ËÏò¸÷λÏîÄ¿¸ßÊÖÇë½Ì£¬Çë¸øÎÒһЩ½¨Òé»òÍÆ¼ö¸øÎÒһЩ½Ì ......
javaµÄ°²×°
·½·¨Ò»
´ò¿ªÖÕ¶Ë£¬Ö´ÐÐÒÔÏÂÃüÁ»òʹÓÃAdept/ÐÂÁ¢µÃÈí¼þ¹ÜÀíÆ÷£¬ÔÚÆäÖзֱðËÑË÷"sun-java6-jre"ºÍ"sun-java6-jdk"²¢±ê¼Ç°²×°¡£
sudo apt-get install sun-java6-jre
Èç¹û¿Õ¼ä¸»Ô££¬½¨Òé°²×°Ò»¸öJDK¡£
sudo apt-get install sun-java6-jdk
Ìáʾ£º°²×°¹ý³ÌÖÐÐèÒªÄã»Ø´ðÊÇ·ñͬÒâʹÓÃÐÒ飨ÖÕ¶ËÖкìÀ ......