Java object oriented exercises

1. Number guessing game: A Class A has two member variables v, num, and v has an initial value of 100. Define a method guess, guess the member variable v of class A with num. If it is large, the prompt is large; if it is small, the prompt is small. Equal to indicates a successful guess. Testing in the main method package hello.guess; ...

Posted by willeh_ on Wed, 06 Nov 2019 09:09:40 -0800

E-book reading plug-in based on HTML5 conversion PDF

E-book reading plug-in based on HTML5 conversion PDF Part html5 Generally, the project uses the pdf.js plug-in to read the PDF file, but the reading experience is not ideal, so refer to the e-book reader on the mobile phone, and use the foreign e-book reader Link descriptionhttp://fliphtml5.comCreate an ebook example. The complete code has be ...

Posted by Gustav on Wed, 06 Nov 2019 08:28:53 -0800

iOS uses version number comparison between local and App Store to realize version update

The comparison version number is generally used to realize the function of version update. The pop-up window prompts the user to update or directly jump to the App Store. Get version information of APP in App Store Here we use iTunes's lookup interface, provided that you have published it to the App Store. Get the id of the app in the ...

Posted by Shazbot! on Wed, 06 Nov 2019 03:10:04 -0800

Thinking and feeling of the first reading of Kingfisher network image cache Library

The OC version of SDWebimage that I read before is mature due to the development trend of Swift. It's also time to practice (think of Andy Lau's practice), think, read and write while flying in the world. At first, I plan to read it from the beginning, but the Kingfisher version is limited to upgrading with the Swift version, so if you want to ...

Posted by gli on Tue, 05 Nov 2019 19:55:52 -0800

How to develop adaptive page quickly according to the size of design drawing

Two common solutions 1. Dynamically set the width and initial scale of the viewport 2. The solution of rem is to dynamically set font size with element Html Method 1: meta viewport You are familiar with the meta tag. First, let's look at the six properties of the meta viewport: Attribute name explain width Set the width of the viewpo ...

Posted by hmemnon on Tue, 05 Nov 2019 01:55:04 -0800

Deep analysis of thread pool in java thread series -- construction method

(it's more convenient to see the source code on the horizontal screen of mobile phone) Note: java source code analysis part is based on java version 8 unless otherwise specified. brief introduction The construction method of ThreadPoolExecutor is to create the entry of thread pool. Although it's relatively simple, it has a large amount of in ...

Posted by cyberRobot on Mon, 04 Nov 2019 16:18:44 -0800

The circled number in the java initial square is a marker maze that can be moved to other squares along the line

The circled numbers in the initial square are markers that can be moved to other squares along the line At each step of the puzzle, you can move the number of squares indicated by the currently occupied integer in the marked square The tag can move left or right along the line, but it can go through either end without ...

Posted by zyrolasting on Mon, 04 Nov 2019 08:33:23 -0800

The first harvest and thought of reading AFNetworking source code

Source address: https://github.com/AFNetworking/AFNetworking/tree/0.2.1 First, add the corresponding library to your Demo, set the MRC and set the new syntax according to the prompts, so that the project can run: Including support for HTTP: 1. Add NSAppTransportSecurity type Dictionary in Info.plist; 2. Under NSAppTransportSecurity, add nsallow ...

Posted by crazylegseddie on Sun, 03 Nov 2019 14:09:22 -0800

Implementation, difference and application scenario of anti shake and throttling

Application:In our development process, there will be some user operations, such as rolling events, input events, etc., which cause repeated calls to a function, with infinite frequency, overload the browser, and page jam. At this time, anti shake and throttling will be used to control the call frequency and reduce the browser load. Difference: ...

Posted by gevo12321 on Sun, 03 Nov 2019 11:01:55 -0800

Spring and spring MVC pure annotation integration

First of all, create a jar project in idea without creating any configuration files, including web.xml   First write the spring configuration class () package com.liy.config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annota ...

Posted by Comtemplative on Sun, 03 Nov 2019 10:27:19 -0800