Java
Sunday, 31 March 2024
Reverse Words in a Sentence
Count Specific Character in a String
Merge Two arrrays and Sort
Remove duplicate values of an array
Calculate Total
Write a Java program to calculate the total of the numbers of an array
Tuesday, 30 January 2024
System.out.println()
System
It is a final clas
Has private constructor
Doesn;t allow to instantiated
Provide facilities to standard input ,output
out
static method
It is used to display output
println
Method in printStream class
It takes one argument
Data type of argument is String
StringBuffer and StringBuilder
StringBuffer
Synchronized
Thread safe
StringBuilder
Not synchronized
Not thread safe
Older Posts
Home
Subscribe to:
Posts (Atom)
Reverse Words in a Sentence
Second Largest Number In Array
public static int second ( int [] list){ int secondLargest = 0 ; Set<Integer> values = new HashSet<...
Count the vowels
public static int countVowels(String name){ int count = 0 ; List<Character> values = new ArrayList<>(); for (...
System.out.println()
System It is a final clas Has private constructor Doesn;t allow to instantiated Provide facilities to standard input ,output out static met...