Victor on February 21st, 2010

Quick trivia : The Java modifiers syncronized and native only apply to methods. Native methods do not have a body.

Continue reading about Java tip

Victor on January 29th, 2010

import javax.swing.JOptionPane; public class OwnJavaArray { public static void main(String[] args) { String[] name = new  String[3]; for (int x = 0; x < name.length; x++) { int number  = x + 1; name[x] = JOptionPane.showInputDialog(null, "Please enter  first and last name " + number); } String[] name0 =  name[0].split(" "); String[] name1 = name[1].split(" [...]

Continue reading about Getting the longest first name from and array.

import  javax.swing.JOptionPane; /** * * @author http://victorbyte.net */ public class Main { /** * @param args the command  line arguments */ public static void main(String[] args) { int[] numInt = new int[5]; int maxNum = 0; int minNum = 0; for (int i = 0; i < numInt.length; i++) { numInt[i] =  Integer.parseInt(JOptionPane.showInputDialog(null, "Please enter [...]

Continue reading about Getting the lowest and highest number from an array : Java