Afternoon

January 4, 2017 Leave a comment

Beautiful afternoon, Alhamdulillah. ^^

Afternoon

Afternoon

Advertisements
Categories: Ren's Notes Tags:

Dawn

January 3, 2017 Leave a comment

I do love this moment, so peaceful. Alhamdulillah. 🙂

Dawn

Categories: Ren's Notes Tags: ,

How To Remove Duplicate Value In Array Without Collection Help

October 27, 2016 Leave a comment

Below how to remove duplicate value in array without collection help


public class RemoveDuplicateManual {

public int[] removeDuplicateNumber(int[] inputArray) {
Arrays.sort(inputArray);
int[] outputArray = new int[inputArray.length];
int previous = inputArray[0];
int observed = 0;
for (int i = 1; i < inputArray.length; i++) {
observed = inputArray[i];
if (previous != observed) {
outputArray[i] = observed;
}
previous = observed;
}

return outputArray;
}
}

🙂

How To Know Which Port Are Being Used And By What On Windows

September 19, 2016 Leave a comment

Below are steps how to know which port are being used and by what.

  • Open Windows cmd prompt
  • Type netstat -ao, then you will see something like this

Command Prompt

  • Write down PID number. It is process number
  • Open task manager
  • Search PID number that you looking for in task manager

PID Task Manager

🙂

Categories: Ren's Free Time Tags: ,

How To Reverse Number

August 6, 2016 Leave a comment

Below is code to reverse number.


public class ReverseNumber {

int reverse = 0;

public void reverse(int number) {
while (number != 0) {
reverse = reverse * 10 + number % 10;
number = number / 10;
}
System.out.println(reverse);
}
}

🙂

Categories: Java Tags: ,

Lebaran

July 6, 2016 Leave a comment

Alhamdulillah. ^^

Lebaran

Lebaran

Categories: Ren's Notes Tags:

Installing Maven On Windows

April 14, 2016 Leave a comment

Below are steps to install Apache Maven on Windows.

  • Download Apache Maven zip file in here
  • Unzip it in desired folder, assume you unzip Maven zip file in here E:\Installer\maven\apache-maven-3.3.9
  • Add MAVEN_HOME variable in user variable that point Maven folder

MAVEN_HOME

  • Update PATH, append it with MAVEN_HOME – %MAVEN_HOME%\bin

Update PATH

  • Verify it it with mvn -version in Windows command

Maven Verification

 

Thank you.