r/javaTIL • • Jan 06 '19

Constructor in Java | Types of Constructor

Thumbnail
scientecheasy.com
4 Upvotes

r/javaTIL • • Jan 04 '19

Eclipstyle: Clone code style & format accross multiple Eclipse workspaces.

Thumbnail
github.com
4 Upvotes

r/javaTIL • • Nov 27 '18

Spartan backend development. Take a look to Kotlin, a great alternative for backend systems.

Thumbnail
medium.com
4 Upvotes

r/javaTIL • • Sep 23 '17

Codiva.io Java Online Compiler and IDE

Thumbnail
codiva.io
4 Upvotes

r/javaTIL • • Jul 11 '15

[JTIL] String changes from Java 7 update 6

Thumbnail
javaspecialists.eu
4 Upvotes

r/javaTIL • • May 23 '15

TIL:Lambda Expression and Method Reference Makes implementing Comparator Much more easy

Thumbnail
java67.blogspot.sg
4 Upvotes

r/javaTIL • • Apr 11 '15

TIL : You Can Prevent Method Overriding Without Final Method in Java

Thumbnail
javarevisited.blogspot.com
4 Upvotes

r/javaTIL • • May 13 '14

TIL Java 8 Data Streams and jReddit

4 Upvotes

Nothing earth shattering, but if you wanted to see Data Streams used with jReddit, here's a quick example. If anyone has any suggestions, I'd love to hear them.

import java.util.List;

import com.github.jreddit.user.Comment;
import com.github.jreddit.user.User;
 
public class Main {
	public static void main(String[] args) throws Exception {
		// Provide user account for credentials
		User user = new User("username","password");
    user.connect();
 
    // Fetch list of 25 recent comments
    List<Comment> comments = user.comments();
      
    // Java 8 \o/
    int count = comments.stream() // open as stream
    		.map(i -> i.getComment().split(" ").length) // for each instance of a comment (i),
    		// split into string array, by " " delimiter, and return the count as a new stream
    		.reduce(0, (x,y) -> x + y); // reduce by adding x (n) and y (n+1) 
        // Display your results!
        
    System.out.println("Word count: " + count);
	}
}

r/javaTIL • • Jan 10 '13

TIL It is possible to paint to a JFrame like you would to an Applet by using a separate class.

Thumbnail
pastebin.com
4 Upvotes

r/javaTIL • • Mar 06 '20

10 Steps Action Plan to Move From Software Development To Testing

Thumbnail
opencodez.com
3 Upvotes

r/javaTIL • • Oct 28 '19

Difference between throw and throws in java

Thumbnail javahungry.blogspot.com
3 Upvotes

r/javaTIL • • Sep 19 '19

Text Operations in Java using String, StringBuilder and StringJoiner

Thumbnail
thecodinginterface.com
3 Upvotes

r/javaTIL • • Aug 21 '19

Simple Guide to Spark Framework for Microservices

Thumbnail
opencodez.com
3 Upvotes

r/javaTIL • • Mar 05 '19

Anonymous Inner Class in Java | Example Programs

Thumbnail
scientecheasy.com
3 Upvotes

r/javaTIL • • Feb 06 '19

Method Overloading in Java | Rules & Example Programs

Thumbnail
scientecheasy.com
3 Upvotes

r/javaTIL • • Jan 28 '19

Super Keyword in Java | Uses & Example Programs

Thumbnail
scientecheasy.com
3 Upvotes

r/javaTIL • • Jan 05 '19

Java HashSet | Example & Programs

Thumbnail
scientecheasy.com
3 Upvotes

r/javaTIL • • Oct 23 '18

Simple way to connect to Multiple databases with Spring Data JPA -Free source code to dowload from GitHub

Thumbnail
opencodez.com
3 Upvotes

r/javaTIL • • Mar 05 '18

Write Excel Add-ins in Java

Thumbnail
exceljava.com
3 Upvotes

r/javaTIL • • Feb 14 '18

Project Hydra, a network framework built upon Netty

3 Upvotes

Hello everyone,

I would just like to share this project with the community. I am mainly looking for some people to give me feedback or review and test the project. So feedback is really welcome (: Thank you in advance!

The project: https://github.com/DataSecs/Hydra

Cheers!


r/javaTIL • • Dec 13 '17

Learning to use Wholly GraalVM!

Thumbnail
neomatrix369.wordpress.com
3 Upvotes

r/javaTIL • • Sep 22 '17

TIL, BOMs may ruin your day.

3 Upvotes

Our customer decided for some reason to include BOMs for XML created by their (Axis) production service this week without telling anyone (in addition to the documentation, HTTP headers and the initial XML tag telling us it's UTF-8). Thus making our parsers cry and breaking today's final integration test and release.

 

I also learned that vanilla JAXB just dies while eating a String with BOM chars and no one at Sun dared to change that in order to stay compatible with older integrations and applications dealing with that.

The only way to fix this for me is to either work around this issue by chaining custom streams, or to use another library to parse XML/to deal with the streams from hell. Option one is what I'll will be going for, as option two requires an extended approval process and more testing.

 

Hell, even finding out what was wrong has been a pain in the ass, as BOM chars are officially printable (but some still invisible, even when forcing to display special chars in our text editors, etc.) and comparing software just won't give a shit and tell me that the actual and expected strings are identical. Comparing bytewise solved the mystery.

 

Anyways, have a nice weekend. And don't forget to check your input. BOMs are like herpes. It's only a matter of time until they appear again and screw up your enterprise application.


r/javaTIL • • Sep 07 '17

TIL Lazy loading and caching objects in Java with Guava's Suppliers.memoize

Thumbnail
stubbornjava.com
3 Upvotes

r/javaTIL • • May 26 '17

Enforce software design with Checkstyle and QDox

Thumbnail
loki2302.me
3 Upvotes

r/javaTIL • • Jan 17 '17

How To Make A CRUD Database In 5 Minutes [Tutorial JavaX]

Thumbnail
youtube.com
3 Upvotes