Learn from Leaders, Learn from ABC. Watch our latest technical videos in your language: For Hindi:- bit.ly/2TRuGVP For Kannada:- bit.ly/31NH63M For Telugu:- bit.ly/2MuYRRP For Tamil:- bit.ly/2Num5Hz
@ABCforTechnologyTraining5 жыл бұрын
Do you have any questions on this topic? Please share your feedback in the comment section below and we'll have our experts answer it for you. Thanks for watching the video
@riyagarg97065 жыл бұрын
Sir, You are such a great trainer. Please upload more videos on java related to other topics🙏
@nikhilkumargiri42665 жыл бұрын
Can I valid for user input.i was trying this but only the letter before the string was converting.
@ABCforTechnologyTraining5 жыл бұрын
No worries. Reply to this comment with your program code. We'll fix it for you. Happy Coding!!
@gaurisharma22534 жыл бұрын
Sir your explanation is just great....do u teach python, JavaScript too??
@umarwani48105 жыл бұрын
But sir without using a condition for white spaces, still we r getting the desired output. 32-32=0 And char value of 0 is null.. Then why it is showing space
@ashwinilohar11695 жыл бұрын
same doubt I also have .
@muhammadsibtain48555 жыл бұрын
Sir by charAt(i) we can access the string char by using for loop
@madhupreethi85545 жыл бұрын
Sir can't we use replace() for spaces other than if comdition?
@ABCforTechnologyTraining5 жыл бұрын
replace() method is designed to "Replace" all occurrences of the old sequence of characters with the new sequence of characters. Please note, in our case, we are not supposed to REPLACE the spaces with any other character in the output, instead, spaces should be RETAINED as it is in the output. Hence if condition will ensure to skip the spaces for case conversion without replacing them with any other character/s.
@mopurinandini85865 жыл бұрын
Sir,how to find the string length,if the input should be taken by a user.it can be a sentence only with alphabets and spaces,no special characters are allowed,I tried some methods Sir,but its showing the length of only first word before space
@maksaini75155 жыл бұрын
if(y[i]! =' ') invalid character constant error is coming what is the way to solve it.
@ABCforTechnologyTraining5 жыл бұрын
Please reply to this comment with your complete program code. We'll look into it.
@GulbargaRamNavamiUstav5 жыл бұрын
Hello sir... while converting from uppercase to lowercase output is showing '@' symbol at spaces... whats the issue sir?
@GulbargaRamNavamiUstav5 жыл бұрын
ASCII value for space is 32 and for that y(i)+32 is 64 ascii value means it is giving @ result at space... if we want space than what we do sir
@ankitshrivastava17724 жыл бұрын
This will also give the same output while(i!=arr.length) { if(arr[i]==' ') { System.out.print(arr[i]); i++; } arr[i]= (char) (arr[i]-32); System.out.print(arr[i]); i++; } }