This functionality is already in Java. String.toLowerCase() and String.toUpperCase() will take care of it for you.
.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......
One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.
a write the algorithm to concatenate two given string
program to extract a given word from a file
a promlem to solve an equation or a assigment
No.
.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......
One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.
Check the documentation of the String class, for a method that searches for a substring.
You find a language that can be targeted towards the .NET Framework. What you are suggesting is something related to string manipulation and you can work with delimiters.
public class class1{public void changeCase(String str){String str1=str.toUpperCase();String str2=str.toLowerCase();System.out.println(str1);System.out.println(str2);System.out.println("After concatenation "+("to".concat("get").concat("her")));}public static void main(String[] args){class1 c1=new class1();c1.changeCase("Hello");}}
8086 assembly language program to check wether given number is perfect or not
Use the tolower() function. Example: char* a = 'X'; a = tolower(a); printf("%c", a);
a write the algorithm to concatenate two given string
program to extract a given word from a file
a promlem to solve an equation or a assigment
Use for loop declare string array str[] and string variable l= string length of string array j=l for i=0 to i=l/2 then temp=str[i] str[i]=str[j-1] str[j-1]=temp j=j-1 now print str array it will be reversed