Professional Documents
Culture Documents
Bu Juju 2
Bu Juju 2
CONTOH
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication15;
/**
*
* @author Lenovo
*/
public class JavaApplication15 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int[] dataAwal = new int[]{9, 7, 5, 8, 3, 4, 1};
int cari = 10;
String HasilPencarian = SequentialSearching(cari, dataAwal);
System.out.println(HasilPencarian);
}
sorting
3. bubble sort