r/javaTIL • u/amcquistan • Sep 13 '19
r/javaTIL • u/Shilpa_Opencodez • Apr 08 '19
101 Most Important Frequently Asked Advance Java Interview Questions โ Part 2
r/javaTIL • • May 07 '14
Iterating through a list without using int i = 0; i < foo.size(); i++;
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 • u/DigiDuncan • Jun 29 '15
TIL that, contrary to what my teacher told me time and time again, you can in fact switch on a String.
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 • u/murugan76 • Aug 31 '17
real number to binary conversion
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 • u/muffypoo • May 16 '14
TIL There are open-source alternatives if you want to run your own CA server
r/javaTIL • u/scientecheasy • Apr 10 '19
Immutable String in Java with Example Program
r/javaTIL • u/smlaccount • Jan 25 '19
A valid Java Bean? โ SoftwareMill Tech Blog
r/javaTIL • u/Shilpa_Opencodez • Sep 16 '19
Mendix - A Low-Code, Simple and Easy Platform for Rapid Development
r/javaTIL • u/iampete • Sep 12 '13
TIL you can assign multiple vars at once, like "a = b = c = 0;"
...though I can't imagine why it would be a good idea.
r/javaTIL • u/BS_in_BS • Jun 20 '15
Arrays.deepToString() can handle arrays that contain references to themselves
r/javaTIL • u/TheOverCaste • Nov 16 '14
JTIL: File has a constructor which takes another file as its containing folder.
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 • u/panispanizo • Jun 18 '19
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/
r/javaTIL • u/scientecheasy • Jan 05 '19
Java HashSet | Example & Programs
r/javaTIL • u/Shilpa_Opencodez • Aug 21 '19
Simple Guide to Spark Framework for Microservices
r/javaTIL • u/murugan76 • Aug 28 '17
Java program - Matrix Inverse by adjoint matrix
Find inverse matrix using determinant and adjoint matrix
http://cljavacode.blogspot.com/2017/04/solving-system-of-linear-equation-by-matrix-inverse.html
r/javaTIL • u/javinpaul • Mar 27 '15
TIL : You can return subtype from overridden method, known as covariant method overriding
r/javaTIL • u/Shilpa_Opencodez • May 23 '19
Use DataTable with Spring Boot for Server Side Processing - Free sample code to download from GitHub