Featured Article

Adding old Java projects in near future

I realized that I’m missing one big part of my studies in this blog. Java was the most used programming language used in our school and I’ve failed to upload any snippets online! I’ll be searching my old backups in the following days in order to get them here to my blog or perhaps to… Read More »

Java CurrencyTranslator

Program shows the exchange rate (Doesn’t show real rates) for a requested sum between euros and USD. Edit: Testing GitHub Gists Old: import java.util.Scanner; public class CurrencyTranslator { Scanner reader=new Scanner(System.in); boolean repeat=true; double euroTOdollar=1.18;//€->$ rate double dollarTOeuro=0.85;//$->€ rate private void run(){ System.out.println(“*******************\nCurrency translator 1.0”); while(repeat){ int requestedOperation=getOperation();//euro->dollar or dollar->euro or exit executeRequestedOperation(requestedOperation); } }… Read More »

Java NumberTable

Program asks you to enter 10 numbers and lists them from biggest to smallest. After the list is shown, the program asks if you would like to check for a specific number from the list. import java.util.Scanner; public class NumberTable { Scanner numberReader=new Scanner(System.in); Scanner textReader=new Scanner(System.in); double[] numbers=new double[10]; private void run(){ getNumbers(); arrangeNumbers();… Read More »