DecimalToHexadecimal ======================================================== HexaDecimal Example : 20 20%16--remender==4 than you have to divide 16 you got 1 than 1%16--remender==1 Final HexaDecimal =14 01,1345,..... 0 ,1,2,3.....9,A,B,C,D,E,F =16 ========================================================================================= import java.util.Scanner; class DecToHex { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("Enter the Decimal Number:"); int n=sc.nextInt(); char chars[]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; String hex=""; int mid=0; while(n!=0){//20 mid=n%16; hex=chars[mid]+hex; n=n/16; } System.out.println("HexaDecimal Number:"+hex); } }
How to Send OTP in Mobile Number | login with OTP mobile Number | How to send OTP in mobile no with Spring Boot APP
😂 Login with Mobile Number OTP ---------------------------------------------------------------------------- If you want to develop a project to log in with OTP mobile Number in Spring Boot Applications then this post for you. In this post, I am going to use some other service to send the OTP in mobile number. we have to use it in this project spring boot. we are going to use Twilio to send SMS. we are going to use a web socket to send the data from the browser to the SMS gateway. Oracle Database for store the user details. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>2.3.3.RELEASE</version> </dependency> <dependency> <groupId>com.twilio.sdk</grou
Comments
Post a Comment