#Cucumber + #Watir-WebDriver
"Cucumber + Watir-WebDriver are a match made in heaven" quote from http://watirwebdriver.com/
Misplaced Lens Cap
No title available

gracie abrams
KIROKAZE
ojovivo

No title available
Game of Thrones Daily
𓃗

roma★

❣ Chile in a Photography ❣
Xuebing Du
TVSTRANGERTHINGS

Love Begins
todays bird

@theartofmadeline
art blog(derogatory)
The Bowery Presents
hello vonnie

bliss lane

if i look back, i am lost
seen from United States
seen from Türkiye
seen from United States

seen from United States

seen from United States

seen from United States
seen from United States

seen from United States

seen from United States
seen from United States
seen from United States
seen from United States
seen from Mexico
seen from United States
seen from United States

seen from Türkiye
seen from Canada

seen from Colombia

seen from Bangladesh
seen from United States
@sanamud
#Cucumber + #Watir-WebDriver
"Cucumber + Watir-WebDriver are a match made in heaven" quote from http://watirwebdriver.com/
#TypeCast
package com.sanam;
public class TypeCast {
/**
* @param args
*/
public static void main(String[] args)
{
StringBuffer s = new StringBuffer();
s.append("Tumblr");
s.append(" I love you:");
System.out.println(s.substring(0, 5));
}
}
#Stringdatetodate
package com;
import java.text.SimpleDateFormat;
public class Stringdatetodate {
public static void main(String[] args) throws Exception
{
String d = "05-31-2013";
SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-yyyy");
System.out.println(sdf.parse(d));
}
}
#Tomcat with JMS(ActiveMQ) & MySQL integration
<!-- Tomcat with JMS(ActiveMQ) & MySQL integration -->
Step 1 : Required Jars
--> Copy active-all-5.5.0.jar from apache-activemq-5.5.0 Home Directory.
--> Download javassist-3.8.0.GA.jar, mysql-connector-java-5.1.6-bin.jar, slf4j-api-1.5.11.jar, slf4j-simple-1.5.11.jar
--> Paste the above jars in Tomcat/lib Directory.
(Note :Dont copy this active-all-5.5.0.jar in your project library)
Step 2 : Copy activemq.xml file into your Tomcat/conf directory from apache-activemq-5.5.0.
Step 3: Configure JNDI ActiveMQ Settings & Database Settings in contex.xml file in Tomcat/conf Directory.
--> We should configure the properties in Resource Tag, Under <Context> root
Step 4: Add ActiveMQ reference in your application's messaging-config.xml file
--> Copy the following properties from context.xml file and configure in messaging-config.xml file
--> Find the following properties from context.xml file from <Resource> tags. and paste in messaging-config.xml files
1) Find the name property where type = "org.apache.activemq.ActiveMQConnectionFactory" and copy the value and paste in messaging-config.xml's <connection-factory>
2) Find the property type = "org.apache.activemq.ActiveMQConnectionFactory" from <Resource> tag in context.xml
and copy the name property value and paste in <connection-factory> in messaging-config.xml under <jms> tag
3) Find the property brokerUrl = "tcp://localhost:61616" and copy the value in messaging-config.xml's <inital-context-environment>.
4) Find the name property where type = "org.apache.activemq.command.ActiveMQTopic" and copy the value and paste in messaging-config.xml's <destination-jndi-name>
Step 5: Add url in your application's services-config.xml file
Step 6 End.
#simpledateformat
package com;
import java.text.SimpleDateFormat;
import java.util.Date;
public class dateform
{
public static void main(String[] args)
{
SimpleDateFormat sdf = new SimpleDateFormat("MMddyyyy");
// Date date=new Date();
System.out.println(sdf.format(new Date()));
}
}
#rowxcolumn[JAVA]
package com;
public class rowxcolumn
{
public static void main(String[] args)
{
System.out.print("* |");
for (int i = 1; i <= 5; i++)
{
System.out.print(" " + i + " ");
}
System.out.println();
System.out.print("__________________");
System.out.println();
for (int j = 5; j >= 1; j--)
{
System.out.print(j + " | ");
for (int k = 1; k <= 5; k++)
{
System.out.print((k * j) + " ");
if ((j * k) < 10)
System.out.print(" ");
}
System.out.println();
}
}
}
#Primenumbers[java]
package com;
public class primenumbers
{
public static void main(String[] args)
{
for(int i=1; i<=20; i++)
{
int count = 0;
for(int j=1;j<15;j++)
{
if(i%j == 0)
count++;
}
if(count <= 2)
System.out.println(i);
}
}
}
ROBOTS OR DINOSAURS?
Human
#Primenumbers[java]
package com;
public class primenumbers
{
public static void main(String[] args)
{
for(int i=1; i<=20; i++)
{
int count = 0;
for(int j=1;j<15;j++)
{
if(i%j == 0)
count++;
}
if(count <= 2)
System.out.println(i);
}
}
}