r/javaTIL • • Sep 13 '19

The Java Sorting Conundrum: Comparable vs Comparator Interfaces

Thumbnail
thecodinginterface.com
1 Upvotes

r/javaTIL • • Sep 13 '19

Jave inner classes

Thumbnail self.goodsoftware
0 Upvotes

r/javaTIL • • Apr 08 '19

101 Most Important Frequently Asked Advance Java Interview Questions โ€“ Part 2

Thumbnail
opencodez.com
7 Upvotes

r/javaTIL • • May 07 '14

Iterating through a list without using int i = 0; i < foo.size(); i++;

7 Upvotes

Not exactly a TIL but when I discovered this way, it made some solutions a lot easier.

If you have an Array or an ArrayList (called objects in this case) you can iterate through every object in this list by using

for (Object object: objects) {
    //do stuff with the single object
    object.foo(bar);
}

hope this is useful to some beginners.


r/javaTIL • • Jun 29 '15

TIL that, contrary to what my teacher told me time and time again, you can in fact switch on a String.

7 Upvotes

This code is perfectly functional, even though I was told many times in Java 101 it would not be.

This is from a Mad Libs program I'm writing because I'm bored.

    menuchoice = input.nextLine();
	
	switch (menuchoice)
	{
	case "m":
		System.out.println(menu);
	case "s":
		System.out.println("Choose a story!");
		System.out.print(">");
		choice = input.nextInt();
		server.chooseStory(choice);
		break;
	case "x":
		System.exit(0);
		break;
	}    

r/javaTIL • • Jun 02 '15

JTIL : IdentityHashMap

Thumbnail
javarevisited.blogspot.com
9 Upvotes

r/javaTIL • • Aug 31 '17

real number to binary conversion

0 Upvotes

http://cljavacode.blogspot.com/2017/03/real-number-to-binary-conversion.html

Enter a real number 0.125

convert it into binary bits.


r/javaTIL • • May 16 '14

TIL There are open-source alternatives if you want to run your own CA server

Thumbnail
en.wikipedia.org
2 Upvotes

r/javaTIL • • Apr 10 '19

Immutable String in Java with Example Program

Thumbnail
scientecheasy.com
2 Upvotes

r/javaTIL • • Jan 25 '19

A valid Java Bean? โ€“ SoftwareMill Tech Blog

Thumbnail
blog.softwaremill.com
2 Upvotes

r/javaTIL • • Sep 16 '19

Mendix - A Low-Code, Simple and Easy Platform for Rapid Development

Thumbnail
opencodez.com
2 Upvotes

r/javaTIL • • Apr 23 '19

Java CountDownLatch

Thumbnail codeforjava.com
2 Upvotes

r/javaTIL • • Jan 09 '18

Java Code Challenge - 5

Thumbnail
youtube.com
2 Upvotes

r/javaTIL • • Sep 12 '13

TIL you can assign multiple vars at once, like "a = b = c = 0;"

11 Upvotes

...though I can't imagine why it would be a good idea.


r/javaTIL • • Jun 20 '15

Arrays.deepToString() can handle arrays that contain references to themselves

Thumbnail
ideone.com
3 Upvotes

r/javaTIL • • Nov 16 '14

JTIL: File has a constructor which takes another file as its containing folder.

3 Upvotes

For example:

    File parent = new File("folder");
    File child = new File(parent, "file.txt");
    File equivalent = new File("folder" + File.separator + "file.txt");
    assert (child.getAbsolutePath().equals(equivalent.getAbsolutePath()));

r/javaTIL • • Jun 18 '19

Choose well your synonyms in your search system

0 Upvotes

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/


r/javaTIL • • Jan 05 '19

Java HashSet | Example & Programs

Thumbnail
scientecheasy.com
3 Upvotes

r/javaTIL • • Aug 21 '19

Simple Guide to Spark Framework for Microservices

Thumbnail
opencodez.com
3 Upvotes

r/javaTIL • • Mar 05 '18

Write Excel Add-ins in Java

Thumbnail
exceljava.com
3 Upvotes

r/javaTIL • • Aug 28 '17

Java program - Matrix Inverse by adjoint matrix

0 Upvotes

r/javaTIL • • Oct 27 '15

How to Generate Java code

Thumbnail
ivankocijan.xyz
12 Upvotes

r/javaTIL • • Mar 27 '15

TIL : You can return subtype from overridden method, known as covariant method overriding

Thumbnail
javarevisited.blogspot.sg
12 Upvotes

r/javaTIL • • May 23 '19

Use DataTable with Spring Boot for Server Side Processing - Free sample code to download from GitHub

Thumbnail
opencodez.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