1. How to obtain the current file path
Frequently used:
String type: system. getproperty ("user. dir ");
Overall:
Package com. zcjl. Test. base;Import java. Io. file;Public class test {Public static void main (string [] ARGs) throws exception
Ylbtech-.netframework:directory
1. back to top
1.#regionAssembly mscorlib, version=4.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089//C:\Program Files (x86) \reference Assemblies\microsoft\framework\.
Also collects a good Java time format encyclopedia, this is made of the class
Java.util. *;
Import Java.text. * ;
Import Java.util.Calendar;
public class Vedate {
/**
* Get now time
*
* @return return Time type YYYY-MM-DD HH:MM:SS
*/
public static
Recently used in the project to Kafka, recorded
Kafka role, here do not introduce, please own Baidu. Project Introduction
Briefly introduce the purpose of our project: The project simulates the exchange, carries on the securities and so on the
Package cn.ubibi.wsblog.utils; Import Java.io.unsupportedencodingexception;import Java.math.BigInteger; public class Base58 {private static final char[] ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwx YZ ". ToCharArray ();
Direct on Source: 1. The basic information of the message (easy to set to static) It's best to be a JavaBean
package com.lgf.Email;
Import Java.util.Date;
public class Emailmessage {/** * message, you can set it yourself.
* To
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Text;
Using System.Data;
Using System.Reflection;
Using System.Collections;
Using System.Data.Common;
public class Convertjson
{
#region Private
For the ASP.net control, I believe we all use very comfortable, but I feel the control is still a lot of defects, the first is that the transplant is not very good, the code is kingly, the following gives Ado.net code, as long as the file added to
Public class vedate {/*** get current time ** @ return returns the time type yyyy-mm-dd hh: mm: SS */public static date getnowdate () {date currenttime = new date (); simpledateformat formatter = new simpledateformat ("yyyy-mm-dd hh: mm: SS");
Generally, you can write multiple overload methods to adapt to different parameters.
If you think there are many parameters that are not certain, you can use an array to store these parameters (parameters of the same data type ).Of course, for
Turn: http://blog.csdn.net/genispan/article/details/5466975
To declare a method as a method that can accept variable quantity parameters, we can use the Params keyword to declare an array, as shown below:
Public static int32add (Params int32
This C # wrapper class can be used to convert data in various formats into JSON format, including list conversion to JSON, normal set conversion JSON, DataSet to JSON, DataTable to JSON, DataReader to JSON, etc. If you need to convert an object to
Chapter 2: Base64, URLBase64, and base64urlbase64
2.1 Basic algorithm rules:
Public encryption algorithms
The encrypted key is not public.
The features of Base64 algorithm disclosure and Key Disclosure do not comply with basic algorithm rules,
Preface: The previous article wrote the use of Sharedpreferences in Android to save data, sharedpreferences when saving data is mainly to save some application settings information or a small amount of user information, And it is the information of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.