Main program without argument array
/ * funny program ,but logic */
Class MyClass
{
public static void main(String …a)
{
System.out.println(“hello , JavaMix”);
}
}
/ * funny program ,but logic */
Class MyClass
{
public static void main(String …a)
{
System.out.println(“hello , JavaMix”);
}
}
before going to use this post My strong advice to see this post first. /* by using this program iam trying to insert data to the Excel sheet */ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package excelsheetreading; /** * *…
we are using property file to store some organized data, like database url and connection username etc., reading from this property file is easy and useful myproperties.properties // my properties file name it`s contain name=katta vijay age=24 email=mail@javamix.net Main.java // to read data from property file package javamixposts; import java.io.*; import java.util.*; /** * *…
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author vijay * */ import java.net.URL; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.CharacterData; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class RSSReader { private static RSSReader instance = null; private RSSReader() {…
package automatedsms; // my package name /** * * @author katta vijay */ import java.util.Calendar; import java.text.SimpleDateFormat; public class DateUtils { public static String now(String dateFormat) { Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); return sdf.format(cal.getTime()); } public static void main(String arg[]) { // different date formats System.out.println(DateUtils.now(“dd MMMMM yyyy”)); // calling now…
Both JAR and WAR are created(Zipped) with Java JAR tool , both have different purposes. JAR – Java Archive this JAR file may be a standalone java application or a zipped source . this file contains classes , libraries , property files Command to create a JAR file : here i want to create JAR…
before going to execute this program read here <a href="http://javamix.wordpress.com/2009/03/30/installing-comport-api-in-windows/">how to install comport api for windows</a> /* this is the program used to send the message from javaprogram to the mobile phone */ /* Note :- before using this porogram first read the post "serialport communication using Java" by me in this blog. */ package…