Java
code.png
#Data_structure
#Output
#84
Example inputs for a given Data Structure:
Input:
string: codesleepcode
pattern: XYX
Output:
X: code
Y: sleep
Input:
string: codecodecode
pattern: XXX
Output:
X: code
#Output
#84
Example inputs for a given Data Structure:
Input:
string: codesleepcode
pattern: XYX
Output:
X: code
Y: sleep
Input:
string: codecodecode
pattern: XXX
Output:
X: code
DiffOddEven.png
759.6 KB
Java Program to calculate the Difference between the Sum of the Odd Level and the Even Level Nodes of a Binary Tree
#Source_code
#85
#Source_code
#85
Media is too big
VIEW IN TELEGRAM
For those of you who are facing midterm exams, project deadlines or just dealing with time management😅.
#meme
#meme
Java Program to add two matrices
We can add two matrices in java using binary + operator. A matrix is also known as array of arrays. We can add, subtract and multiply matrices
#Source_code
#90
We can add two matrices in java using binary + operator. A matrix is also known as array of arrays. We can add, subtract and multiply matrices
#Source_code
#90
CountNodes
613.6 KB
Java program to create a singly linked list of n nodes and count the number of nodes
#Source_code
#Singly_Linked_list
#94
#Source_code
#Singly_Linked_list
#94
ReverseList
645.6 KB
Java program to create a singly linked list of n nodes and display it in reverse order
#Source_code
#Singly_Linked_list
#reverse_order
#95
#Source_code
#Singly_Linked_list
#reverse_order
#95
Java Convert String to double
We can convert String to double in java using Double.parseDouble() method.
#Source_code
#Conversion
#98
We can convert String to double in java using Double.parseDouble() method.
#Source_code
#Conversion
#98
Java Convert Date to String
We can convert Date to String in java using format() method of java.text.DateFormat class.
format() method of DateFormat
The format() method of DateFormat class is used to convert Date into String. DateFormat is an abstract class. The child class of DateFormat is SimpleDateFormat. It is the implementation of DateFormat class.
#Source_code
#Conversion
#99
We can convert Date to String in java using format() method of java.text.DateFormat class.
format() method of DateFormat
The format() method of DateFormat class is used to convert Date into String. DateFormat is an abstract class. The child class of DateFormat is SimpleDateFormat. It is the implementation of DateFormat class.
#Source_code
#Conversion
#99