No video

How to Reverse a String in Java

  Рет қаралды 194,864

Telusko

Telusko

Күн бұрын

Join the live batch : www.telusko.com...
40% off on selected courses only for Subscribers, to know more send an email on teluskotraining@gmail.com
Recommend Books :
1. Head First Java : amzn.to/2owFrf0
2. Java Complete Reference : amzn.to/2osY04k
Reversing a String in Java.
in Simple Steps only for Beginners
Check out our website: www.telusko.com
Follow Telusko on Twitter: / navinreddy20
Follow on Facebook:
Telusko : / teluskolearnings
Navin Reddy : / navintelusko
Follow Navin Reddy on Instagram: / navinreddy20
Subscribe to our other channel:
Navin Reddy : / @navinreddy
Telusko Hindi :
/ @teluskohindi
Subscribe to the channel and learn Programming in easy way.
Java Tutorial for Beginners : goo.gl/p10QfB
Scala Tutorials for Java Developers : goo.gl/8H1aE5
C Tutorial Playlist : goo.gl/8v92pu
Android Tutorial for Beginners Playlist : goo.gl/MzlIUJ
XML Tutorial : goo.gl/Eo79do
Design Patterns in Java : goo.gl/Kd2MWE
Socket Programming in Java : goo.gl/jlMEbg
Spring MVC Tutorial : goo.gl/9ubbG2
OpenShift Tutorial for Beginners : goo.gl/s58BQH
Spring Framework with Maven : goo.gl/MaEluO
Sql Tutorial for Beginners : goo.gl/x3PrTg
String Handling in Java : goo.gl/zUdPwa
Array in Java : goo.gl/uXTaUy
Java Servlet : goo.gl/R5nHp8
Exception Handling in Java : goo.gl/N4NbAW

