javaÖÐÈçºÎʹÓÃamcharts
×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects.js£¬»¹ÓÐÅäÖÃÎļþ£¬Ò»¸öÊÇÅäÖýçÃæͼÐÎÈçºÎÏÔʾµÄÎļþ,Ò»¸öÊÇÅäÖÃÊý¾ÝµÄÎļþ¡£»¹ÓÐÒ»¸öÐèÒªÉú³ÉµÄ.swf,×îºóÔÚhtmlÀïÏÔʾͼÐΡ££©ÕâЩ¶¼¿ÉÒÔµ½¹Ù·½ÍøÕ¾ÉÏÕÒµ½£¬¶øÇÒÓɾßÌåµÄ˵Ã÷¡£¹Ø¼üÊÇËûµÄÊý¾ÝÅäÖÃÊÇÒªxml ºÍcsv¸ñʽµÄ£¬ÎÒÔõÑù²ÅÄÜ°ÑÈ¡µÃµÄÊý¾Ý·Åµ½ÕâÑùµÄ¸ñʽÀÎÒÊÔ¹ýÈ¡³öÀ´Êý¾Ý°ÑËüת»»³Éxml¸ñʽ£¬µ«ÊÇÓÃJavaÓïÑÔת»»Ì«Âé·³¶øÇÒÎÒת»»Á˺þö¼Ã»Óгɹ¦£¬Å¼¶û¿´µ½ÁËÒ»¸öÍøÒ³ÊÇjspת»»³Éxml¡£ÕâÒ»ÏÂ×ÓÌáÐÑÁËÎÒ£¬ºÎ±ØÈç´Ë·Ñ¾¢ÄØ£¬ÎÒͨ¹ýssh ¼Ü¹¹µÃµ½ÁËÐèÒªµÄÊý¾Ý£¬ÒÔÏÂÊÇÎÒת»»³ÉxmlµÄjspÒ³Ã棺
<%@ page language="java" import="java.util.*"%>
<%@ page contentType="text/xml; charset=utf-8"%>
<jsp:directive.page import="org.web.entity.Stack"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<?xml version="1.0" encoding="UTF-8"?>
<chart>
<axes>
<%
List<Stack> list=(List<Stack>)request.getSession().getAttribute("list");
for(int i=0;i<list.size();i++)
{
Stack s=list.get(i);
%>
<axis xid="<%=i%>"><%=s.getAxis()%></axis>
<%
}
%>
</axes>
<graphs>
<graph gid="1">
<%
for(int n=0;n<list.size();n++)
{
Stack ss=list.get(n);
%>
<value xid="<%=n%>"><%=ss.getShuju()%></value>
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
±¾ÃÕÌâÀûÓÃÁËJava±à³ÌÓïÑÔÖÐÒ»¸öºÜÉÙ±»ÈËÁ˽âµÄÌØÐÔ¡£Ç뿼ÂÇÏÂÃæµÄ³ÌÐò½«»á×öЩʲô£¿
public class BrowserTest {
public static void main(String[] args) {
System.out.print("iexplore:");
http://www.google.com;
System.out.println(":maximize");
}
}
ÕâÊÇÒ»¸öÓеã¹îÒìµÄÎ ......
ÏÂÃæµÄ³ÌÐò½«´òÓ¡Ò»¸öµ¥´Ê£¬ÆäµÚÒ»¸ö×ÖĸÊÇÓÉÒ»¸öËæ»úÊýÉú³ÉÆ÷À´Ñ¡ÔñµÄ¡£ÇëÃèÊö¸Ã³ÌÐòµÄÐÐΪ£º
import java.util.Random;
public class Rhymes {
private static Random rnd = new Random();
public static void main(String[] args) {
StringBuffer word = null;
switch(rnd.nextInt(2)) {
......
ÓëÃÕÌâ26ÖеijÌÐòÒ»Ñù£¬ÏÂÃæµÄ³ÌÐòÒ²°üº¬ÁËÒ»¸ö¼Ç¼ÔÚÖÕֹǰÓжàÉٴεü´úµÄÑ»·¡£ÓëÄǸö³ÌÐò²»Í¬µÄÊÇ£¬Õâ¸ö³ÌÐòʹÓõÄÊÇ×óÒƲÙ×÷·û£¨<<£©¡£ÄãµÄÈÎÎñÕÕ¾ÉÊÇÒªÖ¸³öÕâ¸ö³ÌÐò½«´òӡʲô¡£µ±ÄãÔĶÁÕâ¸ö³ÌÐòʱ£¬Çë¼Çס Java ʹÓõÄÊÇ»ùÓÚ2µÄ²¹ÂëµÄ¶þ½øÖÆËãÊõÔËË㣬Òò´Ë-1ÔÚÈκÎÓзûºÅµÄÕûÊýÀàÐÍÖУ¨byte¡¢short¡¢int»òlong£ ......
ÇëÌṩһ¸ö¶ÔiµÄÉùÃ÷£¬½«ÏÂÃæµÄÑ»·×ª±äΪһ¸öÎÞÏÞÑ»·£º
while (i <= j && j <= i && i != j) {
}
àÞ£¬²»£¬²»ÒªÔÙ¸øÎÒ¿´ÆðÀ´²»¿ÉÄܵÄÑ»·ÁË£¡Èç¹ûi <= j ²¢ÇÒ j <= i£¬i²»Êǿ϶¨µÈÓÚjÂð£¿ÕâÒ»ÊôÐÔ¶ÔʵÊý¿Ï¶¨ÓÐЧ¡£ÊÂʵÉÏ£¬ËüÊÇÈç´ËµØÖØÒª£¬ÒÔÖÁÓÚËüÓÐÕâÑùµÄ¶¨Ò壺ʵÊýÉϵÄ≤¹ØϵÊÇ·´¶Ô³ ......