摘要:
文件结构: //Link.java package LinkList_Node; import java.util.Scanner; public class Link { static node head; static node t; public Link() { head=new node( 阅读全文
posted @ 2019-07-04 18:42
bobo哥
阅读(323)
评论(0)
推荐(1)
摘要:
package com.duan; import javax.swing.JFrame; import javax.swing.*; import java.awt.*; public class JPanel_01 extends JFrame{ private static final long 阅读全文
posted @ 2019-07-04 18:26
bobo哥
阅读(214)
评论(0)
推荐(0)
摘要:
package com.duan; //本程序是利用多线程下载一首mp3 //主程序DownloadTest.java public class DownloadTest { public static void main(String[] args) { DownloadTool.resource 阅读全文
posted @ 2019-07-04 18:19
bobo哥
阅读(257)
评论(0)
推荐(0)
摘要:
package copy.com; import java.awt.BorderLayout; import java.awt.event.*; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.Acti 阅读全文
posted @ 2019-07-04 18:00
bobo哥
阅读(439)
评论(0)
推荐(0)
摘要:
class Person1 { protected String name; protected int age; public Person1(String name,int age) { this.name=name; this.age=age; } protected void show() 阅读全文
posted @ 2019-07-04 17:50
bobo哥
阅读(207)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; class Person { private String name; private int age; public Person() { System.out.println("调用了Person类的无参数构造方法"); } public Pe 阅读全文
posted @ 2019-07-04 17:47
bobo哥
阅读(445)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; class Cylinder { private double radius; private int height; private double pi=3.14; Cylinder(double r,int h) //定义构造函数,构造函数的函 阅读全文
posted @ 2019-07-04 17:39
bobo哥
阅读(234)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; class col_sum { public void col(int [][]c) { int k=0; int sum1=0; while(k<5) //二维数组的列数,共5列 { for(int i=0;i<4;i++) //二维数组的行数, 阅读全文
posted @ 2019-07-04 16:41
bobo哥
阅读(5550)
评论(0)
推荐(0)
摘要:
import java.text.DecimalFormat; class student //学生类 { String stuNo; String stuName; String stuSex; boolean banganbu; double math; double chinese; doub 阅读全文
posted @ 2019-07-04 16:36
bobo哥
阅读(455)
评论(0)
推荐(0)
摘要:
public class exa_04 { static int div_3(int b[]) { int ss=0,i; for(i=0;i<b.length;i++) if(b[i]%3==0) ss+=b[i]; return ss; } public static void main(Str 阅读全文
posted @ 2019-07-04 16:21
bobo哥
阅读(1283)
评论(0)
推荐(0)
摘要:
package chapter_6; public class exa_03 { public static void main(String []args) { String str1="good morning"; System.out.print("子串orn在主串中的位置是:"); Syst 阅读全文
posted @ 2019-07-04 16:00
bobo哥
阅读(263)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; class Person //基类 { private String name; private int age; String getName() { return name; } void setName(String name) { this 阅读全文
posted @ 2019-07-04 15:47
bobo哥
阅读(372)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; class Cylinder { double radius=0; double height; double PI=3.14; void area() { System.out.println("圆柱的底面积是:"+(PI * radius * 阅读全文
posted @ 2019-07-04 15:32
bobo哥
阅读(2023)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; //思路:先输入一串字符str1,然后把这串字符赋给a[i],如果输入的字符(即要删除的字符)与字符串中的字符相同,则让字符串中该字符的下一个字符前移覆盖前一个字符 public class p78_9 { public static void m 阅读全文
posted @ 2019-07-04 15:26
bobo哥
阅读(542)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class p78_8 { public static void main(String[] args) { Scanner reader=new Scanner(System.in); System.out.print("请输入一串 阅读全文
posted @ 2019-07-04 15:22
bobo哥
阅读(135)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class p78_7 { public static void main(String[] args) { int N=0,i=0; String str1=null; String str2=null; //从键盘输入字符串 Sc 阅读全文
posted @ 2019-07-04 15:18
bobo哥
阅读(2568)
评论(0)
推荐(0)
摘要:
import java.util.Random; import java.util.Scanner; public class p78_5 { public static void main(String[] args) { int N = 7; int []a=new int[N]; Random 阅读全文
posted @ 2019-07-04 15:04
bobo哥
阅读(1523)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class p78_4 { public static void main(String[] args) { int N = 4,M=5; int [][]a=new int[N][M]; int MAX,MIN; int i,j; 阅读全文
posted @ 2019-07-04 14:57
bobo哥
阅读(1668)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class p78_3 { public static void main(String[] args) { int N = 3; int [][]a=new int[N][N]; int sum=0; int i,j; Scanne 阅读全文
posted @ 2019-07-04 14:48
bobo哥
阅读(1450)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class p78_2 { final static int N=7; public static void main(String[] args) { int MAX,MIN; int []a=new int[N]; Scanner 阅读全文
posted @ 2019-07-04 14:39
bobo哥
阅读(1215)
评论(0)
推荐(0)