摘要: 1 package cn.lyh; 2 3 public class L { 4 5 public static void main(String[] args) { 6 int []arr = new int[30]; 7 arr[0]=1; 8 arr[1]=1; 9 for(int i=2;ia... 阅读全文
posted @ 2017-12-18 14:37 mxl-1 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 abstract class A{ 2 private String name; 3 public A(String name) { 4 this.name = name; 5 } 6 public String getName() { 7 return this.name; 8 } ... 阅读全文
posted @ 2017-12-18 14:36 mxl-1 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 public class Y { 2 public static void main(String[] args) { 3 // TODO Auto-generated method stub 4 new Y().fun(); 5 6 } 7 8 private void ... 阅读全文
posted @ 2017-12-18 14:27 mxl-1 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 public class L1106 { 2 3 public static void main(String[] args) { 4 // TODO Auto-generated method stub 5 TestDemo circle1 = new TestDemo(); 6 double are... 阅读全文
posted @ 2017-12-18 14:26 mxl-1 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.lyhh; 2 class Person{ 3 private String name; 4 private int age; 5 static String city = "A城"; 6 public Person(String name,int age) { 7 this.name = n... 阅读全文
posted @ 2017-12-18 14:25 mxl-1 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.zrjh; 2 3 public class L { 4 5 public int id; 6 public String name; 7 public int age; 8 public String city; 9 public Str... 阅读全文
posted @ 2017-12-18 14:24 mxl-1 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 package cn.lyh; 3 import com.rupeng.game.GameCore; 4 5 public class L implements Runnable { 6 7 public static void main(String[] args) { 8 GameCore... 阅读全文
posted @ 2017-12-18 14:23 mxl-1 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 题目3.7 3 import java.util.Scanner; 4 public class L { 5 6 @SuppressWarnings("resource") 7 public static void main(String[] args) { 8 ... 阅读全文
posted @ 2017-12-18 14:21 mxl-1 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 import java.util.Scanner; 3 public class L { 4 5 public static void main(String[] args) { 6 System.out.println("5+5="+5+5); 7 8 ... 阅读全文
posted @ 2017-12-18 14:19 mxl-1 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 import java.util.Scanner; 3 public class L { 4 5 public static void main(String[] args) { 6 long a ; //练习题1:输出一个长整型的变量 123456789012345 7 ... 阅读全文
posted @ 2017-12-18 14:15 mxl-1 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 package demo; 3 import java.util.Scanner; 4 public class Ly { 5 6 public static void main(String[] args) { 7 Scanner input = new Scanner(System.in); 8 9 System.out.... 阅读全文
posted @ 2017-12-18 14:15 mxl-1 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 public class World{ 3 public static void main(String[] args){ 4 double p=3.14,i=5.50; 5 6 System.out.println(" 圆的面积:"+ p*i*i+ "cm2"); 7 8 System.out.println(" 圆的周长:"+ 2*i*p +"... 阅读全文
posted @ 2017-12-18 14:13 mxl-1 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 3 package demo; 4 import java.util.Scanner; 5 public class Lk { 6 7 public static void main(String[] args) { 8 9 Scanner input = new Scanner(System.in); 10 System.... 阅读全文
posted @ 2017-12-18 14:13 mxl-1 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 public class My{ 3 public static void main(String[] args){ 4 int a=35+100*60; //将跑步时间转化为秒 5 double b=2.0*1.6; //将跑步路程转化为公里 6 System.o... 阅读全文
posted @ 2017-12-18 14:12 mxl-1 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 public class Ap{ 3 public static void main(String[] args){ 4 System.out.println(" J A V V A "); 5 System.out.println(" J A A V V A A "); 6 System.out.println(" J J A A A V V A A ... 阅读全文
posted @ 2017-12-18 14:11 mxl-1 阅读(105) 评论(0) 推荐(0) 编辑