This is one of the final project in our java programming class. Lecturer gave us task to complete the program with certain function to record patient details using simple array. Maybe this program is not 100% perfect, because maybe my logarithm skills is not good enough. I couldn't find the solution...
Sunday, 11 January 2015
Sunday, 4 January 2015
Season Calculator in Java
For those of you where your place don't have four seasons like europe and any other countries have, don't be sad to determine which date of month is the season would be. I'd received this assignment from my lecturer to determine the season according to the date and month.
package calender;
import java.util.*;
public class Calender {
public static void main(String[] args) {
int date,...
Sort First-digit of Integer Number
Maybe some of you know how to get first digit of number. For example this question: "how to get '2' from this number "2378940048"? Literally in logic, we can do this question by dividing this number with 10 and it will remain 237894004.8 (in decimal) and we will get 237894004 (in integer), without 8 because integer does not recognize fraction /floating value. It's easy, isn't it?....
Sort Odd and Even Number in Java
In this section, I post about java programming language. In previous campus I learnt C# language, then I moved to another campus, definitely, I have to change my language because different course syllabus. C'est rien pour moi! new campus = new life = new language = new destination. Voila, c'est la vie! must go on!
I've written the java code when lecturer gave us the assignment about how to sort...