public class SplitReverse //All the Program contains class
{
public static void main(String[] args) //Method of Program
{
int a=0,i;
String s="Hello All. How Are You? i am learning JAVA.";
String[] s1=s.split(" ");//Split the variable as per space
System.out.println(s1.length);//print stream length of the string
for(i=s1.length;i>0;i--)
{
System.out.println(" "s1[i-1]);//print stream Reverse of String
}
}
}
INTERVIEW QUESTION FOR JAVA
Java program for EMPLOYEE DETAILS
Java program for MULTIPLE THREADS ACCESSING ONE METHOD
Java program for SINGLE THREADS ACCESSING ONE METHOD
Java program for Strin Reverse
java Program for Twin Prime numbers
JAVA PROGRAM FOR EQUILATERAL TRIANGLE
JAVA PROGRAM FOR RIGHT ANGLE TRIANGLE
JAVA PROGRAM FOR SORTING OF ARRAY MINIMUM TO MAXIMUM WITHOUT USING SORTING METHOD
Java Program for Sorting Of Array Maximum to Minimum WITHOUT USING SORTING METHOD
JAVA PROGRAM FOR TO PRINT PRIME NUMBERS
JAVA PROGRAM FOR FIZZBIZZ , FIZZ BIZZ TEST
{
public static void main(String[] args) //Method of Program
{
int a=0,i;
String s="Hello All. How Are You? i am learning JAVA.";
String[] s1=s.split(" ");//Split the variable as per space
System.out.println(s1.length);//print stream length of the string
for(i=s1.length;i>0;i--)
{
System.out.println(" "s1[i-1]);//print stream Reverse of String
}
}
}
INTERVIEW QUESTION FOR JAVA
Java program for EMPLOYEE DETAILS
Java program for MULTIPLE THREADS ACCESSING ONE METHOD
Java program for SINGLE THREADS ACCESSING ONE METHOD
Java program for Strin Reverse
java Program for Twin Prime numbers
JAVA PROGRAM FOR EQUILATERAL TRIANGLE
JAVA PROGRAM FOR RIGHT ANGLE TRIANGLE
JAVA PROGRAM FOR SORTING OF ARRAY MINIMUM TO MAXIMUM WITHOUT USING SORTING METHOD
Java Program for Sorting Of Array Maximum to Minimum WITHOUT USING SORTING METHOD
JAVA PROGRAM FOR TO PRINT PRIME NUMBERS
JAVA PROGRAM FOR FIZZBIZZ , FIZZ BIZZ TEST
This comment has been removed by the author.
ReplyDelete