JavaÖÐStringµÄÓ÷¨×ܽá
¹¹Ôì·½·¨£º
String()
³õʼ»¯Ò»¸öд´½¨µÄ String ¶ÔÏó£¬Ëü±íʾһ¸ö¿Õ×Ö·ûÐòÁС£
String(byte[] bytes)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃƽ̨µÄĬÈÏ×Ö·û¼¯½âÂë×Ö½ÚµÄÖ¸¶¨Êý×é¡£
String(byte[] bytes, int offset, int length)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃÖ¸¶¨µÄ×Ö·û¼¯½âÂë×Ö½ÚµÄÖ¸¶¨×ÓÊý×é¡£
String(byte[] bytes, int offset, int length, String charsetName)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃÖ¸¶¨µÄ×Ö·û¼¯½âÂë×Ö½ÚµÄÖ¸¶¨×ÓÊý×é¡£
String(byte[] bytes, String charsetName)
¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃÖ¸¶¨µÄ×Ö·û¼¯½âÂëÖ¸¶¨µÄ×Ö½ÚÊý×é¡£
String(char[] value)
·ÖÅäÒ»¸öÐ嵀 String£¬Ëü±íʾµ±Ç°×Ö·ûÊý×é²ÎÊýÖаüº¬µÄ×Ö·ûÐòÁС£
String(char[] value, int offset, int count)
·ÖÅäÒ»¸öÐ嵀 String£¬Ëü°üº¬À´×Ô¸Ã×Ö·ûÊý×é²ÎÊýµÄÒ»¸ö×ÓÊý×éµÄ×Ö·û¡£
String(int[] codePoints, int offset, int count)
·ÖÅäÒ»¸öÐ嵀 String£¬Ëü°üº¬¸Ã Unicode ´úÂëµãÊý×é²ÎÊýµÄÒ»¸ö×ÓÊý×éµÄ×Ö·û¡£
String(String original)
³õʼ»¯Ò»¸öд´½¨µÄ String ¶ÔÏ󣬱íʾһ¸öÓë¸Ã²ÎÊýÏàͬµÄ×Ö·ûÐòÁУ»»»¾ä»°Ëµ£¬Ð´´½¨µÄ×Ö·û´®ÊǸòÎÊý×Ö·û´®µÄÒ»¸ö¸±±¾¡£
String(StringBuffer buffer)
·ÖÅäÒ»¸öеÄ×Ö·û´®£¬Ëü°üº¬µ±Ç°°üº¬ÔÚ×Ö·û´®»º³åÇø²ÎÊýÖеÄ×Ö·ûÐòÁС£
String(StringBuilder builder)
·ÖÅäÒ»¸öеÄ×Ö·û´®£¬Ëü°üº¬µ±Ç°°üº¬ÔÚ×Ö·û´®Éú³ÉÆ÷²ÎÊýÖеÄ×Ö·ûÐòÁÐ
·½·¨×ܽ᣺
char charAt(int index)
·µ»ØÖ¸¶¨Ë÷Òý´¦µÄ char Öµ¡£
int codePointAt(int index)
&nbs
Ïà¹ØÎĵµ£º
¹ØÓÚJavaÕ»Óë¶ÑµÄ˼¿¼
1. Õ»(stack)Óë¶Ñ(heap)¶¼ÊÇJavaÓÃÀ´ÔÚRamÖдæ·ÅÊý¾ÝµÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯¹ÜÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£
¡¡¡¡2. Õ»µÄÓÅÊÆÊÇ£¬´æÈ¡ËٶȱȶÑÒª¿ì£¬½ö´ÎÓÚÖ±½ÓλÓÚCPUÖеļĴæÆ÷¡£µ«È±µãÊÇ£¬´æÔÚÕ»ÖеÄÊý¾Ý´óСÓëÉú´æÆÚ±ØÐëÊÇÈ·¶¨µÄ£¬È±·¦Áé»îÐÔ¡£ÁíÍ⣬ջÊý¾Ý¿ÉÒÔ¹²Ïí£¬Ïê¼ûµÚ3µ ......
1£® »ù±¾¿â
cxf-2.2.4.jar
XmlSchema-1.4.5.jar
Wsdl4j-1.6.2.java
2£® ÔÚ.NETÖбàд·þÎñ£¬Ä¬ÈϲÎÊý¼´¿É£¬È磺
namespace TestService2Java
{
[WebService(Namespace = "http://temp2java.org/")] //½ö´Ë´¦ÉÔ¼ÓÐ޸ģ¬²»¸ÄÒ²¿É
[WebServiceBin ......
1£¬Java3D ×÷Ϊsun¹«Ë¾½ÏÔçÍƳöµÄÒ»Ïî3d¼¼Êõ£¬ÊÇÒ»Öָ߶ȷâ×°µÄapi£¬¹¹½¨ÔÚopenglºÍdirect3dÖ®ÉÏ£¬¿ÉÒÔ˵ÊÇ×îÓÐÃûµÄjavaµÄ3d¼¼Êõ¡£ÓÉÓÚÖÖÖÖÔÒò£¨apiÉè¼Æ£¬ÃæÏòµÄÓû§²»Ã÷È·£©£¬java3dһֱûÓа취Á÷ÐУ¬²»¾ÃÇ°java3dµÄÍŶÓÐû²¼ÔÝÍ£¶Ôjava3dй¦ÄܵĿª·¢£¬×ª¶øΪJavaFX¿ª·¢3d äÖȾÒýÇ档ͬʱsunµÄÁíÒ»¸öÏîÄ¿ project wonder ......
×ܹ²Á½¸öÎļþTaxTest.javaÓëTax.java
---------------------------------------------------------------------------------------
TaxTest.java
===========================================
import javax.swing.JOptionPane;
public class TestTax{
public static void main(String[] args){
String yea ......
public class Test {
public static void main(String args[]) {
int i;
int j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= i; j++) {
if (j * i <= 9)
System.out.print(j ......