public class RemoveSpace{
public static void main(String args[]){
String str = "8085";
Sysytem.out.println(str.trim());
}
}
Get The Desired OutPut....
write a lex program to delete space from the program
what is string
i dont no string for servlate
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......
write a lex program to delete space from the program
what is string
i dont no string for servlate
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
i am sam
This is an assignment not a question.
what is if(!(str[i]==32))
.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......
what is if(!(str[i]==32))
[ string toupper $str ] or [ string tolower $str ]
No.
final String[] days = new String[] {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};