Java TCP套接字编程(一)简单文字传输 客户端: 连接服务器 Socket 发送消息 IO流 package com.zzz.net; import java.io.IOException; import java.io.OutputStream; import java.net.InetAd ...
分类:
编程语言 时间:
2021-04-05 12:41:47
阅读次数:
0
一、文本与Base64 1、文本转Base64字符串 private static string StrToBase64(string str) { byte[] b = Encoding.Default.GetBytes(str); //转成 Base64 形式的 System.String st ...
Java基础回顾 基本数据类型 数值类型 什么是字节? 位(bit):是计算机中数据的最小单位 字节(byte):是计算机中数据处理的基本单位,习惯上用大写字母B来表示 1 B = 8 bit 字符:是指计算机中使用的字母、数字、字和符号 整数类型: ? byte 1个字节 最大值为127 ? sh ...
分类:
编程语言 时间:
2021-04-01 13:42:37
阅读次数:
0
public static void decodeYUV420SPrgb565(int[] rgb, byte[] yuv420sp, int width, int height) { final int frameSize = width * height; for (int j = 0, yp ...
分类:
其他好文 时间:
2021-04-01 13:29:11
阅读次数:
0
类型转换 由于java是强类型语言,所以要进行有些运算的时候,需要用到类型转换 低 >高 byte,short,char->int->long->float->double 运算中,不同类型的数据先转化为同一类型,然后进行运算 public class A{ public static void m ...
分类:
编程语言 时间:
2021-04-01 13:21:08
阅读次数:
0
###案例1 java byte[]与十六进制字符串相互转换 import java.util.Arrays; public class ccc { public static void main(String[] args) { int[] array ={-6, 1, 18, 114, 54, ...
分类:
编程语言 时间:
2021-04-01 12:57:31
阅读次数:
0
CS DES任意长度密钥加密 private static string Encrypt2(string str, string sKey) { string s = ""; using (System.Security.Cryptography.DESCryptoServiceProvider d ...
分类:
其他好文 时间:
2021-04-01 12:53:38
阅读次数:
0
强类型语言 要求变量的使用要严格符合规定,所有变量都必须定义后才能使用 数据类型 Java数据类型 基本类型 引用类型 八大基本数据类型 整数 int num1 = 10;//最常用 byte num2 = 20; short num3 = 30; long num4 = 30L;//Long类型要 ...
分类:
其他好文 时间:
2021-03-30 13:26:50
阅读次数:
0
博客迁移计划12 \(\rightarrow\) 戳我看CF原题 C. Useful Decomposition time limit per test: 1 second memory limit per test: 256 megabytes input: standard input outp ...
分类:
其他好文 时间:
2021-03-30 13:14:19
阅读次数:
0
Oracle的数据库日 志称为redo log,所有数据改变都记录redo log,可以用于修复受损的数据库。Redo日志是分组的,,默认是三组。Redo日志是轮流使用的,一个redo log满了,LGWR会切换到下一组redo log,这种操作称为log switch,做log switch的同时 ...
分类:
数据库 时间:
2021-03-29 12:12:28
阅读次数:
0