Java Tora Dhairekitori Riri Kushanda

/ Ungawana sei ikozvino dhairekitori rinoshanda muJava? Iyo yazvino inoshanda dhairekitori inoreva iyo dhairekodhi dhairekitori rako razvino Java chirongwa.

Tinogona kuwana dhairekitori rinoshanda razvino muJava kushandisa inotevera system chivakwa basa.

String cwd = System.getProperty('user.dir');

Tora Razvino Rinoshanda Dhairekitori muJava Semuenzaniso

public class CurrentWorkingDirectory {
public static void main (String args[]) {

String cwd = System.getProperty('user.dir');
System.out.println('Current working directory : ' + cwd);
} }

Kubuda:

Current working directory: C:workspaceJava4Testers

Inoenderana: