/r/javaTIL

Photograph via snooOG

A place for sharing something new you've learned about the Java programming language. Share code snippets, discuss ideas, and provide feedback to other coders!

Welcome to /r/javaTIL! This is a place designed to share interesting things you've learned to do in Java, as well as to discover new ideas from other redditors. Posts can range from something cool you picked up in your 101 class, to much more complicated things from the world beyond school.

Please remember to always be respectful, but don't be afraid to give people feedback on their ideas!

There are only a few basic rules:

  • Please don't criticize without making suggestions (for example, "Your programs suck.")
  • All post must be at least loosely related to Java(No Javascript!! Android, Lejos and other Java-type things are welcome though)
  • Be nice! It can be a daunting prospect to put your ideas up for discussion as a beginner

Feel free to message the mod if you have any feedback or questions.

Related Subreddits

/r/java

/r/javahelp

/r/programming

/r/javaTIL

6,964 Subscribers

0

Download and Installation of JDK

2 Comments
2020/04/16
21:12 UTC

3

Type safe hashmap in java

I have created type safe hashmap in Java. The hashmap can store any type of object and retrieve the object without explicit cast:

http://millionstrengthknowledge.com/resource/java/programming/typeSafeMap.html

4 Comments
2020/03/17
12:11 UTC

1

TIL one interesting idea about type of "identifier" variable

Author of one of Java learning books recommend to use String as ID variables, because you don't do math to them and by using String you secure yourself from int/long/etc choice errors in advance

What do you think about this?

7 Comments
2019/11/14
11:31 UTC

0

Jave inner classes

0 Comments
2019/09/13
00:00 UTC

0

Subclass In Java

Which class cannot be a subclass in java?

A. Abstract class

B. Parent class

C. Final class

D. None of the above

5 Comments
2019/07/27
18:21 UTC

6

A Simple Websocket Application in SpringBoot - Complete Source Code to download

Websocket is used to develop two way communication between server and browser. For example, in a chat application, if a user sends a message to a different user, the the application sends that message to the server first and the server informs the application of the second user . If we don’t use websocket, the application or the client will have to pull the server data continuously for any new updates.

In Sprint Boot, we can easily create a websocket application. In this tutorial, I will show you how to create a websocket server in Spring boot. We will learn how to connect and disconnect from a socket server and how to send a simple text message. The client will subscribe to the server, it will accept a string and push a separate string to the subscriber client.

https://www.opencodez.com/java/simple-websocket-application-springboot.htm

0 Comments
2019/07/26
14:49 UTC

6

TIL how to use Seeds Using HashCodes and Random() in Java

0 Comments
2019/07/14
14:36 UTC

0

Choose well your synonyms in your search system

Choose well your synonyms in your search system

📷

One of the many definitions for synonyms is: “a word or phrase that means exactly or nearly the same as another word or phrase in the same language, for example shut is a synonym of close.

However, we often find that the concept of synonyms can be confused when using this functionality as we try to match similar products that we want to be displayed within a search results list through cataloguing the values ​​of their characteristics but, in many cases, without these actually being a true synonym.

https://www.empathy.co/blog/applying-synonyms-choose-well-and-increase-the-findability-of-your-site/

0 Comments
2019/06/18
12:02 UTC

5

How HashMap works internally in Java: A debug approach

0 Comments
2019/06/16
20:55 UTC

Back To Top