How we can save java file without name -


i want save java file name , want compile or run file. possible in java or not?

example:

class {   public void display() {     system.out.println("hello ..how you..??");   } } 

i want save file name .java only. possible in java , if possible how can compile file without name through cmd?

if try get

.java:1: error: class public, should declared in file named a.java 

so not.


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -