Skip to main content

Posts

Sort an Array Elements in Java

Sort an Array Elements in Java To sort array element in java no need to write new concept just change the syntax of c programming into java code.. also click ==>here for java odd and even number code
Recent posts
Java Program to Find Largest Number Among Three Numbers Input three number from user and compare these number with each others and find largest number among these three numbers Find Largest Number Program in Java

Java Program to Find Odd or Even number

Java Program to Find Odd or Even number In below code i will show you how to design Java Program to Find Odd or Even number. In this program we receive input value from keyboard and find modulo 2 (num%2) of number if reminder of number is zero then that number is even other wise odd. Even numbers are those which are divisible by 2, and which numbers are not divisible 2 is called odd numbers. Java Program to Find Odd or Even Explnation of Code Scanner s=new Scanner(System.in): are used for receive input from keyboard. nextInt(): method are used for get integer type value from keyboard. System.out.println("....."): are used for display message on screen or console.

How to Capture WPA Passwords with Fluxion

How to Capture WPA Passwords with Fluxion Install Fluxion To get Fluxion running on our Kali Linux system, clone the git repository with: git clone =>https://github.com/wi-fi-analyzer/fluxion Note: The developer of Fluxion shut down the product recently, but you can get an older version of it using the command above instead (not the URL you see in the image below). Then, let's check for missing dependencies by navigating to the folder and starting it up for the first time. cd fluxion sudo ./fluxion You'll likely see the following, where some dependencies will be needed. Run the installer to fetch dependencies and set your board to green with: sudo ./Installer.sh A window will open to handle installing the missing packages. Be patient and let it finish installing dependencies. After all the dependencies are met, our board is green and we can proceed to the attack interface. Run the Fluxion command again with sudo ./fluxion ...

How to Add a Facebook Share Button to Blogger Posts

How to Add a Facebook Share Button to Blogger Posts Allowing others to easily share your content on social media is something that is always important. Thankfully, many of the services we use for our online promotion have social sharing buttons that we can implement into our websites. Adding a Facebook Share button to Blogger is a little different than some other sites because we want the button to automatically insert the URL of the page the visitor is currently on, or the post they want to share, without having to update this link manually. Adding a Share button to your blog’s template will ensure that it stays in place at the bottom of every post, and with the code below, the link will be automatically inserted into the button. Let’s get started Login to your Blogger account and backup your template in case something goes wrong. You can do this by clicking the Backup/Restore button in the top corner and saving the file to your computer. Go to Template > Edit HTML. Cl...

Working with Android 7.1 App Shortcuts

Working with Android 7.1 App Shortcuts Android 7.1 introduced a new feature called App Shortcuts. When you long press your app icon, it shows shortcuts to specific actions which can be launched, on supported launchers. For example, a dialer app can show shortcuts to your recently dialed numbers. A messaging app can show shortcuts to your recent conversations. In this tutorial, we will create two Activities and add these activities as shortcuts. Prerequisites Make sure you have updated your Android SDK to 7.1 and Created a virtual device with Android 7.1 System Image. creating project Here I have created an Android Studio project with package com.lagahit.appshortcuts also Activity as MainActivity and layout as activity_main. Our main layout has a Button to launch Profile Activity. Creating Profile Activity To the left of Android Studio, you will find Project Explorer. Right Click on the app from the project explorer and select, New -> Activit...

Few time saving tips on Android Studio

Few time saving tips on Android Studio Some developers may already be using these methods to save some time. So if you haven’t, it may save a few minutes of your time. Generate Getters and Setters in Android Studio If you are creating a model class to store data with large number of variables, you may have manually created getters and setters for all those variables. This may help you to save some time. Right click anywhere inside the class. Select Generate -> Getter and Setter Now select the variables for which the getters and setters should be generated. Now Android Studio automatically generates it for you. Shortcut Key Alt + Enter -> Generate -> Getter and Setter Implement Methods Unimplemented methods in a interface can be implemented by using the shortcut key, Ctrl + I Command + I (Mac) A dialog pops up. Then select OK. Override Methods To override a method from Super class you can use the shortcut key, Ctrl + O Command + O ...