随笔分类 -  Java

Computer Science is evolving so fast... I'm eternally a student. Here're some of my notes.
摘要:Java TreeMap is a Red-Black tree based implementation of Java’s Map interface. Java TreeMap是Java Map接口的基于红黑树的实现 The entries in a TreeMap are always so 阅读全文
posted @ 2020-07-02 16:42 PrimerPlus 阅读(184) 评论(0) 推荐(0)
摘要:Java Palindrome tutorial shows how to work with palindromes in Java. Java Palindrome教程展示了如何在Java中使用回文 Palindrome is a word, number, phrase, or other s 阅读全文
posted @ 2020-07-02 14:41 PrimerPlus 阅读(176) 评论(0) 推荐(0)
摘要:Java Consumer tutorial shows how to work with the Consumer functional interface in Java. 如何使用Java中的Consumer函数式接口 Consumer Java Consumer is a functiona 阅读全文
posted @ 2020-07-02 13:40 PrimerPlus 阅读(200) 评论(0) 推荐(0)
摘要:In programming, bitwise shift operators, >> means arithmetic right shift, >>> means logical right shift, the differences: 在编程中,按位运算符,>>表示算数右移,>>>表示逻辑右 阅读全文
posted @ 2020-06-30 15:28 PrimerPlus 阅读(3014) 评论(0) 推荐(2)
摘要:ArrayList in Java is used to store dynamically sized collection of elements. Contrary to Arrays that are fixed in size, an ArrayList grows its size au 阅读全文
posted @ 2020-06-30 14:16 PrimerPlus 阅读(210) 评论(0) 推荐(0)
摘要:In this tutorial, we will learn about the Java HashMap class and its methods with the help of examples. The HashMap class of the Java collections fram 阅读全文
posted @ 2020-06-28 15:40 PrimerPlus 阅读(215) 评论(0) 推荐(0)
摘要:Java HashMap is a hash table based implementation of Java’s Map interface. A Map, as you might know, is a collection of key-value pairs. It maps keys 阅读全文
posted @ 2020-06-28 14:24 PrimerPlus 阅读(181) 评论(0) 推荐(0)
摘要:This article shows you five examples to convert a string into a binary string representative or vice verse. 本文向您展示了五个示例,这些示例将字符串转换为二进制字符串表示形式,反之亦然。 Co 阅读全文
posted @ 2020-06-24 01:28 PrimerPlus 阅读(367) 评论(0) 推荐(0)
摘要:In this tutorial, we will learn about the Java ArrayList class. We will learn about different ArrayList operations and methods with the help of exampl 阅读全文
posted @ 2020-06-23 01:31 PrimerPlus 阅读(215) 评论(0) 推荐(0)
摘要:Lambda expressions were introduced in Java 8 and they became the talk of the town as soon as they arrived. Java has evolved a lot with time. It has in 阅读全文
posted @ 2020-06-22 18:19 PrimerPlus 阅读(151) 评论(0) 推荐(0)
摘要:Quite often a Java Stream or other component needs an object passed to it in order to perform some type of calculation or process, but when the proces 阅读全文
posted @ 2020-06-22 17:50 PrimerPlus 阅读(177) 评论(0) 推荐(0)
摘要:Syntax of Lambda Expressions A lambda expression consists of the following: A comma-separated list of formal parameters enclosed in parentheses. The C 阅读全文
posted @ 2020-06-17 01:19 PrimerPlus 阅读(117) 评论(0) 推荐(0)
摘要:In this article, you’ll learn how to format Date and Time represented using Date, LocalDate, LocalDateTime, or ZonedDateTime to a readable String in J 阅读全文
posted @ 2020-06-16 10:30 PrimerPlus 阅读(168) 评论(0) 推荐(0)
摘要:Level 1 Create a class named 'Student' with String variable 'name' and integer variable 'roll_no'. Assign the value of roll_no as '2' and that of name 阅读全文
posted @ 2020-06-16 00:27 PrimerPlus 阅读(734) 评论(0) 推荐(0)
摘要:In this article, you’ll find several examples to get the current date, current time, current date & time, current date & time in a specific timezone i 阅读全文
posted @ 2020-06-15 13:56 PrimerPlus 阅读(214) 评论(0) 推荐(0)
摘要:How to delete a directory recursively with all its subdirectories and files in Java In this short article, you’ll learn how to delete a directory recu 阅读全文
posted @ 2020-06-12 13:21 PrimerPlus 阅读(171) 评论(0) 推荐(0)
摘要:There are various ways in which you can create a new file in Java. In this article, I’ve outlined the two most recommended way of creating new files. 阅读全文
posted @ 2020-06-11 16:50 PrimerPlus 阅读(210) 评论(0) 推荐(0)
摘要:Classes and Objects are basic concepts of Object Oriented Programming which revolve around the real life entities. Class A class is a user defined blu 阅读全文
posted @ 2020-06-08 23:57 PrimerPlus 阅读(155) 评论(0) 推荐(0)
摘要:1. Write a program in Java to print the Floyd's Triangle. package com.w3resource; import java.util.Scanner; public class FloydTriangle { public static 阅读全文
posted @ 2020-06-07 22:40 PrimerPlus 阅读(315) 评论(0) 推荐(0)
摘要:1. Java Program to Reverse a Sentence Using Recursion learn to reverse a given sentence using a recursive loop in Java. Example: Reverse a Sentence Us 阅读全文
posted @ 2020-06-07 13:14 PrimerPlus 阅读(131) 评论(0) 推荐(0)