SumOfString || Java Coding
3:13
2 ай бұрын
Finding Second Max from Array
6:21
Convert int to String in java
0:34
Пікірлер
@bundelkhandibro4420
@bundelkhandibro4420 21 күн бұрын
Deepu ko bhi shikha deo
@ashishsingh8222
@ashishsingh8222 21 күн бұрын
@@bundelkhandibro4420 bilkul
@Gautamkumar-kh9ge
@Gautamkumar-kh9ge 25 күн бұрын
Kaha ka he vedio
@ashishsingh8222
@ashishsingh8222 25 күн бұрын
@@Gautamkumar-kh9ge gwalior
@BismaMalik-m6c
@BismaMalik-m6c Ай бұрын
Bhai thoda or accha photo click kr skte the
@ashishsingh8222
@ashishsingh8222 Ай бұрын
How bro ?
@ashishsingh8222
@ashishsingh8222 Ай бұрын
github.com/SinghAshsih/Spring-MVC-CURD-WITH-HIBERNATE.git
@pdsinghkushwah1244
@pdsinghkushwah1244 Ай бұрын
Thanks Bhai
@ashishsingh8222
@ashishsingh8222 Ай бұрын
package com.youtube; import java.util.InputMismatchException; import java.util.Scanner; public class ArmstrongNumber2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); try { System.out.println("Please input your number : "); int num = sc.nextInt(); // int digits = findTheNumberOfDigits(num); String str = Integer.toString(num); int lenght = str.length(); System.out.println(num + " : No of digits in it : " + lenght); isArmstrongngNumber(num, lenght); } catch (InputMismatchException e) { System.out.println("Please enter only numbers !"); } finally { sc.close(); } } private static void isArmstrongngNumber(int num, int power) { // TODO Auto-generated method stub int sum = 0; int temp = num; while (temp > 0) { int lastDigit = temp % 10; sum = sum + (int) Math.pow(lastDigit, power); temp /= 10; } if (sum == num) { System.out.println("Yes it is Armstrong"); } else { System.out.println("No, it is not armstrong"); } } // private static int findTheNumberOfDigits(int num) { // // TODO Auto-generated method stub // int count = 0; // int temp = num; // while (temp > 0) { // count++; // temp /= 10; // } // // return count; // } }
@abhisheksinghkushwah6689
@abhisheksinghkushwah6689 2 ай бұрын
Super Be Continue Bro
@ashishsingh8222
@ashishsingh8222 2 ай бұрын
Thank you for appreciation
@ashishsingh8222
@ashishsingh8222 2 ай бұрын
<project xmlns="maven.apache.org/POM/4.0.0" xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="maven.apache.org/POM/4.0.0 maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>FirstServletApp</groupId> <artifactId>FirstServletApp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <version>3.2.3</version> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <release>17</release> </configuration> </plugin> </plugins> </build> <dependencies> <!-- mvnrepository.com/artifact/javax.servlet/servlet-api --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>3.0-alpha-1</version> <scope>provided</scope> </dependency> </dependencies> </project>
@ashishsingh8222
@ashishsingh8222 2 ай бұрын
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns="xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="xmlns.jcp.org/xml/ns/javaee xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" id="WebApp_ID" version="4.0"> <display-name>FirstServletApp</display-name> <servlet> <servlet-name>first</servlet-name> <servlet-class>com.servlet.MyServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>first</servlet-name> <url-pattern>/message</url-pattern> </servlet-mapping> </web-app>
@ashishsingh8222
@ashishsingh8222 2 ай бұрын
package com.servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class MyServlet extends HttpServlet { /** * */ private static final long serialVersionUID = 1L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // TODO Auto-generated method stub resp.setContentType("text/html"); PrintWriter pw = resp.getWriter(); pw.print("Hello World !"); } }
@RadheKrishna-xo5qi
@RadheKrishna-xo5qi 2 ай бұрын
Radhe Radhe 🙏🙏
@ashishsingh8222
@ashishsingh8222 2 ай бұрын
@@RadheKrishna-xo5qi Radhe Radhe 🙏 🙏
@kaustubhdixit14
@kaustubhdixit14 2 ай бұрын
❤️❤️❤️
@ragineeshakya-um7qr
@ragineeshakya-um7qr 3 ай бұрын
Bhaiya aap jo smjhana chahte h usme voice ka prayog kre to chije jyada ache se smjh aayegi, baki aapki kosis achi hai 🙏
@ashishsingh8222
@ashishsingh8222 3 ай бұрын
ok I will do it you got the question or not ? And thank you for appreciating me and watching my videos
@Gautamkumar-kh9ge
@Gautamkumar-kh9ge 3 ай бұрын
@Gautamkumar-kh9ge
@Gautamkumar-kh9ge 3 ай бұрын
😊😊😊
@ashishsingh8222
@ashishsingh8222 5 ай бұрын
For Code github.com/SinghAshsih/SpringBoot_CRUD.git
@mohitsuree1901
@mohitsuree1901 6 ай бұрын
🔥🔥🔥🔥
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
Je baat 🔥
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
🎉🎉🎉
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
🔥🔥🔥
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
Yeah boiii !!
@anuragsingh8375
@anuragsingh8375 7 ай бұрын
JAY SHREE RAAM SITARAAM ❤❤
@ashishsingh8222
@ashishsingh8222 7 ай бұрын
Jay shree ram
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
🎉🎉🎉🎉
@ManojYadav-vh2ky
@ManojYadav-vh2ky 7 ай бұрын
❤🎉🎉🎉🎉🎉
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
😅😅
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
😎🫡😎
@bundelkhandibro4420
@bundelkhandibro4420 7 ай бұрын
Vloging suru kr di kya
@ashishsingh8222
@ashishsingh8222 7 ай бұрын
Na bhai
@ashishsingh8222
@ashishsingh8222 7 ай бұрын
Article 352 deals with national emergency
@mohitsuree1901
@mohitsuree1901 7 ай бұрын
🤩🤩🤩😎😎😎
@boostfear7158
@boostfear7158 Жыл бұрын
Amazing content
@ashishsingh8222
@ashishsingh8222 Жыл бұрын
Thank you 🙏
@mohitsuree1901
@mohitsuree1901 Жыл бұрын
🎉🎉🎉
@jktgh
@jktgh Жыл бұрын
Very good.
@jktgh
@jktgh Жыл бұрын
Good.
@ashishsingh8222
@ashishsingh8222 Жыл бұрын
Thank you very much
@nayanseth667
@nayanseth667 Жыл бұрын
Bhai apna youtuber😅
@ashishsingh8222
@ashishsingh8222 Жыл бұрын
Thank you very much 😁
@anshurajawat1253
@anshurajawat1253 Жыл бұрын
Good