package methodLocal;
public class Main {
public static void main(String[] args) throws InterruptedException {
Runnable r1 = new Runnable(){
@Override
public void run() {
for(int i=0;i<100;i++){
System.out.println(i);
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}
}
};
Thread t1 = new Thread(r1);
t1.start();
t1.join();
System.out.println(Thread.currentThread().getName());
}
}
JavaToHtmlTest/Java2HtmlTest is a test program to display
* capabilites of togotutor’s online tool for converting Java Code to
* HTML format. The generated HTML code can be pasted on any web page
* to display properly formatted Java Code.
*/
public class JavaToHtmlTest{
private static final long serialVersionUID = 8683452581122892189L;
private transient int javaToHtml;
private String name;
/**
* Prints Welcome message
*
* @param args
* String array with input parameters.
*/
@SuppressWarnings(“unchecked”)
public static void main(String args[]){
System.out.println(“Welcome to Togotutor.com’s “
+ “Online Java To Html Conversion tool.”);
}
}
public class Main {
public static void main(String[] args) throws InterruptedException {
Runnable r1 = new Runnable(){
@Override
public void run() {
for(int i=0;i<100;i++){
System.out.println(i);
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}
}
};
Thread t1 = new Thread(r1);
t1.start();
t1.join();
System.out.println(Thread.currentThread().getName());
}
}
JavaToHtmlTest/Java2HtmlTest is a test program to display
* capabilites of togotutor’s online tool for converting Java Code to
* HTML format. The generated HTML code can be pasted on any web page
* to display properly formatted Java Code.
*/
public class JavaToHtmlTest{
private static final long serialVersionUID = 8683452581122892189L;
private transient int javaToHtml;
private String name;
/**
* Prints Welcome message
*
* @param args
* String array with input parameters.
*/
@SuppressWarnings(“unchecked”)
public static void main(String args[]){
System.out.println(“Welcome to Togotutor.com’s “
+ “Online Java To Html Conversion tool.”);
}
}