摘要: import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class AA implements ActionListener{ JFrame f; JPanel p; JBut... 阅读全文
posted @ 2019-05-15 23:00 吕志琪 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 在复制的串的时候为何只复制第一个s串的第一个字母,求解 阅读全文
posted @ 2019-05-15 00:16 吕志琪 阅读(622) 评论(1) 推荐(0) 编辑
摘要: package test1; public class Rectangle1 { private float length; private float width; float S=length*width;//矩形的底面积 public Rectangle1(float length,float width) { this.length=l... 阅读全文
posted @ 2019-05-13 23:22 吕志琪 阅读(710) 评论(0) 推荐(0) 编辑
摘要: import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MyJFrame implements ActionListener { JFrame f; JPanel p; JB... 阅读全文
posted @ 2019-05-11 23:16 吕志琪 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 表示事件处理输不出来,不知道哪个地方出现错误 import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener; public class MyJ 阅读全文
posted @ 2019-05-10 00:30 吕志琪 阅读(84) 评论(1) 推荐(0) 编辑
摘要: 数据结构矩阵的简单输出 #include<stdio.h>int main(){ int a[100][100]; int m,n;//表示数组的行和列 printf("请输入行数m:"); scanf("%d",&m); printf("请输入列数n:"); scanf("%d",&n); for 阅读全文
posted @ 2019-05-08 23:58 吕志琪 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int a[100][100],b[100][100]; int m;//表示行 printf("请输入行m:\n"); scanf("%d",&m); int n;//表示列 printf("请输入列n:\n"); scanf("%d",& 阅读全文
posted @ 2019-05-07 11:46 吕志琪 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int a[100][100],b[100][100]; int m;//表示行 printf("请输入行数m:"); scanf("%d",&m); int n;//表示列 printf("请输入列数n:"); scanf("%d",&n) 阅读全文
posted @ 2019-05-06 23:37 吕志琪 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 1.实现如下类之间的继承关系,并编写Music类来测试这些类。 package Music; public class Music { public void tune(Instrument i){ i.play(); } public static void main(String args[]) 阅读全文
posted @ 2019-05-06 20:00 吕志琪 阅读(90) 评论(0) 推荐(0) 编辑
摘要: java的继承 package Music; public class Music { public void tune(Instrument i){ i.play(); } public static void main(String args[]){ Music a=new Music(); I 阅读全文
posted @ 2019-05-05 22:51 吕志琪 阅读(63) 评论(0) 推荐(0) 编辑