Skip to content
#

Java

java logo

Java was originally developed as an alternative to the C/C++ programming languages. It is now mainly used for building web, desktop, mobile, and embedded applications. Java is owned and licensed through Oracle, with free and open source implementations available from Oracle and other vendors.

Here are 103,661 public repositories matching this topic...

iluwatar
iluwatar commented Oct 15, 2019

The project is using SonarCloud static code analysis. The latest results are showing that it has found several blocker and critical severity code smells. In this task those are fixed or marked as false positives. To mark false positives, SuppressWarnings annotation should be used in code as explained in the linked documentation.

Links:
[Blocker and critical severity code smells in SonarCloud](

advanced-java
yanglbme
yanglbme commented Apr 15, 2019

่‹ฑ้›„ๆ‹›ๅ‹Ÿ

ๆˆไธบ Doocs ้กน็›ฎ็ปดๆŠค่€…

ๆœฌ้กน็›ฎ advanced-java๏ผŒๅŒ…ๆ‹ฌ Doocs ๅผ€ๆบ็ป„็ป‡ไธ‹็š„ๆ‰€ๆœ‰้กน็›ฎ๏ผŒ้ƒฝๆฌข่ฟŽๅ„ไฝๆœ‹ๅ‹ๅ‚ไธŽๅฎŒๅ–„ใ€‚

ๅฆ‚ๆžœไฝ ๆไบค็š„ๅ†…ๅฎนๆœ‰ไปทๅ€ผ๏ผŒไธ”ๅ…ทๅค‡่ง„่Œƒๆ€ง๏ผŒๅฐ†ๆœ‰ๆœบไผšๆๅ‡ไธบ้กน็›ฎ็š„็ปดๆŠค่€…๏ผŒ็›ดๆŽฅๅ‚ไธŽ้กน็›ฎ็š„ reviewใ€merge ็ญ‰็ปดๆŠคๅทฅไฝœ๏ผŒๆไบคๅ†…ๅฎนๆ—ถไนŸๅฏไปฅ็›ดๆŽฅ push ๅˆฐ doocs/advanced-java ไธปๅˆ†ๆ”ฏ master ไธ‹๏ผŒๆ— ้กปๆไบค PR ็ญ‰ๅพ… reviewใ€‚

็›ฎๅ‰ advanced-java ๅชๆœ‰ [yanglbme](http

nicktrav
nicktrav commented Nov 1, 2018

Currently, OkHttp reaps "idle" connections (i.e. connections not in use) if either of the following is true:

  • a connection has not been used in a period greater than the idle timeout, or
  • the number of idle connections is greater than some threshold
      if (longestIdleDurationNs >= this.keepAliveDurationNs
          || idleConnectionCount > this.maxIdleConnections) {
      
eothein
eothein commented Dec 4, 2019
  • Documentation:

It would be nice if the official documentation explains how to use Retrofit together with co-routines together with the best practices regarding the asynchronous handling of requests. My students need to implement their calls using Retrofit and co-routines (following the tutorials in the Udacity course, but for documentatio

mall้กน็›ฎๆ˜ฏไธ€ๅฅ—็”ตๅ•†็ณป็ปŸ๏ผŒๅŒ…ๆ‹ฌๅ‰ๅฐๅ•†ๅŸŽ็ณป็ปŸๅŠๅŽๅฐ็ฎก็†็ณป็ปŸ๏ผŒๅŸบไบŽSpringBoot+MyBatisๅฎž็Žฐ๏ผŒ้‡‡็”จDockerๅฎนๅ™จๅŒ–้ƒจ็ฝฒใ€‚ ๅ‰ๅฐๅ•†ๅŸŽ็ณป็ปŸๅŒ…ๅซ้ฆ–้กต้—จๆˆทใ€ๅ•†ๅ“ๆŽจ่ใ€ๅ•†ๅ“ๆœ็ดขใ€ๅ•†ๅ“ๅฑ•็คบใ€่ดญ็‰ฉ่ฝฆใ€่ฎขๅ•ๆต็จ‹ใ€ไผšๅ‘˜ไธญๅฟƒใ€ๅฎขๆˆทๆœๅŠกใ€ๅธฎๅŠฉไธญๅฟƒ็ญ‰ๆจกๅ—ใ€‚ ๅŽๅฐ็ฎก็†็ณป็ปŸๅŒ…ๅซๅ•†ๅ“็ฎก็†ใ€่ฎขๅ•็ฎก็†ใ€ไผšๅ‘˜็ฎก็†ใ€ไฟƒ้”€็ฎก็†ใ€่ฟ่ฅ็ฎก็†ใ€ๅ†…ๅฎน็ฎก็†ใ€็ปŸ่ฎกๆŠฅ่กจใ€่ดขๅŠก็ฎก็†ใ€ๆƒ้™็ฎก็†ใ€่ฎพ็ฝฎ็ญ‰ๆจกๅ—ใ€‚

  • Updated May 20, 2020
  • Java
leetcode
azl397985856
azl397985856 commented Mar 19, 2020

ๆœ‰ไธ€ๅน…ไปฅไบŒ็ปดๆ•ดๆ•ฐๆ•ฐ็ป„่กจ็คบ็š„ๅ›พ็”ป๏ผŒๆฏไธ€ไธชๆ•ดๆ•ฐ่กจ็คบ่ฏฅๅ›พ็”ป็š„ๅƒ็ด ๅ€ผๅคงๅฐ๏ผŒๆ•ฐๅ€ผๅœจ 0 ๅˆฐ 65535 ไน‹้—ดใ€‚

็ป™ไฝ ไธ€ไธชๅๆ ‡ (sr, sc) ่กจ็คบๅ›พๅƒๆธฒๆŸ“ๅผ€ๅง‹็š„ๅƒ็ด ๅ€ผ๏ผˆ่กŒ ๏ผŒๅˆ—๏ผ‰ๅ’Œไธ€ไธชๆ–ฐ็š„้ขœ่‰ฒๅ€ผ newColor๏ผŒ่ฎฉไฝ ้‡ๆ–ฐไธŠ่‰ฒ่ฟ™ๅน…ๅ›พๅƒใ€‚

ไธบไบ†ๅฎŒๆˆไธŠ่‰ฒๅทฅไฝœ๏ผŒไปŽๅˆๅง‹ๅๆ ‡ๅผ€ๅง‹๏ผŒ่ฎฐๅฝ•ๅˆๅง‹ๅๆ ‡็š„ไธŠไธ‹ๅทฆๅณๅ››ไธชๆ–นๅ‘ไธŠๅƒ็ด ๅ€ผไธŽๅˆๅง‹ๅๆ ‡็›ธๅŒ็š„็›ธ่ฟžๅƒ็ด ็‚น๏ผŒๆŽฅ็€ๅ†่ฎฐๅฝ•่ฟ™ๅ››ไธชๆ–นๅ‘ไธŠ็ฌฆๅˆๆกไปถ็š„ๅƒ็ด ็‚นไธŽไป–ไปฌๅฏนๅบ”ๅ››ไธชๆ–นๅ‘ไธŠๅƒ็ด ๅ€ผไธŽๅˆๅง‹ๅๆ ‡็›ธๅŒ็š„็›ธ่ฟžๅƒ็ด ็‚น๏ผŒโ€ฆโ€ฆ๏ผŒ้‡ๅค่ฏฅ่ฟ‡็จ‹ใ€‚ๅฐ†ๆ‰€ๆœ‰ๆœ‰่ฎฐๅฝ•็š„ๅƒ็ด ็‚น็š„้ขœ่‰ฒๅ€ผๆ”นไธบๆ–ฐ็š„้ขœ่‰ฒๅ€ผใ€‚

ๆœ€ๅŽ่ฟ”ๅ›ž็ป่ฟ‡ไธŠ่‰ฒๆธฒๆŸ“ๅŽ็š„ๅ›พๅƒใ€‚

็คบไพ‹ 1:

่พ“ๅ…ฅ:
image = [[1,1,1],[1,1,0],[1,0,1]]
sr = 1, sc = 1, newColor = 2
่พ“ๅ‡บ: [[2,2,2],[2,2,0],[2,0,1]]
่งฃๆž:
ๅœจๅ›พๅƒ็š„ๆญฃไธญ้—ด๏ผŒ(ๅๆ ‡(

leakcanary
Armaxis
Armaxis commented Feb 6, 2020

Run following commands and enjoy the stream of warnings from Dokka:

rm -rf docs/api
./gradlew leakcanary-android-core:dokka leakcanary-android-instrumentation:dokka leakcanary-android-process:dokka leakcanary-object-watcher-android:dokka leakcanary-object-watcher:dokka shark-android:dokka shark-graph:dokka shark-hprof:dokka shark-log:dokka shark:dokka

Review errors and see if any of t

about learning Spring Boot via examples. Spring Boot ๆ•™็จ‹ใ€ๆŠ€ๆœฏๆ ˆ็คบไพ‹ไปฃ็ ๏ผŒๅฟซ้€Ÿ็ฎ€ๅ•ไธŠๆ‰‹ๆ•™็จ‹ใ€‚

  • Updated May 5, 2020
  • Java
WxJava

WxJava ๏ผˆๅพฎไฟกๅผ€ๅ‘ Java SDK๏ผ‰๏ผŒๆ”ฏๆŒๅŒ…ๆ‹ฌๅพฎไฟกๆ”ฏไป˜ใ€ๅผ€ๆ”พๅนณๅฐใ€ๅฐ็จ‹ๅบใ€ไผไธšๅพฎไฟก/ไผไธšๅทๅ’Œๅ…ฌไผ—ๅท็ญ‰็š„ๅŽ็ซฏๅผ€ๅ‘

  • Updated May 19, 2020
  • Java
IvanFarkas
IvanFarkas commented May 28, 2019

What's the ETA for updating the massively outdated documentation?

Please update all documents that are related building CNTK from source with latest CUDA dependencies that are indicated in CNTK.Common.props and CNTK.Cpp.props.
I tried to build from source, but it's a futile effort.

arangob
arangob commented Apr 28, 2020

Searched documentation and issues

I've looked on stackoverflow, ExoPlayer docs, Android developers responding to media buttons.

Question

I am developing an app that sets the exoPlayer's volume to 0 if the device is on silent or vibrate.
If the user interacts with the volume buttons, then I want to the exoPlayer's volume to be set to the AudioManager volume.
Issue: After setting the

You canโ€™t perform that action at this time.