Archive for April, 2012

SAMSUNG WAVE (BADA-OS) CODES.

Posted: April 30, 2012 in Mobile
  • Factory reset : *2767*3855#
  • Service mode : *#197328640#
  • Phone battery info : *#0228#
  • SIM/Network lock info : *#7465625#
  • Software version : *#4986*2650468#
  • WiFi test mode : *#526#
  • Bluetooth test mode : *#232337#
  • LCD test : *#0*#
  • Melody test : *#0673# OR *#0289#
  • Vibration test : *#0842#
  • GPS : *#4097*4097#
  • Admin settings : *#5239870*#
  • Motion calibration : *#66225*#

 

Advertisements

IP-Lookup in Java.

Posted: April 13, 2012 in Java Programs

import java.net.*;

import java.util.*;

class addresscheck { public static void main (String args[])
{
try {
Scanner sc=new Scanner(System.in);
System.out.println(“ENTER IP ADDRESS “);
String ip=sc.nextLine();

InetAddress address = InetAddress.getByName(ip); System.out.println(address);
}
catch (UnknownHostException e)
{
System.out.println(“Could not find domain_name”);
}
}
}

import java.net.*;
import java.util.*;
class ipcheck
{
public static void main(String g[])
{
try {
Scanner sc=new Scanner(System.in);
System.out.println(“ENTER ADDRESS “);
String add=sc.nextLine();
InetAddress address = InetAddress.getByName(add);
System.out.println(address);
}
catch (UnknownHostException e) {
System.out.println(“Could not find the address”);
}
}
}