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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -