How to get current user connected to a Liferay portal with the help of simple Java code ?

try Googling from time to time, I'm pretty sure you would 've found this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.