码迷,mamicode.com
首页 >  
搜索关键字:roman to integer    ( 15811个结果
Spire.Doc 中英文字体设置
有时我们需要设置中文字体为宋体,西文字体为Times New Roman,对于这种情况,在Spire.Doc中可以如下处理 private void AddTextRange(Section section, Paragraph pragraph, string word, float fontSi ...
分类:其他好文   时间:2020-06-08 12:57:31    阅读次数:212
JAVA使用Arrays.sort()升序和降序
java中对数组进行排序 使用Array.sort() 这个默认是升序 @Test public void index4(){ int scores[] = new int[]{1,2,3,89,4}; Arrays.sort(scores); for (int i:scores ) { Syste ...
分类:编程语言   时间:2020-06-07 19:17:31    阅读次数:205
int 和 Integer 有什么区别?
Java 是一个近乎纯洁的面向对象编程语言,但是为了编程的方便还是引入了基本 数据类型,但是为了能够将这些基本数据类型当成对象操作,Java 为每一个基本 数据类型都引入了对应的包装类型(wrapper class),int 的包装类就是 Integer, 从 Java 5 开始引入了自动装箱/拆箱 ...
分类:其他好文   时间:2020-06-07 16:43:40    阅读次数:84
8 String to Integer (atoi)
public class Palindrome_Number9 { public static boolean isPalindrome(int x) { if(x<0){ return false; } String result=new Integer(x).toString(); for(in ...
分类:其他好文   时间:2020-06-07 15:11:13    阅读次数:54
getRow
给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。 在杨辉三角中,每个数是它左上方和右上方的数的和。 示例: 输入: 3 输出: [1,3,3,1] class Solution { public List<Integer> getRow(int rowIndex) { List< ...
分类:其他好文   时间:2020-06-07 10:41:23    阅读次数:68
Java Array Exercises Practice Solution I
1. Write a Java program to reverse an array of integer values. package com.w3resource; import java.util.Arrays; public class ReverseArray { public sta ...
分类:编程语言   时间:2020-06-07 01:00:04    阅读次数:74
函数式接口之Supplier练习
public class SupplierDemo { public static void main(String[] args) { String s = getString(()->"函数式接口"); System.out.println(s); Integer i = getInteger( ...
分类:其他好文   时间:2020-06-06 18:43:13    阅读次数:51
判断字符串是否为IPV4
public class IPV4Test { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("请输入一个IPV4地址"); String ipStr ...
分类:其他好文   时间:2020-06-06 17:00:13    阅读次数:77
postgresql查询、修改sRID
postgresql导入shp数据后,查看矢量数据的SRID SELECT st_srid(geom) FROM road limit 1; --上述road为表名 更新SRID的方法 UpdateGeometrySRID(varchar table_name, varchar column_nam ...
分类:数据库   时间:2020-06-06 11:16:36    阅读次数:256
使用vba程序,实现excel数据库模板生成sql数据库结构
@ 最近公司有个需求,提前让数据库表结构在excel模板中设计,然后再建对应的数据库DB。字段少好说,无脑录入即可,但是,我遇到个100多个字段的,实在忍不了,最终入门了VBA编程,自己写脚本生成了sql语句。减少了需要无用重复劳动。 VBA基础 首先学习下vba的基础。 一.了解VBA 1.进入v ...
分类:数据库   时间:2020-06-06 00:54:36    阅读次数:97
15811条   上一页 1 ... 54 55 56 57 58 ... 1582 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!