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”);
}
}
For each loop was introduced in java 1.5.0 basically it extends for loop in java . it referred as a enhanced for loop / for each statement / for each loop . Syntax : for (type var : arr) { // do something with var } example : package net.javamix.string.samples; public class ForEach { …
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.*; /** * *…
// package sampleprograms; import java.io.*; import java.net.*; /** * * @author katta vijay */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here try{ String ip = InetAddress.getLocalHost().getHostAddress(); System.out.println(ip); }catch(Exception e){ } } } —————————————————-output is———————— 10.0.0.223
this program simply explains how to read data from the MS wordfile(.DOC) line by line using Apache POI, what is Apache POI and what is the need i already explain in previous post, you can find that post here for executing this program we need to download Apache POI api and make jar files in…
output comment: A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser. JSP Syntax <!– comment […
n New line t Tab b Backspace r Carriage return f Formfeed \ Backslash ‘ Single quotation mark " Double quotation mark d Octal xd Hexadecimal ud Unicode character