![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
qaqling
这个作者很懒,什么都没留下…
展开
-
简单的新闻播报
package com.Melirn.Test;/** * @author:Melirn * @e-mail:2227287556@qq.com * @date:2021.5.13 */public class NewTitle { private int id ; private String titleName; private String creater; public NewTitle(int id, String titleName, String原创 2021-05-13 09:30:32 · 324 阅读 · 0 评论 -
Map的使用练习
package com.Melirn.Test;/** * @author:Melirn * @e-mail:2227287556@qq.com * @date:2021.5.13 */import java.util.ArrayList;import java.util.List;public class NewTitleTest { public static void main(String[] args) { NewTitle car = new NewTi原创 2021-05-13 09:26:02 · 153 阅读 · 0 评论 -
throws的使用练习
package com.lk.classTest;import java.util.InputMismatchException;import java.util.Scanner;/** * @author:Melirn * @e-mail:2227287556@qq.com * @date:2021.5.6 */public class three { public static void main(String[] args) { try {原创 2021-05-06 09:41:34 · 109 阅读 · 0 评论 -
多重catch语句的使用
package com.lk.classTest;import java.util.InputMismatchException;import java.util.Scanner;/** * @author:Melirn * @e-mail:2227287556@qq.com * @date:2021.5.6 */public class two { public static void main(String[] args) { try {原创 2021-05-06 09:21:17 · 199 阅读 · 0 评论 -
try语句的练习使用
package com.lk.classTest;import java.util.Scanner;/** * @author:Melirn * @e-mail:2227287556@qq.com * @date:2021.5.6 */public class one { public static void main(String[] args) { try { Scanner input = new Scanner(System.in);原创 2021-05-06 08:46:57 · 179 阅读 · 0 评论 -
接口类练习(打印机)
package print;/** * author:Melirn * date:2021.4.22 * E-mail:2227287556@qq.com */public abstract class Printer { abstract void print();}package print;/** * author:Melirn * date:2021.4.22 * E-mail:2227287556@qq.com */public class DotMatri原创 2021-04-22 09:31:48 · 204 阅读 · 0 评论 -
接口练习题输出语句
package Ling;/** * author:Melirn * date:2021.4.22 * E-mail:2227287556@qq.com */public interface Animal { String animal(); String attribute(); String age();}package Ling;/** * author:Melirn * date:2021.4.22 * E-mail:2227287556@qq原创 2021-04-22 09:21:20 · 112 阅读 · 0 评论 -
通过JAVA程序实现计算王者荣耀普攻伤害
package com.Melirn.Attack;/** * @author:Melirn * @E-mail:2227287556@qq.com * @date:2021.4.15 */public class Attack { public double OutputValue(double output,double bear,double pierceThrough){ bear = bear - pierceThrough; double ou原创 2021-04-15 18:33:59 · 696 阅读 · 0 评论 -
实现三种手机打电话方法
package com.lyvust.Melirn;/** * author:Melirn 2227287556@qq.com * date:2021.4.15 */public class Phone { public void call(){ }}package com.lyvust.Melirn;/** * author:Melirn 2227287556@qq.com * date:2021.4.15 */public class IPhone ext原创 2021-04-15 09:59:10 · 315 阅读 · 0 评论 -
继承实现方法输出信息
package com.lyvust.Melirn;/** * author:Melirn 2227287556@qq.com * date:2021.4.15 */public class Animal { int age; public void Info(){ System.out.println("我今年"+this.age+"岁了!"); }}package com.lyvust.Melirn;/** * author:Melirn原创 2021-04-15 09:48:19 · 167 阅读 · 0 评论 -
三角形的判断
package com.lyvust.Melirn;import java.util.Scanner;/** * author:Melirn 2227287556@qq.com * date:2021.4.15 */public class triangle { public void judge(int a , int b, int c){ if (a+b>c&&a+c>b&&b+c>a){ Sy原创 2021-04-15 09:22:38 · 81 阅读 · 0 评论 -
模拟简单的购房商贷计算器
package com.lyvust.Melirn;import java.util.Scanner;/** * author:Melirn 2227287556@qq.com * date:2021.4.15 */public class MonthlyRepayment { public double loan(double loan , int month){ if(month==36){ loan = (loan*0.0603+lo原创 2021-04-15 08:58:09 · 171 阅读 · 0 评论 -
用数组完成简单运算(JAVA数组课后作业)
package com.homework;import java.util.Scanner;/*作者:mengling 2227287556@qq.com时间:2021.3.27 */public class HomeWork1 { public static void main(String[] args) { String []arr=new String[5]; Scanner input = new Scanner(System.in); .原创 2021-03-27 14:39:54 · 99 阅读 · 0 评论 -
通过二维数组计算每个班的总成绩
public class Demo2 { public static void main(String[] args) { int [][]array=new int[][]{{80,66},{70,54,98},{77,59}}; int total ; for (int i = 0; i < array.length; i++) { String str = (i+1)+"班"; total =原创 2021-03-25 09:56:27 · 919 阅读 · 0 评论 -
冒泡排序优化练习(JAVA)
public class Demo { public static void main(String[] args) { int arr[];arr=new int[]{16,25,9,90,23}; int temp = 0 ; boolean flag = false; for (int i = 0; i < arr.length; i++) { for (int j = 1; j < arr.l原创 2021-03-25 09:28:54 · 79 阅读 · 0 评论 -
一百以内的偶数求和
package com.classTest.lykjzyxy;/*作者:mengling;2227287556@qq.comJAVA作业100内的偶数求和2021.3.24 */public class classTest12 { public static void main(String[] args) { int sum = 0 ; for (int i = 0; i <= 100; i++) { if (i%2==0)原创 2021-03-24 10:33:29 · 359 阅读 · 0 评论