Articles by Mohammad Irfan
Scala Howto's
- Companion Objects in Scala
- How to Add Elements to a Map in Scala
- How to Get the Current Timestamp in Scala
- Sealed Traits in Scala
- How to Getting List Elements in Scala
- How to Find a Substring of String in Scala
- How to Sort a List in Scala
- Difference Between && and & Operators in Scala
- How to Fill an Array in Scala
- How to Format Strings in Scala
- The andThen Function in Scala
- The break Statement in Scala
- The main() Method in Scala
- The Underscore Placeholder in Scala
- How to Check Scala Version in Scala
- How to Exit From Scala Shell
- Difference Between Object and Class in Scala
- How to Create a List in Scala
- How to Return a Value in Scala
- The apply() Function in Scala
- The foreach Loop in Scala
- try...catch in Scala
Java Howtos
- How to Create Timer in JavaFx
- Associative Array in Java
- How to Override the CompareTo Method in Java
- Null and Empty String in Java
- Static Block in Java
- varargs in Java
- BiFunction Interface in Java
- Double in Java
- How to Convert ArrayList to Set in Java
- Method to Calculate Factorial in Java
- Parameters vs Arguments in Java
- The Stream Reduce Operation in Java
- What is Predicate in Java
- What is the /= Operator in Java
- How to Check Java version
- Array Passed By Value or Passed By Reference in Java
- How to Set JAVA_HOME Variable in Java
- What is Reflection in Java
- flatMap in Java
- How to Convert Stream to List in Java
- How to Get Unicode Characters from its Number in Java
- How to Ignore Upper Case and Lower Case in Java
- Fix the Reach End of File While Parsing Error in Java
- How to Convert String to LocalDate in Java
- How to Fix the Bad Operand Types Error in Java
- How to Fix the Could Not Find or Load Main Class Error in Java
- Stream Filter in Java
- How to Fix the NoSuchElementException Error in Java
- How to Print Boolean Value Using the printf() Method in Java
- How to Sort a List Alphabetically in Java
- console.log in Java
- How to Compare Java Enum Using == or equals() Method in Java
- How to Return Nothing From a Function in Java
- How to Use the System.exit() Method in Java
- Runnable VS Callable Interface in Java
- How to Cast Variables in Java
- How to Read Input from System.in in Java
- How to StringUtils in Java
- The *= Operator in Java
- The Max Value of an Integer in Java
- How to Check if String Contains a Case Insensitive Substring in Java
- Servlet in Java
- How to Compile Multiple Java Files Using a Single Command in Java
- How to Get the Square of a Double Value in Java
- Minimum and Maximum Value of Integer in Java
- The %= Operator in Java
- Unhandled Exception in Java
- Char vs String in Java
- ConcurrentHashMap vs Hashtable in Java
- How to Add Objects to an Array in Java
- How to Create swing timer in Java
- List of Ints in Java
- Transient in Java
- Virtual Function in Java
- Checked and Unchecked Exceptions in Java
- How to Convert Integer to Int in Java
- How to Replace a Backslash With a Double Backslash in Java
- The Difference Between ArrayList and LinkedList in Java
- The Difference Between the != and =! Operator in Java
- How to Convert Int to ASCII in Java
- How to Convert Int to Byte in Java
- How to Convert Long to Double in Java
- How to Initialize Char in Java
- Phone Number Data Type in Java
- What Is Monitor in Java
- base64.decode in Java
- How to Check if Java is 64 bit or 32 bit
- How to Convert JSON to Java object
- How to Convert JSON to XML in Java
- How to Double max value in Java
- How to Start a new thread in Java
- How to Check Empty String in Java
- How to Convert Int to Integer in Java
- How to Represent Empty Char in Java
- The Char equals Method in Java
- The Repaint() Method in Java
- What Is a Driver Class in Java
- How to Implement Multiple Interfaces in Java
- How to Initialize an Array in Constructor in Java
- How to Make a Java File Executable
- What Is Java Bean
- How to Create Map in Java
- Java typeof Operator
- The Arrow Operator -> in Java
- Difference Between an Interface and an Abstract Class in Java
- How to Get ArrayList of Int Array in Java
- How to Get Character in String by Index in Java
- How to Obfuscate Java Codes
- How to Print Objects in Java
- How to Set Classpath in Java
- How to Use KeyListener in Java
- Java system.out.println() Method
- How to Add a Background Image in JavaFX
- How to Convert String to ArrayList in Java
- How to Get the First Character of a String in Java
- How to Get the Last Element From an ArrayList in Java
- How to Get the User's Home Directory in Java
- How to Overload a Constructor in Java
- The Difference Between Size and Length in Java
- The Difference Between Static and Dynamic Binding in Java
- How to Append Text to a Text File in Java
- How to Convert Double to String in Java
- How to Extend Two Classes in Java
- How to Increase an Array Size in Java
- How to Pass an Array to a Method in Java
- How to Sort a String Array Alphabetically in Java
- The XOR Operator in Java
- How to Access a Variable From Another Class in Java
- How to Break Nested Loops in Java
- How to Convert Boolean to Int in Java
- How to Convert String Array Into Int Array in Java
- How to Get the Sum of an Array in Java
- How to Initialize All Array Elements to Zero in Java
- How to Resize an Array While Keeping the Current Elements in Java
- How to Clear an Array in Java
- How to Connect a MySQL Database in Java
- How to Exit a While Loop in Java
- How to Get a Keyboard Input in Java
- How to Pass a Method as a Parameter in Java
- How to Rename a File in Java
- What Is a Null Pointer Exception in Java
- args Parameter in Java
- Difference Between Hashmap and Map in Java
- Difference Between Hashtable and Hashmap in Java
- How to Compare Two Integers in Java
- How to Create An Empty Array in Java
- How to Import Custom Class in Java
- Java Default Parameters
- Daemon Thread in Java
- How to Convert Float to String and String to Float in Java
- How to Convert Object to String in Java
- How to Format Double Value in Java
- How to Implement Key Value Pair in Java
- How to Read XML File in Java
- How to Split a String by Space in Java
- Difference Between i++ and ++i Operators in Java
- How to Convert Double to Int in Java
- How to Create Global Variable in Java
- How to Generate Random Number Within a Specified Range in Java
- How to Get Current TimeStamp in Java Date
- How to Iterate Through List in Java
- Question Mark and Colon in Java
- Relative Path in Java
- How to Check if an Array Contains Int in Java
- How to Convert Char Array to Int in Java
- How to Convert Inputstream to Byte Array in Java
- How to Get Char Array's Length in Java
- How to Do Power in Java
- How to Do String Interpolation in Java
- How to Call a Method in Another Class in Java
- How to Get the File Extension of a File in Java
- How to Get the Current Working Directory in Java
- How to Iterate Through HashMap in Java
- How to Sort a Map by Value in Java
- How to Delay Few Seconds in Java
- How to Reverse a String in Java
- How to Sort Array Elements in Java
- How to Read All Files of a Folder in Java
- How to Convert an Arraylist to a String in Java
- How to Print a Float With 2 Decimal Places in Java
- How to Remove the Last Character From the String in Java
- How to Convert a String to an Int in Java
- How to Convert Date to String in Java
- How to Print HashMap in Java
- How to Remove Punctuation From String in Java
- How to Iterate Over Each Element of Map in Java
- How to Remove Whitespace From String in Java
- How to Check Whether a String Contains a Substring in Java
- How to Check if a String Is a Number in Java
- How to Check Whether an Array Is Null/Empty in Java