Retrieving Hashmap value by comparing hashmap key

Program: package; import java.util.HashMap; import java.util.Map.Entry; public class Hashmap { public static void main(String[] args) { String keyword="super"; HashMap<String, String> myMap = new HashMap<String, String>(); myMap.put("super", "java keyword"); myMap.put("array_merge", "php array function"); for (Entry<String, String> pair : myMap.entrySet()) { if(pair.getKey().equalsIgnoreCase(keyword)){ System.out.println(keyword+" is: " + pair.getValue()); } } } }   Output: super is: java keyword Thanks for reading

312 total views, 6 views today

» Read more

Android Hello World

Step 1: File -> New -> Android Application project in eclipse (see “Android in Eclipse“ article for how to program android in eclipse). Step 2: Create class file under com.example.helloworld package, and paste the below code. package com.example.helloworld; import android.os.Bundle; import android.provider.Settings.System; import; import android.widget.EditText; import android.widget.TextView; public class HelloWorld extends Activity { @Override public void onCreate(Bundle savedInstanceState)

375 total views, 4 views today

» Read more

Adding Address Bar Icon in wordpress

Step 1: Go to Appearance -> Editor and open header.php Step 2: under </title> in header.php add the below line with your customization, <link rel=”shortcut icon” href=”(specify the icon location in the server)” /> Then you can see your icon at the address bar or title bar. Note: .ico file is prefered for address bar icon.   Thanks for reading

267 total views, no views today

» Read more

Removing wordpress footer

Step 1: Go to Appearance -> Editor and open the footer.php. Step 2: Change the footer.php file. search php printf statement, based on the theme it will be there in top or middle or last.   to comment any line, use this <!– –> . Thanks for reading this post……!!! 337 total views, 4 views today

337 total views, 4 views today

» Read more

Php Hello world

Step 1: Create a file named hello.php under the php file extracted location(I have extracted my php in d:\php), so i have pasted the below code in d:\php\hello.php and paste the below code, <?php echo “Hello World!\\n” ?>   Step 2: Now go to the command and execute as follows,   Thanks for reading this post……….!!! 367 total views, 2 views today

367 total views, 2 views today

» Read more

Maven Installations and configurations

Step 1: Go to the link below download the maven file. Step 2: Just extract the file and put it in the D drive or where ever you want. Step 3: Now go to the command prompt, and type mvn and you will get as follows, Because we haven’t set the maven path. Step 4: Now set the path as follows and

404 total views, 6 views today

» Read more

Ant Installations and Configurations

Step 1: Before installing ant ensure that already java has been installed in your system. Step 2: Go to the below link and download the ant. Step 3: Just extract the zip file you downloaded and put in the drive you want. Step 4: Now go to the command prompt and type ant then you will get like as follows, Step 5: Now we

318 total views, 2 views today

» Read more

Php step by step installation in windows 7

Step 1: Go to the below link Step 2: Download the thread safe or non thread safe php based on your requirement. Step 3: Extract the zip file that you have downloaded into the required location. (say D:\PHP\ folder). Step 4:  Check whether you are getting the output as like follow, Step 5: If you get the output like above then we can ensure

265 total views, 6 views today

» Read more
1 61 62 63 64