上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 54 下一页
摘要: 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)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 54 下一页