Skip to content

Commit

Permalink
Update java8-questions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
learning-zone committed Feb 10, 2020
1 parent 9db4a64 commit 9882c25
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions java8-questions.md
Expand Up @@ -577,6 +577,10 @@ LocalDate
.with ( TemporalAdjusters.nextOrSame ( DayOfWeek.SATURDAY ))
.with ( TemporalAdjusters.next ( DayOfWeek.SATURDAY ));
```
<div align="right">
<b><a href="#">↥ back to top</a></b>
</div>

#### Q. How to get the current time in local time accurate to milliseconds using the Date Time API?
```java
LocalDateTime.ofInstant ( new Date().toInstant(), ZoneId.systemDefault());
Expand Down Expand Up @@ -607,6 +611,10 @@ Base64 contains 6 basic methods:
`getEncoder() / getDecoder()`- returns a base64 encoder / decoder conforming to the RFC 4648 standard ; getUrlEncoder()/ `getUrlDecoder()`- returns URL-safe base64 encoder / decoder conforming to RFC 4648 standard ;
`getMimeEncoder() / getMimeDecoder()`- returns a MIME encoder / decoder conforming to RFC 2045 .

<div align="right">
<b><a href="#">↥ back to top</a></b>
</div>

#### Q. How to create a Base64 encoder and decoder?
```java
// Encode
Expand Down

0 comments on commit 9882c25

Please sign in to comment.