12 2018 档案

摘要:笔者遇到的情况: 如果你也是实验了各路猿兄的方法后,发现不论是配置还是版本都无法解决…… 那么可以考虑一下是不是简单(智障)的语法问题…… 例如笔者再次浏览code时,发现花括号的匹配问题…… 运行成功~ 阅读全文
posted @ 2018-12-19 15:15 Moliay 阅读(34) 评论(0) 推荐(0) 编辑
摘要:错误描述:ctrl+s报错 eg: 原因及解决:eclipse正使用的字符集GBK,不能支持所有代码的映射,需要删掉不符合和字符或者换个字符集……所以还是比较推荐后者:Projext->Properties->Resourse->others改为支持的相应字符集 bingo~ 阅读全文
posted @ 2018-12-18 18:35 Moliay 阅读(2) 评论(0) 推荐(0) 编辑
摘要:原文链接 http://codebay.cn/post/9447.html 再不找到今天差点要通宵 Mark起来~ 实测mysqld –skip-grant-tables这样的命令行,在mysql8中无法成功启动,而且测试了该参数放在ini文件里面也同样无法启动 MySQL的密码是存放在user表里 阅读全文
posted @ 2018-12-18 01:34 Moliay 阅读(6) 评论(0) 推荐(0) 编辑
摘要:package javaBasic; import java.util.Date; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Scanner; public class T 阅读全文
posted @ 2018-12-17 16:11 Moliay 阅读(15) 评论(0) 推荐(0) 编辑
摘要:最基本的一种情况:String为null时都不存在,就更别谈调用方法了~ 阅读全文
posted @ 2018-12-16 20:17 Moliay 阅读(2) 评论(0) 推荐(0) 编辑
摘要:今天主要说些内部类的相关基础知识,如果能做出下面这个小题目,再下面的内容不看也罢(面试题答案在最后) 内部类面试题:补全下列代码,实现目标输出,其中描述阶段的数字只能调用已有变量,不能用其他方式 public class TestInner1 { public static void main(St 阅读全文
posted @ 2018-12-16 16:02 Moliay 阅读(6) 评论(0) 推荐(0) 编辑
摘要:手动版:a.javac编译当前类文件 b.手动建立与包名对应的文件夹 c.把a步骤中编译出的.class 文件放到b步骤中的最底层文件夹下 d.通过java命令执行 #需要带包名称的执行 自动版:a.javac编译时加上-d,bingo~ eg:javac-d FightingCET_6.java 阅读全文
posted @ 2018-12-16 11:39 Moliay 阅读(8) 评论(0) 推荐(0) 编辑
摘要:抽象类:传入该抽象类的子类对象 eg: package javaBasic; public class TestAbstract { public static void main(String[] args) { FreshLad fl = new FreshLad();//想调ta的方法,要先n 阅读全文
posted @ 2018-12-16 10:44 Moliay 阅读(9) 评论(0) 推荐(0) 编辑
摘要:当使用trim()处理字符串后,发现 String index out of range: 0报错? 而且觉得代码无懈可击?一时想不出来什么时候会为空? 注意特殊情况处理的字符元素都是空格,eg:" "。空格被清除掉,可不就是空字符串吗,所以需要判断先你现在的String是不是空,再取下标~ 附小陌 阅读全文
posted @ 2018-12-15 21:05 Moliay 阅读(43) 评论(0) 推荐(0) 编辑
摘要:原题链接https://leetcode.com/problems/string-to-integer-atoi/ 说实话,看到这道题之前,看这通过率有点慌,到底是因为啥 让一道medium的题目这么“厉害”咧,接着往下瞧~ problem description: Implement atoi w 阅读全文
posted @ 2018-12-15 18:33 Moliay 阅读(6) 评论(0) 推荐(0) 编辑
摘要:PS:①小陌笔记中蓝色紫色等一切花哨字体皆用来引入知识点(废话流),可忽略不计 。 ②黑字正文小陌竭力向言简意赅靠近再靠近。 ③红色字体小陌觉得重要的地方 (3)先执行case语句,后再判断default语句(在一路不匹配的情况下) switch语句(表达式) (1)表达式的取值是有限定的 ①开始是 阅读全文
posted @ 2018-12-10 21:21 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:话不多说,先看几段不报错的代码们 int x = 1; int y = 2; int z = 3; int max = x > y ? x > z ? x : z : y > z ? y : z; System.out.println(max);//3 int x = 1; int y = 2; i 阅读全文
posted @ 2018-12-10 17:04 Moliay 阅读(4) 评论(0) 推荐(0) 编辑
摘要:原题链接https://leetcode.com/problems/reverse-integer/ 题目描述 Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 阅读全文
posted @ 2018-12-10 12:39 Moliay 阅读(2) 评论(0) 推荐(0) 编辑
摘要:原题链接https://leetcode.com/problems/zigzag-conversion/ 没开始看题目时,小陌发现这道题似乎备受嫌弃,被n多人踩了,还有点小同情 题目描述 The string "PAYPALISHIRING" is written in a zigzag patte 阅读全文
posted @ 2018-12-09 16:25 Moliay 阅读(2) 评论(0) 推荐(0) 编辑
摘要:题目描述 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 给定一个字符串s,找出s中最长的回文子字符串。可假设s的最 阅读全文
posted @ 2018-12-08 16:51 Moliay 阅读(2) 评论(0) 推荐(0) 编辑
摘要:题目描述 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexi 阅读全文
posted @ 2018-12-07 20:11 Moliay 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Fightingヾ(๑╹◡╹)ノ" IDQuestionDiff(1~5)Freq(1~5)Data StructureAlgorithms 1Two Sum25arraysort setTwo Pointers 2Add Two Numbers34linked listTwo Pointers M 阅读全文
posted @ 2018-12-07 11:32 Moliay 阅读(17) 评论(0) 推荐(0) 编辑
摘要:a = (a+b)-(b=a);//bingo 来自小猿的一时兴起,仅供娱乐~ 阅读全文
posted @ 2018-12-06 21:14 Moliay 阅读(1) 评论(0) 推荐(0) 编辑
摘要:PS:①小陌笔记中蓝色紫色等一切花哨字体皆用来引入知识点(废话流),可忽略不计 。 ②黑字正文小陌竭力向言简意赅靠近再靠近。 ③红色字体小陌觉得重要的地方 老规矩,题目引入: int a = 1; int b = 2; System.out.println(++a == 1 && ++b == 2) 阅读全文
posted @ 2018-12-06 20:40 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:猿兄请看下面的代码: short s=1; s = s + 1; short s = 1; s+ = 1; 也许有的猿兄会觉得木得问题,两个小儿科; 也许有的猿兄觉得俩都会报错,因为损失精度的情况下需要强转; 其实第一个确实没有什么门道,强转而报错 但是看似等价的第二段代码是可以通过编译正常运行的~ 阅读全文
posted @ 2018-12-06 18:20 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:题目描述 Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The an 阅读全文
posted @ 2018-12-06 12:05 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:PS:①小陌笔记中蓝色字体用来引入知识点(废话流),可忽略不计 。 ②黑字正文小陌竭力向言简意赅靠近再靠近。 ③红色字体小陌觉得重要的地方。 数据类型 (知识温习:整型默认int 浮点型默认double) 在定义数据类型变量时,我们定义byte、short、int时直接定义,但是为啥long和flo 阅读全文
posted @ 2018-12-05 16:50 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:题目描述: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes 阅读全文
posted @ 2018-12-05 12:01 Moliay 阅读(4) 评论(0) 推荐(0) 编辑
摘要:默认转换(从小到大 /*联想式理解:从弱变强 因为代码的世界是正能量的,所以可以默许蜕变得原来越好哇*/) byte(1),short(2),char -> int(4) -> long(8) ->float(4) -> double(8) 问题来了,4个字节的float存8个字节的long??? 阅读全文
posted @ 2018-12-04 20:21 Moliay 阅读(5) 评论(0) 推荐(0) 编辑
摘要:如果你来访我,我不在,请和我门外的花坐一会儿,它们很温暖,我注视它们很多很多日子了。它们开得不茂盛,想起来什么说什么,没有话说时,尽管长着碧叶。也许女孩子第一次有男朋友的心境也像白水冲了红酒,说不上爱情,只是一种温淡的兴奋《爱你就像爱生命》(单身的猿兄注意啦 来感受小波大叔行吟诗人般的浪漫啊啊啊) 阅读全文
posted @ 2018-12-04 16:55 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:风和日丽的一天,老妈在称体重,发现老爸在窃笑。 老妈生气气,责问道:“是不是嫌弃我胖?!” 老爸意识到情况不对,立刻收起笑容,正色道:“按你的体重而言,身高应该一米九有余。所以你并不是胖,只是不够高……” 背景:体育课小雨绵绵 ,开课前20分钟 出现一位精神值得我们学习的道友,噗嗤(道友,不是我笑的 阅读全文
posted @ 2018-12-04 16:27 Moliay 阅读(5) 评论(0) 推荐(0) 编辑
摘要:LeetCode敲门题: 题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each in 阅读全文
posted @ 2018-12-04 12:31 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:计算机:由软件和硬件组成。其中没有安装任何软件的电脑称为裸机 (1)计算机硬件是指系统中由电子,机械和光电元件等组成的各种物理装置的总称。这些物理装置按系统结构的要求构成一个有机整体为计算机软件提供物质基础。eg:CPU,内存啥的 (2)计算机软件是按照特定顺序组织的计算机数据和指令的集合,使计算机 阅读全文
posted @ 2018-12-03 15:51 Moliay 阅读(3) 评论(0) 推荐(0) 编辑
摘要:笔者源码如下: package javaPractice; import java.util.*; public class TestScanner { public static void main(String[] args) { Scanner sc = new Scanner(System. 阅读全文
posted @ 2018-12-03 15:49 Moliay 阅读(9) 评论(0) 推荐(0) 编辑
摘要:由于eclipse的很多开发版本不支持最新版的9.0,所以接下来下载的是8.0(钢铁直女的鼠标字丑的一批,极易引起不适,给各位猿兄打个预防针先) 官网地址:https://tomcat.apache.org/download-80.cgi 根据自己电脑的配置选择相应版本 配置环境变量:按照下列步骤找 阅读全文
posted @ 2018-12-01 10:52 Moliay 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示