Learnerslesson
   JAVA   
  SPRING  
  SPRINGBOOT  
 HIBERNATE 
  HADOOP  
   HIVE   
   ALGORITHMS   
   PYTHON   
   GO   
   KOTLIN   
   C#   
   RUBY   
   C++   
   HTML   
   CSS   
   JAVA SCRIPT   
   JQUERY   




padEnd() - FUNCTION


The padEnd() Function is used to place a given character at the beginning of the String.


Example :



<html>
<body>  
<script>

	var x = "Hello"
	var y = x.padEnd(10, "*")
	document.write(y)
    
</script>      
</body>
</html>


Output :



  Hello*****

In the above code, we have declared a String Hello.


x = "Hello"

Then we have used the x.padStart(10) function to allocate 10 blocks. Then fill the left side with five 0s shifting the String Hello to the right.


y = x.padEnd(10)
java_Collections