Selasa, 05 Juni 2012

Program java permainan ular

import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.MouseEvent;import java.awt.event.MouseListener;import java.util.Random;import java.util.ArrayList;public class Snake extends JFrame implements ActionListener {    private static final long serialVersionUID...

Program java Kalender

import java.util.*;public class yearCalendar    {        public static void yearCalendar(int year)            {                GregorianCalendar a = new GregorianCalendar();               ...

Java Binary Search Algorithm

/* Snippet: Binary Search * Author: SPlutard * *Description: An efficient method for searching SORTED arrays. Returns the number if found, otherwise returns -1. */public static int binarySearch(int[] list, int listLength, int searchItem) {    int first=0;    int last = listLength - 1;   ...

Program java vectors

import java.util.Vector; //Needed for the Vector itself.import java.util.Scanner; //Needed for console input.class Main extends Thread { //The extension/inheritance is only for the 3.5 second waits I've placed, not required for Vectors.    public static void main(String[] args) throws InterruptedException { //The throw is only for the...

Program java Producer/Consumer

package prodcongui;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class GUI extends JFrame implements ActionListener{  private JButton start;  private JPanel button_panel, prod_panel, con_panel;  private JLabel prod=new JLabel("Producer is not producing.");  private JLabel con=new JLabel("Consumer is not...

Program java kalkulator sederhana

import java.util.Scanner;public class SimpleCalc {    public static void main(String args[]) {            double a, b, c;            Scanner scn = new Scanner(System.in);        System.out.println("\n1. Add");   ...
resep donat empuk ala dunkin donut resep kue cubit coklat enak dan sederhana resep donat kentang empuk lembut dan enak resep es krim goreng coklat kriuk mudah dan sederhana resep es krim coklat lembut resep bolu karamel panggang sarang semut

Copyright © 2025 Deja Area | Powered by Blogger

Design by Anders Noren | Blogger Theme by NewBloggerThemes.com | BTheme.net      Up ↑