-
JAVA实验报告一
所属栏目:[Java] 日期:2020-12-15 热度:184
1.打印水仙花数 实验结果 2.求13-23+33+...-1003的值 实验结果 3.求1!+2!+...20! 实验结果 4.计算8+88+...前十项之和。 实验结果 5.一个数如果恰好等于它的因子之和,这个数就称为完数。输出1000以内的完数。 实验结果 6.输出1+2+3+...+n8888. 实验结果 7.[详细]
-
Java实验报告(一)
所属栏目:[Java] 日期:2020-12-15 热度:178
1.水仙花数 public class test1{ public static void main(String[] args){ for(int num=100;num1000;num++){ int a=num/100; int b=num/10%10; int c=num%10; if(Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3)==num){ System.out.println(num); } } }} 2.求13[详细]
-
Java操作Hive
所属栏目:[Java] 日期:2020-12-15 热度:154
Hadoop版本:hadoop-2.9.2.tar.gz,Hive版本:apache-hive-2.3.6-src.tar.gz,安装Hive可查看:CentOS安装Hive 保证Hive以正确启动hiveserver2 。 ? pom.xml依赖: project xmlns ="http://maven.apache.org/POM/4.0.0" xmlns:xsi ="http://www.w3.org/2001/[详细]
-
java2
所属栏目:[Java] 日期:2020-12-15 热度:115
方法 数组 333[详细]
-
Java添加水印到Word文档
所属栏目:[Java] 日期:2020-12-15 热度:89
水印是一种常用于各种文档的声明、防伪手段,一般可设置文字水印或者加载图片作为水[详细]
-
基姆拉尔森计算公式(计算星期几)
所属栏目:[Java] 日期:2020-12-15 热度:95
给定一个xxxx-xx-xx日期,计算为星期几。 直接使用基姆拉尔森计算公式,外文名是Kim larsen calculation formula。 从 公元0年1月1日星期日 开始,已考虑各种因素。详见过程见大佬博客 基姆拉尔森计算? 公式推导 。 #include stdio.h /* * 基姆拉尔森计算公[详细]
-
[虚拟机OA]Team Formation 2 团队构成
所属栏目:[Java] 日期:2020-12-15 热度:195
FC Codelona is trying to assemble a team from a roster of available players. They have a minimum number of players they want to sign and each player needs to have a skill rating within a certain range. Given a list of players‘ skill level[详细]
-
Pandas显示所有行,列的数据(不忽略中间的数据)
所属栏目:[Java] 日期:2020-12-15 热度:111
import pandas as pd import numpy as np # 生成需要字段的数据 data = np.random.normal(0,1,(100,30 ))row = [ " 第{}列 " .format(i) for i in range(30 )]col = [ " 第{}行 " .format(i) for i in range(100 )] # 生成Dataframe数据 df = pd.DataFrame(d[详细]
-
Java连载29-方法执行内存分析、方法重载
所属栏目:[Java] 日期:2020-12-15 热度:80
一、JVM包含三个内存区:栈内存、堆内存、方法区内存 二、注意点 (1)在MyEclipse中字体是红色的是一个类的名字,并且这个类除了我们自定义的类是JavaSE类库中自带的 (2)其实JavaSE类库中自带的类,例如:String.classSystem.class,这些类的类名也是标识[详细]
-
[虚拟机OA]Build the Subsequences 生成子序列
所属栏目:[Java] 日期:2020-12-15 热度:129
A subsequence of a string is obtained by deleting zero or more characters from the string while maintaining order. For example,the subsequences of string s = "xyz",not including the empty string,are "x","xy","xz","xyz","y","yz",and "z". Yo[详细]
-
[虚拟机OA]Break a Palindrome 破坏回文串
所属栏目:[Java] 日期:2020-12-15 热度:57
In this challenge,you will be given a palindrome which you must modify if possible. Change exactly one character of the string to another character in the range ascii[a-z] so that the string meets the following two conditions: ? The new st[详细]
-
JAVA 基础编程练习题50 【程序 50 文件 IO】
所属栏目:[Java] 日期:2020-12-15 热度:167
? 50 【程序 50 文件 IO】 题目:有五个学生,每个学生有 3 门课的成绩,从键盘输入以上数据(包括学生号,姓名,三门课成绩), 计算出平均成绩,将原有的数据和计算出的平均分数存放在磁盘文件"stud"中。 ? package cskaoyan;import java.io.BufferedWrite[详细]
-
[虚拟机OA]Climb the hill 爬山
所属栏目:[Java] 日期:2020-12-15 热度:57
?Jack was trying to go up the hill. He does not have any problem in climbing up or coming down the hill if the slope is consistently either increasing or decreasing. Areas where the slope is constant do not bother him in either situation.[详细]
-
java.net.ConnectException: Your endpoint configuration is wr
所属栏目:[Java] 日期:2020-12-15 热度:102
今天使用在hive中建表,并在hive中将查询到的语句插入到新表中时,一直开在如图所示位置不动 ?等待了20多分钟,然后报了这么个错 at sun.reflect.GeneratedConstructorAccessor49.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessor[详细]
-
pageBean的实体类
所属栏目:[Java] 日期:2020-12-15 热度:170
package com.hopetesting.domain ; import java.util.List ; /** * @author newcityman * @date 2019/9/7 - 19:19 */ public class PageBean T{ private int totalCount ; //总记录数 private int totalPage ; //总页码 private int rows ; //每页显示的记录[详细]
-
[虚拟机OA]Group Anagram 变位词归类
所属栏目:[Java] 日期:2020-12-15 热度:140
Given an array of strings,group anagrams together. Example: Input: ["eat","tea","tan","ate","nat","bat"],Output:[ ["ate","eat","tea"],["nat","tan"],["bat"]] ? 题意: 给定一堆单词,把变位词放一块儿去。 ? 碎碎念: 开始想说“eat” 转charArray[详细]
-
重读STL源码剖析:deque
所属栏目:[Java] 日期:2020-12-15 热度:154
deque deque是一种双向开头的现行连续空间 但它与vector有差异: 1.deque可以在O(1)的复杂度下进行头端插入与移除,而vector的头端操作效率极差 2.deque没有capacity概念。deque随时可以拼接一段新的连续空间。只有像vector这种可能出现空间不足的容器才需[详细]
-
[虚拟机OA]Even Subarray 最多含有K个奇数的子数组
所属栏目:[Java] 日期:2020-12-15 热度:134
A subarray is a contiguous portion of an array. Given an array of integers,you must determine the number of distinct subarrays that can be formed having at most a given number of odd elements. Two subarrays are distinct if they differ at e[详细]
-
java单例模式的实现方式以及差异
所属栏目:[Java] 日期:2020-12-15 热度:116
恶汉单例模式: /** 恶汉单例模式,用空间换时间的思想进行对象的初始化,在多线程的情况下,故不存在线程安全问题。 @author Administrator */ public class WickedManSingleTon { private static WickedManSingleTon instance=new WickedManSingleTon(); p[详细]
-
Winform中怎样根据Name获取同窗体的控件
所属栏目:[Java] 日期:2020-12-15 热度:187
场景 在同一个Winform窗体中,点击一个Button按钮时, 获取同窗体的其他控件的属性。 首先需要对要获取的控件赋予Name属性,然后就可以通过Name进行获[详细]
-
【leetcode】1184. Distance Between Bus Stops
所属栏目:[Java] 日期:2020-12-15 热度:184
题目如下: A bus?has? n ?stops numbered from? 0 ?to? n - 1 ?that form?a circle. We know the distance between all pairs of neighboring stops where? distance[i] ?is the distance between the stops number? i ?and? (i + 1) % n . The bus goes al[详细]
-
学籍管理系统
所属栏目:[Java] 日期:2020-12-15 热度:151
代码源码: //信1805-2班 张云飞 20183509 package ceshi; public class ScoreInformation { private String stunumber; private String name; private double mathematicsscore; private double englishiscore; private double networkscore; private doubl[详细]
-
Classloader leaks
所属栏目:[Java] 日期:2020-12-15 热度:166
原博:http://java.jiderhamn.se/2012/01/29/classloader-leaks-iv-threadlocal-dangers-and-why-threadglobal-may-have-been-a-more-appropriate-name 以下记录,主要是为了以后复习使用。 1.Thread Local 引起的Classloader leaks ThreadLocal主要是解决在[详细]
-
打印管理库函数Winspool.drv
所属栏目:[Java] 日期:2020-12-15 热度:140
打印管理库函数Winspool.drv 打印机底层驱动的包 函数名称?????????????????????????说明AbortPrinter? ? ? ? ? ? ? ? ? ? 删除打印机的假脱机文件AddForm? ? ? ? ? ? ? ? ? ? ? ? 向可被选择用于给定打印机的格式表中添加一格式AddJob? ? ? ? ? ? ? ? ? ? ?[详细]
-
Java基础(一)
所属栏目:[Java] 日期:2020-12-15 热度:73
常识 Java是由Sun公司的James Gosling和同事们共同研发,并在1995年正是推出。并于2019年3月20日,JavaSE 12发布。 Java分为三个体系JavaSE,JavaEE和JavaME。 Java的特性:简单的、面向对象的、分布式的、健壮的、安全的、体系结构中立的、可移植的、解释型[详细]