- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 JAVA三星题之hangman
Write a hangman game that randomly generates a word and prompts the user to guess one letter at a time,as shown in the sample run.Each letter in the word is displayed as an asterisk.When the user fini
2015-11-23 22:05:12 2651
原创 Java学习笔记之卡片式布局CardLayout
CardLayout(构造)方法: 方法 说明 public CardLayout() 创建一个间距大小为0的新卡片布局 public CardLayout(int hgap,int vgap) 创建一个具有指定水平间距和垂直间距的新卡片布局。水平间距置于左右边缘。垂直间距置于上下边缘 public void first(Container p
2015-11-22 11:12:15 14490 1
原创 JAVA学习笔记之AWT的应用
AWT(Abstract Window Tookit)是JAVA用于创建用户界面和绘制图形图像的所有类。 1.AWT组件和容器 1).Frame的常见(构造)方法 方法 说明 public Frame() throws HeadlessException 构造一个最初不可见的Frame新实例 public Frame(String title) thr
2015-11-22 10:04:02 1666
原创 Welcome to JAVA!之displaying a checkerboard
package com.ytu.gui; import java.awt.Color; import java.awt.GridLayout; import javax.swing.JButton; import javax.swing.JFrame; public class CheckerBoard extends JFrame { public CheckerBoard() {
2015-11-18 12:38:27 1368
原创 Welcome to JAVA!之Swing common features
12.8 Display a frame that contains six labels.Set the background of the labels to white.Set the foreground of the labels to black,blue,cyan,green,magenta,and orange,respectively,Set the border of each
2015-11-17 20:36:10 1266
原创 蓝桥杯在线测试之入门练习(JAVA)
(一)入门训练 Fibonacci数列 问题描述 Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。 当n比较大时,Fn也非常大,现在我们想知道,Fn除以10007的余数是多少。 输入格式 输入包含一个整数n。 输出格式 输出一行,包含一个整数,表示Fn除以10007的余数。 说明:在本题中,答案是要
2015-11-12 14:48:01 2147
原创 Welcome to JAVA!之Person类
11.2.Design a class named Person and its two subclasses named Student and Employee,Make Faculty and Staff subclasses of Employee,A person has a name,address,phone number,and email address.A student ha
2015-11-05 18:45:07 2062
原创 JAVA三星题之connect four
原题:Connect four is a two-player board game in which the players alternately drop colored disks into a seven-column,six-row vertically-suspended grid,as shown below. The objective of the game is to
2015-11-03 16:15:08 3210
原创 JAVA三星题之playing a TicTacToe game
原题:In a game if TicTacToe,two players take turns marking an available cell in a 3x3 grid with their respective tokens(either X or O).When one player has placed three tokens in a horizontal,vertical or
2015-11-02 20:41:17 2108
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人