[daily question] day13_02 parameter analysis
Learning objectives:
Objective: to skillfully use the knowledge of Java
Learning content:
Content of this article: using java to solve parameter parsing
Title Description
Enter the following command on the command line:
xcopy /s c:\ d:\,
The parameters are as follows:
Parameter 1: command word xcopy
Parameter 2: string / s ...
Posted by grandman on Sat, 19 Feb 2022 21:42:05 +0100
String brush notes
String brush notes
541.Reverse string II
code implementation
class Solution {
public String reverseStr(String s, int k) {
char[] a = s.toCharArray();
int i = 0;
int j = 0;
char tmp;
for (int start = 0; start < a.length; start += 2 * k) {
i = start;
// Ensure the requirements of ...
Posted by junrey on Sat, 19 Feb 2022 19:04:40 +0100
Learning these API s of java is enough
Common API s
ava API is the classes provided to us in JDK. These classes encapsulate the underlying code implementation. We don't need to care about how these classes are implemented, we just need to learn how to use these classes.
There is a Src in the JDK installation directory Zip file. The contents of this file after decompression are ...
Posted by e33basketball on Sat, 19 Feb 2022 15:49:53 +0100
C language string
C language string
I character string
1. It is composed of a group of consecutive characters and is contained with "", and the last character must be '\ 0', which indicates the end of the string, and the ASCII code of '\ 0' is 0 Note: To study a string is to study the characters one by one 2. The memory space occupied by t ...
Posted by blufish on Fri, 18 Feb 2022 13:35:37 +0100
You can always trust String!
String & Immutable
1. Concepts
String classes are modified by final, and similar final-modified classes include wrapper classes such as Integer, Double, and so on. As we learned in our second grade, final-modified classes are inheritable. In Java, final-modified classes are called "immutable classes". Curious classmates may ask, ...
Posted by Rother2005 on Fri, 18 Feb 2022 12:17:21 +0100
Linux based shell variables
1, shell variables and other related introduction
1. Compiled language and interpreted language Compiled language: compiled language is written before program execution. It needs a special compilation process to compile the program into machine language. For example, the exe format package of Windows. Interpretive language: interpretive la ...
Posted by gurroa on Fri, 18 Feb 2022 06:06:47 +0100
6 formula calculation (case)
1) Let the user input the content of multiplying any two integers (such as "2 * 3") to output "2 * 3 = 6". For example, the operation condition is:
Let's finish it step by step. Complete the input first:
strs = input()
Assuming that we input "2 * 3", we need to split the two values before and after the asteri ...
Posted by shreej21 on Mon, 14 Feb 2022 13:01:22 +0100
Notes on sword finger offer JZ1-5
A references
Book "sword finger offer (Second Edition)"
Search in JZ01 binary array
1. Title Description
In a two-dimensional array (each one-dimensional array has the same length), each row is sorted in ascending order from left to right, and each column is sorted in ascending order from top to bottom. Please complete a function, ...
Posted by sentback on Thu, 10 Feb 2022 18:21:25 +0100
Python finds substrings in strings
This is a question that Xiaobai blogger encountered when brushing leetcode. This is the best question in the leetcode question bank recently, so I share this joy here.
I hope I can continue to make progress and persevere in the future.
catalogue
Topic introduction
Problem solving ideas and codes
1. Call function - find/index
2. Viole ...
Posted by CrusaderSean on Thu, 10 Feb 2022 12:03:57 +0100
How does SQL split and intercept comma-separated strings?
This article was written because of a recent need: Known field values for a table are irregular comma-separated strings with the following styles: Now split the field into four fields by comma with the following styles: I have not had a ready-made function in Baidu for a long time, so I can only think of my own way. First of all, the simplest ...
Posted by harryman100 on Thu, 10 Feb 2022 06:01:59 +0100