Getting started with Java

As we all know, the syntax of each language has its own characteristics. When we frequently switch programming languages, we always have to check the cheatsheet. The easiest way is to remember the particularity of a language. The following summarizes the special points of Java to quickly switch from C++/Python to Java. A Java source code can o ...

Posted by glansing on Tue, 21 Sep 2021 18:34:30 -0700

06_ Data type conversion

Chapter 6 data type conversion Author: Zhang Zimo Java programs require that the data involved in calculation must be consistent in data types. If the data types are inconsistent, type conversion will occur. 1, Automatic conversion What data type will result from the addition of an int variable and a byte variable?  int i = 1;  byte b = 2; ...

Posted by sparq on Mon, 20 Sep 2021 10:39:43 -0700

What an artifact! One click to generate a beautiful blog website, really fragrant!

As a programmer, if you like to output technical articles, you must have had the idea of building a personal blog website. After comparing a lot of blog frameworks, I found that the blog website built with the theme of Hexo + Hexo theme matrix not only has a beautiful interface, but also has powerful functions. Today, I will take you to build a ...

Posted by rammac13 on Fri, 17 Sep 2021 22:56:56 -0700

Use of Java object-oriented abstract methods, abstract classes and interfaces

1, Abstract 1. Brief description It's just a statement, not a realizationAbstract method: public abstract void act();, There is no method body and it ends directly. Abstract methods can only exist in abstract classes.Abstract class: public abstract class Test {}. The subclass inheriting the abstract class must override the methods (including ...

Posted by kylebragger on Fri, 10 Sep 2021 21:04:01 -0700

Spring Boot will always drop God! 10 minutes to get you started

Why SpringBoot Because currently developing WEB applications, Spring Boot is the fastest and most popular way to start Spring projects. No matter what kind of application we want to build, it can let us start and run as soon as possible. There is basically no need to configure anything in the early stage, and the built-in application server al ...

Posted by VMinder on Thu, 09 Sep 2021 23:03:23 -0700

web Front End Case-Developing 3D Dragging Photo Wall

This code is 136 lines, written in css3 and javascript. Now the albums on the network are mostly tiled. If there are many photos, they look very tired. Of course, this is my personal point of view, so this time I made a 3D album dragging effect, which looks beautiful and not tired to watch. Knowledge points: CSS33D effect, CSS3 excessi ...

Posted by navarre on Thu, 16 Jul 2020 08:51:27 -0700

Wechat applet -- 365 notes the 44th day --- get the user's authorized geographical location, longitude and latitude

Demand:1. When entering the page, request the user's geographic location authorization to obtain the user's current geographic location;2. Get the longitude and latitude of users, sometimes it is necessary to calculate the distance between users and stores by longitude and latitude; Steps:1. Wechat appl ...

Posted by aseaofflames on Mon, 29 Jun 2020 22:01:07 -0700

[STM32] RS485 Modbus protocol collects sensor data

1, Hardware 1. Sensor: hydraulic sensor, 12vDC, RS485 data output, Modbus protocol communication2. Circuit: according to the sensor properties, the circuit is mainly composed of two parts, communication circuit and power supply (1) 485 circuit: because 485 is half duplex communication, it needs to control the transceiver, so it is simply desig ...

Posted by maxrisc on Mon, 29 Jun 2020 20:49:24 -0700

python common errors and exceptions! Incidental treatment method

As a Python beginner, when learning Python programming, we often see some error messages. Python has two types of errors that are easy to recognize: syntax errors and exceptions. Python assert is used to judge an expression and trigger an exception when the expression condition is false. syntax error Python syntax errors, or parsing errors, ar ...

Posted by michaelmuller on Mon, 29 Jun 2020 20:17:42 -0700

Custom request header of RestTemplate in SpringBoot WEB Series

User defined request header of RestTemplate in WEB Series The last article introduced the basic usage posture of RestTemplate, and at the end of the paper, some extended advanced usage posture were proposed. This article will focus on how to carry user-defined request header, such as setting user agent and carrying Cookie Get carry request ...

Posted by mysterbx on Mon, 29 Jun 2020 18:51:26 -0700