上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 56 下一页
摘要: <dependency> <groupId>commons-dbutils</groupId> <artifactId>commons-dbutils</artifactId> <version>1.6</version> </dependency> <dependency> <groupId>co 阅读全文
posted @ 2020-05-29 23:01 青衫客36 阅读(1375) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/qq_22076345/article/details/82392236 在Intellij idea中新建了一个Maven项目,运行时报错如下:Error : java 不支持发行版本5 本地运行用的是JDK9,测试Java的Stream操作,报 阅读全文
posted @ 2020-05-29 22:52 青衫客36 阅读(363) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2020-05-29 22:47 青衫客36 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目描述 使用FileStream类,编写一个控制台应用,能够读取当前文件夹下myFile.dic文件内容,并在屏幕上显示。 输入 无 输出 文件内容 样例输入 copy 无 Made by hxl. 样例输出 hello world! hi ,good using System; using Sy 阅读全文
posted @ 2020-05-14 19:33 青衫客36 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 题目描述 根据给出代码,补写缺失代码,当print函数内为整数的时候,输出整数的三次方,为浮点数,输出其二次方,为字符串时,直接输出。 using System; namespace PolymorphismApplication { class Printdata { /************* 阅读全文
posted @ 2020-04-02 13:16 青衫客36 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 题目描述 接口实例。接口和类如下图所示,根据给出代码,补写缺失的代码,然后在Program类的静态Main方法中验证所实现的类。 using System; namespace Myinterface { public interface IShape { double Perimeter(); d 阅读全文
posted @ 2020-04-02 13:11 青衫客36 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 题目描述 程序由两部分组成,如下代码所示。第一部分定义了委托、类和事件。第二部分进行验证。 using System; namespace HelloWorldApplication { public delegate void DelegateRing(); public class Bell{ 阅读全文
posted @ 2020-04-02 13:07 青衫客36 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 题目描述 根据给出的代码,补全缺失的代码,输入两个数字为长方形的长和宽,从而得出长方形的面积。 using System;namespace InheritanceApplication{ class Shape { public void setWidth(int w) { width = w; 阅读全文
posted @ 2020-04-02 12:41 青衫客36 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 题目描述 编写代码实现:定义了三个类Bird、Mapie、Eagle。其中Bird为抽象类,定义了一个抽象方法Eat()。Mapie类和Eagle类为Bird的派生类。Mapie类中重写了Eat()方法,重载了一个Eat(int time)方法。Eagle类中也重写了Eat()方法。 输入 输入ti 阅读全文
posted @ 2020-04-02 12:32 青衫客36 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 题目描述 一、定义一个抽象类Vehicles,具体要求如下: 1、私有字段商标brand(string)、颜色color(string)。 2、定义公有读写属性Brand用来访问brand字段;定义公有读写属性Color用来访问color字段。 3、设计一个抽象虚方法run()。 二、定义Vehic 阅读全文
posted @ 2020-04-02 12:21 青衫客36 阅读(372) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 56 下一页