Java editions Java has 5 editions/platforms Java SE - Standard Edition Java EE - Enterprise level application Java FX - Java smart client application Java ME - Micro Edition Android Android is the most popular phone platform using Java. However, Java Micro Edition still plays a really important role in smart devices and the internet … Continue reading Java fundamentals (Beyond basic)
Category: Java
Making a java .jar File using NetBeans 6.8
ACM (TJU) : 3059
ACM (TJU) : 3004
package volume_XXI; import java.util.Scanner; public class Id_3004 { /** * @param args */ public static void main(String[] args) { Scanner input = new Scanner (System.in); int dataSet = input.nextInt(); int testCase = 0; while ( dataSet-- > 0 ) { int m = input.nextInt(); String s = input.next(); System.out.print (++testCase + " "); for ( … Continue reading ACM (TJU) : 3004
ACM (TJU) : 3161
package volume_XXII; import java.util.Scanner; public class Id_3161 { /** * @param args */ public static void main(String[] args) { Scanner input = new Scanner (System.in); int n = input.nextInt(); int nArray [] = new int [502]; int q = input.nextInt(); for ( int i = 0; i < n; i++ ) nArray [i] = input.nextInt(); … Continue reading ACM (TJU) : 3161
ACM (TJU) : 1939
package volume_X; import java.util.Scanner; public class Id_1939 { /** * @param args */ public static void main(String[] args) { Scanner input = new Scanner (System.in); int n = input.nextInt(); int a [] [] = new int [15] [2]; while ( n != -1 ) { for ( int i = 0; i < n; i++ … Continue reading ACM (TJU) : 1939
ACM (TJU) : 3205
package volume_XXIII; import java.util.Arrays; import java.util.Scanner; public class Id_3205 { /** * @param args */ public static void main(String[] args) { Scanner input = new Scanner (System.in); int n = input.nextInt(); int a [] [] = new int [100] [100]; for (int i = 0; i < n; i++ ) { for ( int j … Continue reading ACM (TJU) : 3205
ACM (TJU) : 2001
ACM (TJU) : 2803
ACM (TJU) : 3251
package volume_XXIII; import java.util.Scanner; public class Id_3251 { /** * @param args */ public static void main(String[] args) { Scanner input = new Scanner (System.in); int d = input.nextInt(); int m = input.nextInt(); int days [] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int week = 6; outer: for … Continue reading ACM (TJU) : 3251