- 博客(11)
- 资源 (2)
- 收藏
- 关注
原创 Study Notes_Algorithms_online course wee
the union find problem/*two classic algorithms: Quick find and Quick unionSteps to develop a usable algorithmmodel the problemfind an algorithm to solve itfast enou
2014-02-06 13:19:57 626
原创 【教程1】Java制作国际象棋小游戏-01
Java 制作国际象棋小游戏-01 菜鸟学了几天Java之后手痒痒了,所以开始谋划写个小游戏什么的练练手,刚好一门面向对象的课程布置了一个project,不限内容不限语言,所以菜鸟的小组决定做个国际象棋小游戏。 菜鸟的队长大人野心很大,决定做一个在线对战版的,具体能实现的功能如下: 1.棋盘固定,棋子按规则移动。 2.历史记录
2014-01-24 22:40:31 7351 3
原创 Paradigms Homework1 一个超小型二元一次方程组计算器
今天累惨了,先把代码放上 后天再更import javax.swing.*;import java.text.DecimalFormat;import java.awt.event.*;public class BinaryEquation{ JFrame frame; JLabel label1, label2, label3, label4,rightanswer1,righ
2014-01-18 08:43:03 950 1
原创 Head First Java_Study Notes_Chapter 6 Using the Java Library
1. One last problem for the last chapter: when we input the same number 3 times, it can still kill the game.if (guess == cell){ result = "hit"; numofHits++; break;}We counted a hit every time
2014-01-17 05:36:13 802
原创 Head First Java_Study Notes_Chapter 5 Extra-Strength Methods
1. A battleship-style game1)To figure out the general flow of the game: a. create three dot coms b. places onto a virtual grid2)Game play begins: a. prompt user for a guess
2014-01-16 05:31:09 765
原创 Head First Java_Study Notes_Chapter 4 How Objects Behave
1. Objects have state and behaviorA class describes what an object knows and what an object does
2014-01-16 04:32:46 612
原创 Head First Java_Study Notes_Chapter 3 Know Your Variables
1. Declaring a variableVariable has a type and a namePrimitive variable and reference variable2. Arraydeclare: int[] nums;create a new int array:nums = new int[7];arrays are object
2014-01-15 06:06:12 912
原创 Head First Java_Study Notes_Chapter 2 A Trip to Objectville
Chapter 2 A Trip to Objectville1.Thinking about ObjectsThings an object knows about itself are instance variables.Things an object can do are methods.
2014-01-15 04:50:02 799
原创 Head First Java_Study Notes_Chapter 1 Break the Surface
Chapter 1 Break the Surface1.Code structure in Java:Put a class in a source file:private class Dog{}Put methods in a class:private class Dog{ void Bark (){ }}Put statements in a meth
2014-01-13 22:10:09 1164
原创 My study plan for Spring 14
Before this may, I have to find an intership for my summer holiday, but since i barely know anything about cs, i will have to learn from the beginning.First, i'm gonna finish the five books Warald r
2014-01-13 12:06:56 688
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人