<p>I see many similar questions, however I want to find the Username of the currently logged in user using Java.</p>

<p>Its probably something like:</p>

<pre><code>System.getProperty(current.user);
</code></pre>

<p>But, I'm not quite sure.</p>

You're actually really close. This is what you're looking for:
```
```
System.getProperty("user.name")
```
```