Пікірлер: 45
@mohamedwasim3686
@mohamedwasim3686 3 жыл бұрын
Fun fact: everyone raised their volume in starting of the video😄
@rohitdesai2795
@rohitdesai2795 3 жыл бұрын
Yup... LoL.... I checked my system sound thrice
@bhawnakumari8434
@bhawnakumari8434 3 жыл бұрын
😂😂😂
@SmartProgramming
@SmartProgramming 6 жыл бұрын
simple and good 👍👍 but bit complicated without sound
@javawidhitesh
@javawidhitesh Жыл бұрын
fan of deepak sir .He teaches very excellent every topic in java.
@michealmclaughlin429
@michealmclaughlin429 4 жыл бұрын
Excellent. Intuitive commenting meant the sound was not required for me personally. Thank you!
@plebblanco1608
@plebblanco1608 7 жыл бұрын
Thank you! Great video made it simple and easy for me to understand.
@limsoyoun
@limsoyoun 9 жыл бұрын
Great job! Thank you for the posting.
@RajeshR-yp6sy
@RajeshR-yp6sy 4 жыл бұрын
Very good and simple easy to understand. Please use voice
@divyamittal3571
@divyamittal3571 6 жыл бұрын
Really easy method Thankyou so much
@AmitAswar
@AmitAswar 8 жыл бұрын
Simple logic //String reverse package abc; import java.util.*; public class abc1 { public static void main(String args[]){ Scanner sc=new Scanner(System.in); System.out.println("Enter a String"); String str=sc.nextLine(); StringBuffer sb=new StringBuffer(str); System.out.println("string rev is "+sb.reverse()); } }
@marcelo_m23
@marcelo_m23 7 жыл бұрын
public static String reverse(String s) { if(s.length()
@pseudohawk1656
@pseudohawk1656 6 жыл бұрын
Amit Aswar Yes. But in exam they dont accept this code.
@IQ88612
@IQ88612 7 жыл бұрын
why did you make :original=sc.nextLine?i mean sc is object ivoking the method nextline but why and how is ti possible to make it as an object for the string??your answer will help me
@girishgowda5407
@girishgowda5407 3 жыл бұрын
Hey its emergency Input = knowledge Output = ledgewonk How to get this please replay any onr
@TT-xg7qd
@TT-xg7qd Жыл бұрын
Easy method to rev a string please correct me if it is wrong INPUT = ABCD OUTPUT = DCBA let's do a code Class ReverseString { public static void main(sttring [] args) { String word="ABCD"; String word2=""; for(i=word.length()-1; i>=0; i--) // here we take that length of a word is 4 so we take it as -1 now 4-1=>3 , now that i>=0 is that loop continue until it satisfies the condition now, { word2 = word2 + word.charAT(i); } System.out.println(word2); } } o/p:- DCBA That is like to be length of word 4-1=3 that means it pointed position 3 ,so that A will be as in position 0 like A(0),B(1),C(2)D(3) so first the condition I>=0 will be satisfy the condition by i-- so it run untill the loop satisfies like 3,2,1,0 as D,C,B,A 👍👍
@sriragavendran1144
@sriragavendran1144 4 жыл бұрын
Thanks you soo much
@jaydobariya7652
@jaydobariya7652 7 жыл бұрын
if String in java is immutable then how can it possible to change the initial value of s2
@prathamesharte5929
@prathamesharte5929 6 жыл бұрын
String is immutable but StringBuffer is mutable
@sivapradeep977
@sivapradeep977 3 жыл бұрын
Everytime if wee concadenate a value it creates a new string in String Constant Poll (SCP) ..bro
@sushiltiwari274
@sushiltiwari274 3 жыл бұрын
Hello sir I want ask one thing like if I have some string I want to retract 5 and 6 place cahracter or digit from that how is it possible Consider String st="14231332343344" And I want to extract 1 st 3 digit diffrent and 2 3 digit different A=142 B=313 Could you pls help
@musicallycreation6213
@musicallycreation6213 7 жыл бұрын
please upload a video for reversing array without using scanner case plssss help me
@amitdubey8257
@amitdubey8257 6 жыл бұрын
count the number of occurrences of a character in a string using java .sir can you explain this program in simple way.
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
Nice one
@amitpatel0716
@amitpatel0716 3 жыл бұрын
Voice???
@hemanthkumar-gx2jn
@hemanthkumar-gx2jn Жыл бұрын
sometimes why we use String h="" please answer
@memelordcameron6883
@memelordcameron6883 6 жыл бұрын
Why wont the first work?? Also how are you using the scanner, i see you never imported it
@prathamesharte5929
@prathamesharte5929 6 жыл бұрын
it can be import by ctrl +shift+i
@keerthi637
@keerthi637 7 жыл бұрын
I want audio for this video
@pratikbhardwaj3804
@pratikbhardwaj3804 7 жыл бұрын
i will make for you!!
@rakeshbashetti1023
@rakeshbashetti1023 9 жыл бұрын
what packages should write for this program
@divyamittal3571
@divyamittal3571 6 жыл бұрын
brucelee f9. Import java.util.*;
@darkwarrior4048
@darkwarrior4048 3 жыл бұрын
import java.util.*; public class Main { public static void main(String[] args) { System.out.println("Enter the string"); Scanner s=new Scanner(System.in); String str=s.nextLine(); String rev=""; int i; int len=str.length(); for( i=len-1;i>=0;i--); { rev=rev+str.charAt(i); } } } sir is there any error in my program its not executing sir
@thekiterunner7082
@thekiterunner7082 2 жыл бұрын
import java.io.*; import java.util.Scanner; class Cgf { public static void main(String[]args) { System.out.println("Enter string to reverse:"); { Scanner sc=new Scanner(System.in); String str=sc.nextLine(); char[]arr=str.toCharArray(); String rev=" "; for(int i=str.length()-1;i>=0;i--) { rev=rev+str.charAt(i); } System.out.println("Reversed string is:"); System.out.println(rev); } } }
@abhishekmanral9476
@abhishekmanral9476 4 жыл бұрын
you should put your laptop on power!! gives better performance..
@haneeshan8090
@haneeshan8090 5 жыл бұрын
String reverse without logic please reply sir
@ritikakumari5221
@ritikakumari5221 5 жыл бұрын
No sound
@prapulaa1073
@prapulaa1073 6 жыл бұрын
No clarity on screen
@trideepnag6007
@trideepnag6007 8 жыл бұрын
you made it a bit complicated
@pramilam7056
@pramilam7056 3 жыл бұрын
How?
@pulagamdevamatha5158
@pulagamdevamatha5158 Жыл бұрын
yes me also🤣🤣🤣
@bvtirupathirao5687
@bvtirupathirao5687 6 жыл бұрын
Better to write without using string API
@brianrodgers4636
@brianrodgers4636 7 жыл бұрын
You are misusing the semicolon in the English language. You're getting it mixed up with the use of the semicolon in Java. You should be using a period. Please do learn English.
Solve String Programs in Java
14:37
Simply Coding
Рет қаралды 87 М.
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 17 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 8 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 22 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 97 МЛН
30+ Eclipse Shortcuts Every Java Programmer Should Know
12:46
Coding with John
Рет қаралды 125 М.
Stream API in Java
26:04
Telusko
Рет қаралды 313 М.
STRING CLASS & STRING METHODS - JAVA PROGRAMMING
33:17
Sundeep Saradhi Kanthety
Рет қаралды 199 М.
Program to Reverse A String in Java by Deepak
9:01
Smart Programming
Рет қаралды 412 М.
Java Program #7 - Reverse a String in Java
4:09
Programming For Beginners
Рет қаралды 7 М.
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 146 М.
Strings and StringBuilder in Java
1:27:29
Kunal Kushwaha
Рет қаралды 446 М.
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,3 МЛН
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 17 МЛН