码迷,mamicode.com
首页 >  
搜索关键字:string to integer at    ( 107772个结果
剑指 Offer 19. 正则表达式匹配
这题好难。自己没想到用动态规划,敲了很久,敲出了可以通过400个测试点的代码,还是有一些情况没有考虑到。不舍得删,记录一下。对输入用例 "aaa" "abac*a" 不能给出正确答案。 class Solution { public boolean isMatch(String s, String ...
分类:其他好文   时间:2021-03-16 13:45:02    阅读次数:0
Java语法基础
Java基础语法 标识 单行标注 // 多行标注 /* */ 多做标注 关键字 public class Demo02 { public static void main(String[] args) { String ab="c"; System.out.print(ab); } } 注意语法中符 ...
分类:编程语言   时间:2021-03-16 11:57:10    阅读次数:0
线程的创建
线程创建三个方法: 1.继承thread类 2.实现runnable接口 3.实现callable接口 实例: //线程的创建方法public class TestNew { public static void main(String[] args) { new Mythread1().start ...
分类:编程语言   时间:2021-03-16 11:55:44    阅读次数:0
简洁表达式
public class SimpleExpressDemo02 { public static void main(String[] args) { int a=10,b=6; System.out.println("改变之前的数是:a=" + a + ",b=" + b); a-=b++; // ...
分类:其他好文   时间:2021-03-16 11:51:45    阅读次数:0
Reactive Spring实战 -- 响应式Redis交互
本文分享Spring中如何实现Redis响应式交互模式。 本文将模拟一个用户服务,并使用Redis作为数据存储服务器。 本文涉及两个java bean,用户与权益 public class User { private long id; private String name; // 标签 priv ...
分类:编程语言   时间:2021-03-16 11:44:04    阅读次数:0
JavaSE基础-变量,常量,作用域
变量 变量是程序中最基本的存储单元,其要素包括变量名,变量类型和作用域。 变量的作用域 类变量 实例变量 局部变量 public class Hello { static int a = 0;//类变量(静态变量) String name = "zhangsan";//实例变量 public voi ...
分类:编程语言   时间:2021-03-15 11:28:54    阅读次数:0
ajax属性详解
jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分 ...
分类:Web程序   时间:2021-03-15 11:27:30    阅读次数:0
0823. Binary Trees With Factors (M)
Binary Trees With Factors (M) 题目 Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree u ...
分类:其他好文   时间:2021-03-15 11:24:45    阅读次数:0
java String 方法总结
1.字符串中的Str.charAt(num)方法能将字符串中的字符分割。 2.字符串中的长度方法String.length(); 3.把字符串转换为数组 String.toCharArray() 4.字符串翻转方法:reverse()。 5.字符串判断相等的方法: String1.equals(St ...
分类:编程语言   时间:2021-03-15 11:10:39    阅读次数:0
动态代理 ---jdk
先上一个标准用法 接口 public interface Dog { void run(); int eatCount(); boolean eta(String name); } 实现 public class GunDog implements Dog { @Override public vo ...
分类:其他好文   时间:2021-03-15 11:09:49    阅读次数:0
107772条   上一页 1 ... 92 93 94 95 96 ... 10778 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!