Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
java.rar
Upload User: dgrongshen
Upload Date: 2022-08-07
Package size: 3k
Downloads: 3
Category:
Mathimatics-Numerical algorithms
Development Platform:
Java
Detail: public class BubbleSort{
static String printArray(int[] a){
String result=""
for(int i=0 i<a.length i++) result+=a[i]+" "
return result
}
static int[] bubbleSort(int[] a){
int t
for(int i=0 i<a.length i++)
{
for(int j=0 j<a.length-i-1 j++)
//升序排列用大于,降序排列用小于,此处为降序排列。
if(a[j]<a[j+1])
{t=a[j] a[j]=a[j+1] a[j+1]=t }
}
return a
}
public static void main(String args[])
{
int a[]={25,36,47,32,21,16}
System.out.println("排序前的数组\n"+printArray(a))
a=bubbleSort(a)
System.out.println("排序后的数组\n"+printArray(a))
}
}
This package does not include any code with text format which can display in web page, please download the package.
-
- Bayer.rarBased on Bayer color filter array interpolation algorithm, the original document ...
- BCMATH.rar//" C++ language with common mathematical algorithm (Revised Edition)" ...
- java.rarpublic class BubbleSort{ static String printArray(int[] a){ String result="" ...
- asdf.rarPrograms written using C language, multi-dimensional arrays by column sum, the r ...
- TRIAN_REPLACE.rarThe train cars were sent to n n stations stations by 1 ~ n the order number, the ...
- lx.rarbag
- 1.rar1 pair of ACM International Collegiate Programming Contest Question and resoluti ...
- kalman_filter.rarkalman
- 895.rarn n-Savage problem missionary cross the river code, files output
- acm1.rarDescription It is said that 90 of frosh expect to be above average in their cl ...
-
- travelingsalesmanproblemsourcecode.Rartraveling salesman problem source code traveling salesman problem
- leda.tar.gzhigh efficient data structure and algorithm, including a variety of algorithms a ...
- bplus.zip A simple easy to use B tree algorithm realizes
- SVM--SVM.rarsupport vector machines for the classification, with the training set and test s ...
- hash.zip The Hasche table realizes
- work.rarThis procedure is based on the subject of maneuvering target tracking algorithm ...
- btree2.zip B-Tree algorithm realizes which with C
- Ccommonlyusedalgorithms06matrixeigenvalueathe code is "commonly used computer numerical algorithms and procedures C versio ...
- diancichangyudiancibo.rar??? ramming home ?????? ?? grams ?????
- VIS.zipThis is a source about motion object tracking, including foreground modeling,obj ...