java


Questions (22)

1. Invalid character found in method name. HTTP method names must be tokens
2. Making sure a directory with given path exists in Java
3. How to get current Year in Java?
4. How to add given number of hours to Date Object in Java?
5. How to calculate time difference between two Timezones in Java
6. Difference between ClassNotFoundException vs NoClassDefFoundError in Java
7. Getting 'No EntityManager with actual transaction available for current thread' exception while removing some data
8. How to trim leading and trailing whitespaces in String in Java
9. How to convert String into Date in one line in Java
10. Unable to start Spring Boot + PostgreSQL App, Getting org.postgresql.util.PSQLException: FATAL: password authentication failed for user
11. How to print all module names with packages in Java9
12. How to print all module names in Java9
13. How to define variables in Java9 jshell
14. What are all the snippets are automatically loaded with Java9 JShell
15. How to use Java9 JShell
16. How to exit from Java9 JShell
17. How to write content from a String into File in Java?
18. Filter all files with a particular extension in Java
19. How to get Host name in Java
20. How to read a File content into String in Java?
21. How to copy file from one location to another location in Java?
22. How to create an ArrayList with values in one line in Java?

Posts (165)

1. Generating UUID using fasterxml UUID generator
2. Transforming List of Objects to List of Strings in Java
3. Does file exists utility function in Java
4. Reading file content in Java with single line of code
5. Reading File lines easily with Java8 streams
6. Scheduling a Task at fixed schedule using Timer in Java
7. Removing data from HashMap using removeIf in one line
8. Java program to convert given string to upper case
9. Java program to print given string in reverse order
10. Java program to find the index of a particular character in a given string
11. Java program to compare two strings are equal by ignoring the case
12. Java program to print character at given index in a given string
13. Java program to compare two strings are equal or not
14. Java program to replace spaces with hyphen in a string
15. Java program to Join two given strings
16. Java program to convert given string to lower case
17. Java program to find length of a string
18. Java program to convert rupees to dollars
19. Java program to convert dollars to rupees
20. Java program to convert days to milliseconds
21. Java program to convert hours to minutes
22. Java program to convert days to seconds
23. Java program to convert hours to milliseconds
24. Java program to convert hours to seconds
25. Java program to convert days to hours
26. Java program to convert kilograms to grams
27. Java program to convert grams to kilograms
28. Java program to convert miles to kilometers
29. Java program to convert kilometers to miles
30. Java program to convert inches to feet
31. Java program to convert feet to inches
32. Java program to convert millimeters into centimeters
33. Java program to convert centimeters into millimeters
34. Java program to convert fahrenheit to celsius
35. Java program to print factorial of given number
36. Java program to calculate square area and circumference
37. Java program to calculate circle circumference
38. Java program to calculate circle area
39. Java program to calculate parallelogram circumference
40. Java program to calculate parallelogram area
41. Java program to calculate trapezoid circumference
42. Java program to calculate trapezoid area
43. Java program to calculate rectangle area and circumference
44. Java program to calculate triangle circumference
45. Java program to calculate triangle area
46. Java program to generate random string
47. Java program to show current time in seconds
48. Java program to show current time in milliseconds
49. Java program to find largest number from given 3 numbers
50. Java program to calculate salary hike
51. Java program to calculate discount
52. Java program to print sum of n natural numbers
53. Java program to calculate interest
54. Java program to print tables from 1 to 20
55. Java program to print average of given 3 numbers
56. Java program to take a number as input and tells its even or odd number
57. Java program to take a number as input and calculate the square root of given number
58. Java program to take a number as input and calculate the square of that number
59. Java program to take a number as input and tells its positive or negative
60. Java program to multiply given two numbers
61. Java program to take a year as input and tells whether it's a leap year or not
62. Java program to print table for given number
63. Java program to find largest number from given 2 numbers
64. Java program to take two numbers from user and add those two numbers
65. Java program to print present date
66. Java program to print present month
67. Java program to print present day
68. Java program to print present year
69. Java program to take a max limit from user and generate a random number till that number
70. Java program to take a number between 0 to 9 and print the word representation for that number
71. Java program to take birth year and tells age
72. Java program to print numbers from 1 to 10 using while loop
73. Java program to print numbers from 1 to 10 using for loop
74. Java program to take age and tell whether its infant or child or adult
75. Java program to take a character and tells its vowel or consonant
76. Java program to scan name of user and say hello with name
77. Java program to print a multiline Hello World!
78. Java program to print Hello World!
79. Write a program in java to find whether a string is ANAGRAM or not?
80. WebDriver Locators in selenium
81. How to prevent subclass from serialization in java
82. getLocation(), getSize(), getTagName() and getText() WebElement methods in selenium webdriver
83. Difference between isDisplayed() and isEnabled() methods in selenium webdriver
84. How Set or HashSet works internally in Java
85. Custom Serialization Example in Java
86. Return statement in Try(),catch() and finally() blocks
87. Single and Multiple Files Upload Example in Spring MVC
88. Hibernate c3po Connection pooling
89. Sample example for verify the page title in selenium WebDriver
90. WebElement getAttribute() example in selenium webdriver
91. Sample examples for sendKeys(),click() and clear() WebElement methods in selenium WebDriver
92. WebElement and WebElement Methods in selenium WebDriver
93. Comparator Example in Java
94. Difference between findElement and findElements with example in selenium WebDriver
95. WebDriver methods in selenium
96. Creating Immutable Class in java
97. Try Block with System.exit()
98. Sample selenium test scripts for navigating an application
99. WebDriver script that opens browser and searches today's weather in google.com
100. Java program to find Area, Perimeter of a Rhombus
101. Java program to find Area, Perimeter of a Parallelogram
102. Java program to find Area, Perimeter & Length of diagonal of a Square
103. Java program to find Area, Perimeter & Length of diagonal of a Rectangle
104. How to calculate number of days between two given dates
105. How to remove spaces at beginning and at ending in Java
106. Write Hello World program without using Semicolons
107. Modules & Their packages loaded by default in Java9
108. Java program to find the IP Address
109. Java9 example for using ifPresentOrElse on OptionalInt Object
110. Enhanced Deprecation annotation in Java9
111. Java9 way of Creating Immutable Lists, Sets, and Maps
112. Java 9 Development Environment Setup with Eclipse IDE
113. Java program to sum all the elements of an Array
114. Java program to print all tables (from 1 to 20)
115. Java program to print tables
116. Right Angled Triangle with stars in Java
117. Reverse a given number in Java
118. Generating random number in Java
119. Java program to find the given number is Prime number or not
120. Java program to find the given number is Even / Odd
121. Even OR Odd program in Java
122. Java If condition with And, OR Operations demonstration with simple example
123. Fibonacci series program in Java
124. Factorial program in Java
125. Discount Calculator program in Java
126. Calculator Java program
127. Basic String operations in Java
128. Basic Mathematical operations on Integer numbers & Floating point numbers in Java
129. Java program to calculate Area and Circumference of a Circle
130. Java program to scan Age and print Infant or Child or Adult
131. How to convert Date to Instant and Instant to Date in Java
132. Multithreading in Java
133. Installing latest version of Java in Ubuntu 16.04
134. How to convert MultipartFile to java.io.File in Spring
135. How to clone a Git repository programmatically using Java
136. How to convert String into long in Java?
137. How to convert String into boolean in Java?
138. How to convert String into double in Java?
139. How to convert String into float in Java?
140. How to convert String into int in Java?
141. Looping over a Map using forEach (Java 8 style)
142. Looping over a List using forEach (Java 8 style)
143. How to get current Year, Month, Date, Hour, Minute & Second in Java
144. How to generate universally unique identifier (UUID) in Java
145. How to get current time in milliseconds using Java?
146. How to download an image from Internet using Java?
147. File Handling in Java
148. Collections in Java
149. Everything about Classes & Objects in Java
150. Everything about Java Strings
151. Control Flow Statements
152. Arrays in Java
153. Java Variables
154. Java Primitive Data Types
155. Java - Hello World Program
156. Object Oriented Programming Concepts (OOPS)
157. Installing Java & Setting up for your first program
158. Java - History
159. Java Complete Tutorial
160. Java One-liners
161. CRUD operations using Spring Boot + MongoDB
162. How to use Iterator to read all items
163. How to concatenate strings in Java forEach loop
164. Iterating on a List in java (All possible ways)
165. Java 9 release date


Show All Tags