├── Examen ├── .gitignore ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ ├── adriarr.java │ └── CapicuasYPrimos.java ├── Impares ├── .gitignore ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── Impares.java ├── Enunciado1 ├── .gitignore ├── .classpath ├── .project ├── src │ ├── Enunciado5.java │ ├── Enunciado3.java │ ├── Enunciado4.java │ ├── Enunciado2.java │ └── Enunciado1.java └── .settings │ └── org.eclipse.jdt.core.prefs ├── EsNumPrimo ├── .gitignore ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── Piramide ├── .gitignore ├── doc │ ├── package-list │ ├── allclasses-noframe.html │ ├── allclasses-frame.html │ ├── package-frame.html │ ├── script.js │ ├── index.html │ ├── deprecated-list.html │ ├── constant-values.html │ ├── package-use.html │ ├── overview-tree.html │ ├── package-tree.html │ ├── class-use │ │ └── Piramide.html │ ├── package-summary.html │ ├── index-files │ │ ├── index-1.html │ │ ├── index-4.html │ │ ├── index-3.html │ │ └── index-2.html │ ├── help-doc.html │ ├── Piramide.html │ └── stylesheet.css ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── Piramide.java ├── DibujaTriangulo ├── .gitignore ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── DibujaTriangulo.java └── EcuacionSegundoGrado ├── .gitignore ├── .classpath ├── .project ├── .settings └── org.eclipse.jdt.core.prefs └── src └── EcuacionSegundoGrado.java /Examen/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Impares/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Enunciado1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /EsNumPrimo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Piramide/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Piramide/doc/package-list: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /DibujaTriangulo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /EcuacionSegundoGrado/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Examen/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Impares/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Piramide/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Enunciado1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /EsNumPrimo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DibujaTriangulo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /EcuacionSegundoGrado/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Examen/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Examen 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Impares/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Impares 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Piramide/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Piramide 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Enunciado1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Enunciado1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /EsNumPrimo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | EsNumPrimo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /DibujaTriangulo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | DibujaTriangulo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /EcuacionSegundoGrado/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | EcuacionSegundoGrado 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Enunciado1/src/Enunciado5.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Enunciado5 { 4 | public static void main(String args[]){ 5 | System.out.println("Introduce dos números a multiplicar"); 6 | Scanner in = new Scanner(System.in); 7 | int a = in.nextInt(); 8 | int b = in.nextInt(); 9 | int suma = 0; 10 | suma +=b; 11 | System.out.println(a+" "+b+" "+"*"); 12 | while(a!=1){ 13 | a/=2; 14 | b*=2; 15 | if(a % 2 != 0) suma+=b; 16 | System.out.println(a+" "+b+" "+"*"); 17 | } 18 | System.out.println(suma); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Examen/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Impares/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Piramide/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Enunciado1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /EsNumPrimo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /DibujaTriangulo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /EcuacionSegundoGrado/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Piramide/doc/allclasses-noframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes 7 | 8 | 9 | 10 | 11 | 12 |

All Classes

13 |
14 | 17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /Piramide/doc/allclasses-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes 7 | 8 | 9 | 10 | 11 | 12 |

All Classes

13 |
14 | 17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /Enunciado1/src/Enunciado3.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Enunciado3 { 4 | 5 | public static boolean esPrimo(long n){ 6 | boolean primo = true; 7 | 8 | for(long d = n-1;d>1;d--){ 9 | long c = n % d; 10 | if(c == 0) 11 | primo = false; 12 | } 13 | return primo; 14 | } 15 | 16 | public static void main(String[] args) { 17 | System.out.println("Introduzca el número de cifras de los números primos palindrómicos"); 18 | Scanner in = new Scanner(System.in); 19 | int n = in.nextInt(); 20 | 21 | int primos = 0; 22 | int palindromo = 0; 23 | 24 | /* GENERAR PALINDROMOS DE N CIFRAS */ 25 | /* O COMPROBAR PALINDROMOS DE ENTRE TODO N? */ 26 | 27 | 28 | if(esPrimo(palindromo)){ 29 | primos++; 30 | } 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Enunciado1/src/Enunciado4.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Enunciado4 { 4 | public static boolean esPrimo(long n){ 5 | boolean primo = true; 6 | 7 | for(long d = n-1;d>1;d--){ 8 | long c = n % d; 9 | if(c == 0) 10 | primo = false; 11 | } 12 | return primo; 13 | } 14 | 15 | public static int obtener_mcd(int a, int b) { 16 | if(b==0) 17 | return a; 18 | else 19 | return obtener_mcd(b, a % b); 20 | } 21 | 22 | public static void main(String args[]){ 23 | Scanner in = new Scanner(System.in); 24 | int n = in.nextInt(); 25 | int mcm = 1; 26 | // MCM es PRODUCTO DE NUMEROS / MCD 27 | for(int i=2;i<=n;i++){ 28 | mcm =(mcm*i) / obtener_mcd(i,mcm); 29 | 30 | System.out.println(i+" "+mcm); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Piramide/doc/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | <Unnamed> 7 | 8 | 9 | 10 | 11 | 12 |

<Unnamed>

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /Enunciado1/src/Enunciado2.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Enunciado2 { 4 | 5 | public static boolean esPitagorica(long a, long b, long c) { 6 | return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2); 7 | } 8 | 9 | public static void main(String[] args) { 10 | System.out.println("Introduzca un intervalo de números enteros positivos"); 11 | Scanner in = new Scanner(System.in); 12 | long x = in.nextLong(); 13 | long y = in.nextLong(); 14 | long n = Math.min(x, y); 15 | long m = Math.max(x, y); 16 | 17 | for (long a = 1; a < m / 2; a++) { 18 | for (long b = a + 1; b < m / 2; b++) { 19 | long c = (long) Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); 20 | if (n <= a + b + c && a + b + c <= m && esPitagorica(a, b, c)) { 21 | System.out.println(a + " " + b + " " + (c)); 22 | } 23 | } 24 | } 25 | 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Enunciado1/src/Enunciado1.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Enunciado1 { 4 | /* Calcula el número de operaciones necesarias para llegar a 1 según la conjetura de Collatz */ 5 | public static int longCiclo(long n){ 6 | /* PRE: n>0 */ 7 | int times = 1; 8 | while(n!=1){ 9 | if(n % 2 == 0){ 10 | n /= 2; 11 | }else{ 12 | n *= 3; 13 | n++; 14 | } 15 | times++; 16 | } 17 | return times; 18 | } 19 | public static void main(String args[]){ 20 | System.out.println("Introduzca un rango con dos números enteros positivos"); 21 | Scanner in = new Scanner(System.in); 22 | int n = in.nextInt(); 23 | int m = in.nextInt(); 24 | int max = 0; 25 | int a = Math.min(n, m); 26 | int b = Math.max(n, m); 27 | while(a<=b){ 28 | max = Math.max(longCiclo(a), max); 29 | a++; 30 | } 31 | System.out.println("El número máximos de ciclos para llegar a 1 en Collatz es: "+max); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Piramide/doc/script.js: -------------------------------------------------------------------------------- 1 | function show(type) 2 | { 3 | count = 0; 4 | for (var key in methods) { 5 | var row = document.getElementById(key); 6 | if ((methods[key] & type) != 0) { 7 | row.style.display = ''; 8 | row.className = (count++ % 2) ? rowColor : altColor; 9 | } 10 | else 11 | row.style.display = 'none'; 12 | } 13 | updateTabs(type); 14 | } 15 | 16 | function updateTabs(type) 17 | { 18 | for (var value in tabs) { 19 | var sNode = document.getElementById(tabs[value][0]); 20 | var spanNode = sNode.firstChild; 21 | if (value == type) { 22 | sNode.className = activeTableTab; 23 | spanNode.innerHTML = tabs[value][1]; 24 | } 25 | else { 26 | sNode.className = tableTab; 27 | spanNode.innerHTML = "" + tabs[value][1] + ""; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Impares/src/Impares.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Impares { 4 | 5 | public static void main(String[] args) { 6 | // Calcula la media de los impares introducidos 7 | System.out.println("Introduce los 5 números enteros"); 8 | Scanner in = new Scanner(System.in); 9 | int n, suma = 0, impares = 0; 10 | n = in.nextInt(); 11 | if (n % 2 == 1) { 12 | suma += n; 13 | impares++; 14 | } 15 | n = in.nextInt(); 16 | if (n % 2 == 1) { 17 | suma += n; 18 | impares++; 19 | } 20 | n = in.nextInt(); 21 | if (n % 2 == 1) { 22 | suma += n; 23 | impares++; 24 | } 25 | n = in.nextInt(); 26 | if (n % 2 == 1) { 27 | suma += n; 28 | impares++; 29 | } 30 | n = in.nextInt(); 31 | if (n % 2 == 1) { 32 | suma += n; 33 | impares++; 34 | } 35 | if (impares != 0) { 36 | double media = (double) suma / impares; 37 | System.out.println("La media de los impares es: " + media); 38 | } else { 39 | System.out.println("No has introducido ningún impar"); 40 | } 41 | in.close(); 42 | 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /DibujaTriangulo/src/DibujaTriangulo.java: -------------------------------------------------------------------------------- 1 | import java.awt.Color; 2 | import java.awt.Graphics; 3 | 4 | import javax.swing.JComponent; 5 | import javax.swing.JFrame; 6 | 7 | import java.util.Scanner; 8 | 9 | class Triangulo extends JComponent { 10 | int h, r, gr, b; 11 | 12 | public Triangulo(int n) { 13 | h = n; 14 | 15 | } 16 | 17 | public void color(int a, int d, int c) { 18 | r = a; 19 | gr = d; 20 | b = c; 21 | } 22 | 23 | public void paint(Graphics g) { 24 | g.setColor(new Color(r, gr, b)); 25 | /* Triangulo Bien */ 26 | 27 | for (int x = 0; x < h; x++) { 28 | for (int y = 0; y < h - x; y++) { 29 | g.fillRect(x, y, 1, 1); 30 | } 31 | } 32 | /* Triangulo Inverso */ 33 | /* 34 | * for (int y = 0; y < h; y++) { for (int x = y; x < h; x++) { 35 | * g.fillRect(x, y, 1, 1); } } 36 | */ 37 | 38 | } 39 | } 40 | 41 | public class DibujaTriangulo { 42 | public static void main(String args[]) { 43 | System.out.println("Altura del triángulo: "); 44 | Scanner in = new Scanner(System.in); 45 | Triangulo t = new Triangulo(in.nextInt()); 46 | System.out.println("Color del triángulo(1=rojo,2=azul,3=verde,4=amarillo): "); 47 | 48 | switch (in.nextInt()) { 49 | case 1: 50 | t.color(255, 0, 0); 51 | break; 52 | case 2: 53 | t.color(0, 0, 255); 54 | break; 55 | case 3: 56 | t.color(0, 255, 0); 57 | break; 58 | case 4: 59 | t.color(0, 128, 128); 60 | break; 61 | } 62 | JFrame window = new JFrame(); 63 | window.setTitle("TRIANGULO NO-ILLUMINATI"); 64 | window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 65 | window.setBounds(30, 30, 300, 300); 66 | window.getContentPane().add(t); 67 | window.setVisible(true); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /Examen/src/adriarr.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class CapicuasYPrimos { 4 | 5 | public static boolean esPrimo(long n){ 6 | boolean primo = true; 7 | for(int i=2;i<=Math.sqrt(n) && primo;i++){ 8 | if(n % i == 0){ 9 | primo = false; 10 | } 11 | } 12 | return primo; 13 | } 14 | 15 | public static void main(String[] args) { 16 | /* El programa calcula el numero de numeros de N cifras que son capicuas y primos */ 17 | int capicuasPrimos = 0; 18 | 19 | // OBTENER ENTRADA 20 | Scanner in = new Scanner(System.in); 21 | byte n = 0; 22 | do{ 23 | System.out.print("Introduzca un número entre 2 y 15: "); 24 | n = in.nextByte(); 25 | 26 | }while(n < 2 || n > 15); 27 | 28 | // GENERAR CAPICUAS 29 | int mitadLongitud = n/2; 30 | for(int semicapicua=(int) Math.pow(10, mitadLongitud -1);semicapicua 15); 27 | 28 | // GENERAR CAPICUAS 29 | int mitadLongitud = n/2; 30 | for(int semicapicua=(int) Math.pow(10, mitadLongitud -1);semicapicua= 0) System.out.print("+"); 61 | System.out.print(b+"x "); 62 | c = in.nextInt(); 63 | System.out.print("\r"); 64 | System.out.print(a+"x\u00B2 "); 65 | if(b >= 0) System.out.print("+"); 66 | System.out.print(b+"x "); 67 | if(c>= 0) System.out.print("+"); 68 | System.out.print(c + " = 0\n"); 69 | in.close(); 70 | calcularEcuacion(a,b,c);*/ 71 | Pattern pat = Pattern.compile(" [0-9.]+ ?€",Pattern.CASE_INSENSITIVE); 72 | Matcher m = pat.matcher("Esta cadena 75.34 € sale sin números"); 73 | if(m.find()){ 74 | System.out.println("Dinero: "+m.group()); 75 | } 76 | 77 | 78 | 79 | } 80 | 81 | } 82 | -------------------------------------------------------------------------------- /Piramide/doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 59 | 60 | 61 | 62 | 63 | 64 | <noscript> 65 | <div>JavaScript is disabled on your browser.</div> 66 | </noscript> 67 | <h2>Frame Alert</h2> 68 | <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="Piramide.html">Non-frame version</a>.</p> 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Piramide/doc/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Deprecated API

73 |

Contents

74 |
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 92 |
93 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Piramide/doc/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Constant Field Values

73 |

Contents

74 |
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 92 |
93 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Piramide/doc/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Uses of Package

73 |
74 |
No usage of
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 92 |
93 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Piramide/doc/overview-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Hierarchy For All Packages

73 |
74 |
75 |

Class Hierarchy

76 |
    77 |
  • java.lang.Object 78 | 81 |
  • 82 |
83 |
84 | 85 |
86 | 87 | 88 | 89 | 90 | 91 | 92 | 101 |
102 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /Piramide/doc/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Hierarchy For Package <Unnamed>

73 |
74 |
75 |

Class Hierarchy

76 |
    77 |
  • java.lang.Object 78 | 81 |
  • 82 |
83 |
84 | 85 |
86 | 87 | 88 | 89 | 90 | 91 | 92 | 101 |
102 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /Piramide/doc/class-use/Piramide.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class Piramide 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
Piramide

73 |
74 |
No usage of Piramide
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 92 |
93 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Piramide/doc/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 31 |
32 | 59 | 60 |
61 |

Package <Unnamed>

62 |
63 |
64 |
    65 |
  • 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
    Class Summary 
    ClassDescription
    Piramide 
    79 |
  • 80 |
81 |
82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 99 |
100 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /Piramide/doc/index-files/index-1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | M-Index 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
M P U W  72 | 73 | 74 |

M

75 |
76 |
main(String[]) - Static method in class Piramide
77 |
 
78 |
79 | M P U W 
80 | 81 |
82 | 83 | 84 | 85 | 86 | 87 | 88 | 97 |
98 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /Piramide/doc/index-files/index-4.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | W-Index 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
M P U W  72 | 73 | 74 |

W

75 |
76 |
writeLineFor(int, int) - Static method in class Piramide
77 |
 
78 |
79 | M P U W 
80 | 81 |
82 | 83 | 84 | 85 | 86 | 87 | 88 | 97 |
98 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /Piramide/doc/index-files/index-3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | U-Index 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
M P U W  72 | 73 | 74 |

U

75 |
76 |
ultimaCifra(int) - Static method in class Piramide
77 |
 
78 |
79 | M P U W 
80 | 81 |
82 | 83 | 84 | 85 | 86 | 87 | 88 | 97 |
98 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /Piramide/doc/index-files/index-2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | P-Index 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
M P U W  72 | 73 | 74 |

P

75 |
76 |
Piramide - Class in <Unnamed>
77 |
 
78 |
Piramide() - Constructor for class Piramide
79 |
 
80 |
81 | M P U W 
82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 99 |
100 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /Piramide/doc/help-doc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | API Help 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

How This API Document Is Organized

73 |
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
74 |
75 |
76 |
    77 |
  • 78 |

    Package

    79 |

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    80 |
      81 |
    • Interfaces (italic)
    • 82 |
    • Classes
    • 83 |
    • Enums
    • 84 |
    • Exceptions
    • 85 |
    • Errors
    • 86 |
    • Annotation Types
    • 87 |
    88 |
  • 89 |
  • 90 |

    Class/Interface

    91 |

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    92 |
      93 |
    • Class inheritance diagram
    • 94 |
    • Direct Subclasses
    • 95 |
    • All Known Subinterfaces
    • 96 |
    • All Known Implementing Classes
    • 97 |
    • Class/interface declaration
    • 98 |
    • Class/interface description
    • 99 |
    100 |
      101 |
    • Nested Class Summary
    • 102 |
    • Field Summary
    • 103 |
    • Constructor Summary
    • 104 |
    • Method Summary
    • 105 |
    106 |
      107 |
    • Field Detail
    • 108 |
    • Constructor Detail
    • 109 |
    • Method Detail
    • 110 |
    111 |

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    112 |
  • 113 |
  • 114 |

    Annotation Type

    115 |

    Each annotation type has its own separate page with the following sections:

    116 |
      117 |
    • Annotation Type declaration
    • 118 |
    • Annotation Type description
    • 119 |
    • Required Element Summary
    • 120 |
    • Optional Element Summary
    • 121 |
    • Element Detail
    • 122 |
    123 |
  • 124 |
  • 125 |

    Enum

    126 |

    Each enum has its own separate page with the following sections:

    127 |
      128 |
    • Enum declaration
    • 129 |
    • Enum description
    • 130 |
    • Enum Constant Summary
    • 131 |
    • Enum Constant Detail
    • 132 |
    133 |
  • 134 |
  • 135 |

    Use

    136 |

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    137 |
  • 138 |
  • 139 |

    Tree (Class Hierarchy)

    140 |

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    141 |
      142 |
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • 143 |
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • 144 |
    145 |
  • 146 |
  • 147 |

    Deprecated API

    148 |

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    149 |
  • 150 |
  • 151 |

    Index

    152 |

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    153 |
  • 154 |
  • 155 |

    Prev/Next

    156 |

    These links take you to the next or previous class, interface, package, or related page.

    157 |
  • 158 |
  • 159 |

    Frames/No Frames

    160 |

    These links show and hide the HTML frames. All pages are available with or without frames.

    161 |
  • 162 |
  • 163 |

    All Classes

    164 |

    The All Classes link shows all classes and interfaces except non-static nested types.

    165 |
  • 166 |
  • 167 |

    Serialized Form

    168 |

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    169 |
  • 170 |
  • 171 |

    Constant Field Values

    172 |

    The Constant Field Values page lists the static final fields and their values.

    173 |
  • 174 |
175 | This help file applies to API documentation generated using the standard doclet.
176 | 177 |
178 | 179 | 180 | 181 | 182 | 183 | 184 | 193 |
194 | 221 | 222 | 223 | 224 | -------------------------------------------------------------------------------- /Piramide/doc/Piramide.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Piramide 7 | 8 | 9 | 10 | 11 | 12 | 28 | 31 | 32 |
33 | 34 | 35 | 36 | 37 | 38 | 39 | 48 |
49 | 91 | 92 | 93 |
94 |

Class Piramide

95 |
96 |
97 |
    98 |
  • java.lang.Object
  • 99 |
  • 100 |
      101 |
    • Piramide
    • 102 |
    103 |
  • 104 |
105 |
106 |
    107 |
  • 108 |
    109 |
    110 |
    public class Piramide
    111 | extends java.lang.Object
    112 |
  • 113 |
114 |
115 |
116 |
    117 |
  • 118 | 119 |
      120 |
    • 121 | 122 | 123 |

      Constructor Summary

      124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 |
      Constructors 
      Constructor and Description
      Piramide() 
      133 |
    • 134 |
    135 | 136 |
      137 |
    • 138 | 139 | 140 |

      Method Summary

      141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 159 | 160 |
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String[] args) 
      static intultimaCifra(int n) 
      static voidwriteLineFor(int line, 158 | int total) 
      161 |
        162 |
      • 163 | 164 | 165 |

        Methods inherited from class java.lang.Object

        166 | equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 167 |
      168 |
    • 169 |
    170 |
  • 171 |
172 |
173 |
174 |
    175 |
  • 176 | 177 |
      178 |
    • 179 | 180 | 181 |

      Constructor Detail

      182 | 183 | 184 | 185 |
        186 |
      • 187 |

        Piramide

        188 |
        public Piramide()
        189 |
      • 190 |
      191 |
    • 192 |
    193 | 194 |
      195 |
    • 196 | 197 | 198 |

      Method Detail

      199 | 200 | 201 | 202 |
        203 |
      • 204 |

        ultimaCifra

        205 |
        public static int ultimaCifra(int n)
        206 |
      • 207 |
      208 | 209 | 210 | 211 |
        212 |
      • 213 |

        writeLineFor

        214 |
        public static void writeLineFor(int line,
        215 |                                 int total)
        216 |
      • 217 |
      218 | 219 | 220 | 221 |
        222 |
      • 223 |

        main

        224 |
        public static void main(java.lang.String[] args)
        225 |
      • 226 |
      227 |
    • 228 |
    229 |
  • 230 |
231 |
232 |
233 | 234 | 235 |
236 | 237 | 238 | 239 | 240 | 241 | 242 | 251 |
252 | 294 | 295 | 296 | 297 | -------------------------------------------------------------------------------- /Piramide/doc/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | /* 3 | Overall document style 4 | */ 5 | 6 | @import url('resources/fonts/dejavu.css'); 7 | 8 | body { 9 | background-color:#ffffff; 10 | color:#353833; 11 | font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; 12 | font-size:14px; 13 | margin:0; 14 | } 15 | a:link, a:visited { 16 | text-decoration:none; 17 | color:#4A6782; 18 | } 19 | a:hover, a:focus { 20 | text-decoration:none; 21 | color:#bb7a2a; 22 | } 23 | a:active { 24 | text-decoration:none; 25 | color:#4A6782; 26 | } 27 | a[name] { 28 | color:#353833; 29 | } 30 | a[name]:hover { 31 | text-decoration:none; 32 | color:#353833; 33 | } 34 | pre { 35 | font-family:'DejaVu Sans Mono', monospace; 36 | font-size:14px; 37 | } 38 | h1 { 39 | font-size:20px; 40 | } 41 | h2 { 42 | font-size:18px; 43 | } 44 | h3 { 45 | font-size:16px; 46 | font-style:italic; 47 | } 48 | h4 { 49 | font-size:13px; 50 | } 51 | h5 { 52 | font-size:12px; 53 | } 54 | h6 { 55 | font-size:11px; 56 | } 57 | ul { 58 | list-style-type:disc; 59 | } 60 | code, tt { 61 | font-family:'DejaVu Sans Mono', monospace; 62 | font-size:14px; 63 | padding-top:4px; 64 | margin-top:8px; 65 | line-height:1.4em; 66 | } 67 | dt code { 68 | font-family:'DejaVu Sans Mono', monospace; 69 | font-size:14px; 70 | padding-top:4px; 71 | } 72 | table tr td dt code { 73 | font-family:'DejaVu Sans Mono', monospace; 74 | font-size:14px; 75 | vertical-align:top; 76 | padding-top:4px; 77 | } 78 | sup { 79 | font-size:8px; 80 | } 81 | /* 82 | Document title and Copyright styles 83 | */ 84 | .clear { 85 | clear:both; 86 | height:0px; 87 | overflow:hidden; 88 | } 89 | .aboutLanguage { 90 | float:right; 91 | padding:0px 21px; 92 | font-size:11px; 93 | z-index:200; 94 | margin-top:-9px; 95 | } 96 | .legalCopy { 97 | margin-left:.5em; 98 | } 99 | .bar a, .bar a:link, .bar a:visited, .bar a:active { 100 | color:#FFFFFF; 101 | text-decoration:none; 102 | } 103 | .bar a:hover, .bar a:focus { 104 | color:#bb7a2a; 105 | } 106 | .tab { 107 | background-color:#0066FF; 108 | color:#ffffff; 109 | padding:8px; 110 | width:5em; 111 | font-weight:bold; 112 | } 113 | /* 114 | Navigation bar styles 115 | */ 116 | .bar { 117 | background-color:#4D7A97; 118 | color:#FFFFFF; 119 | padding:.8em .5em .4em .8em; 120 | height:auto;/*height:1.8em;*/ 121 | font-size:11px; 122 | margin:0; 123 | } 124 | .topNav { 125 | background-color:#4D7A97; 126 | color:#FFFFFF; 127 | float:left; 128 | padding:0; 129 | width:100%; 130 | clear:right; 131 | height:2.8em; 132 | padding-top:10px; 133 | overflow:hidden; 134 | font-size:12px; 135 | } 136 | .bottomNav { 137 | margin-top:10px; 138 | background-color:#4D7A97; 139 | color:#FFFFFF; 140 | float:left; 141 | padding:0; 142 | width:100%; 143 | clear:right; 144 | height:2.8em; 145 | padding-top:10px; 146 | overflow:hidden; 147 | font-size:12px; 148 | } 149 | .subNav { 150 | background-color:#dee3e9; 151 | float:left; 152 | width:100%; 153 | overflow:hidden; 154 | font-size:12px; 155 | } 156 | .subNav div { 157 | clear:left; 158 | float:left; 159 | padding:0 0 5px 6px; 160 | text-transform:uppercase; 161 | } 162 | ul.navList, ul.subNavList { 163 | float:left; 164 | margin:0 25px 0 0; 165 | padding:0; 166 | } 167 | ul.navList li{ 168 | list-style:none; 169 | float:left; 170 | padding: 5px 6px; 171 | text-transform:uppercase; 172 | } 173 | ul.subNavList li{ 174 | list-style:none; 175 | float:left; 176 | } 177 | .topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { 178 | color:#FFFFFF; 179 | text-decoration:none; 180 | text-transform:uppercase; 181 | } 182 | .topNav a:hover, .bottomNav a:hover { 183 | text-decoration:none; 184 | color:#bb7a2a; 185 | text-transform:uppercase; 186 | } 187 | .navBarCell1Rev { 188 | background-color:#F8981D; 189 | color:#253441; 190 | margin: auto 5px; 191 | } 192 | .skipNav { 193 | position:absolute; 194 | top:auto; 195 | left:-9999px; 196 | overflow:hidden; 197 | } 198 | /* 199 | Page header and footer styles 200 | */ 201 | .header, .footer { 202 | clear:both; 203 | margin:0 20px; 204 | padding:5px 0 0 0; 205 | } 206 | .indexHeader { 207 | margin:10px; 208 | position:relative; 209 | } 210 | .indexHeader span{ 211 | margin-right:15px; 212 | } 213 | .indexHeader h1 { 214 | font-size:13px; 215 | } 216 | .title { 217 | color:#2c4557; 218 | margin:10px 0; 219 | } 220 | .subTitle { 221 | margin:5px 0 0 0; 222 | } 223 | .header ul { 224 | margin:0 0 15px 0; 225 | padding:0; 226 | } 227 | .footer ul { 228 | margin:20px 0 5px 0; 229 | } 230 | .header ul li, .footer ul li { 231 | list-style:none; 232 | font-size:13px; 233 | } 234 | /* 235 | Heading styles 236 | */ 237 | div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { 238 | background-color:#dee3e9; 239 | border:1px solid #d0d9e0; 240 | margin:0 0 6px -8px; 241 | padding:7px 5px; 242 | } 243 | ul.blockList ul.blockList ul.blockList li.blockList h3 { 244 | background-color:#dee3e9; 245 | border:1px solid #d0d9e0; 246 | margin:0 0 6px -8px; 247 | padding:7px 5px; 248 | } 249 | ul.blockList ul.blockList li.blockList h3 { 250 | padding:0; 251 | margin:15px 0; 252 | } 253 | ul.blockList li.blockList h2 { 254 | padding:0px 0 20px 0; 255 | } 256 | /* 257 | Page layout container styles 258 | */ 259 | .contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { 260 | clear:both; 261 | padding:10px 20px; 262 | position:relative; 263 | } 264 | .indexContainer { 265 | margin:10px; 266 | position:relative; 267 | font-size:12px; 268 | } 269 | .indexContainer h2 { 270 | font-size:13px; 271 | padding:0 0 3px 0; 272 | } 273 | .indexContainer ul { 274 | margin:0; 275 | padding:0; 276 | } 277 | .indexContainer ul li { 278 | list-style:none; 279 | padding-top:2px; 280 | } 281 | .contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { 282 | font-size:12px; 283 | font-weight:bold; 284 | margin:10px 0 0 0; 285 | color:#4E4E4E; 286 | } 287 | .contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { 288 | margin:5px 0 10px 0px; 289 | font-size:14px; 290 | font-family:'DejaVu Sans Mono',monospace; 291 | } 292 | .serializedFormContainer dl.nameValue dt { 293 | margin-left:1px; 294 | font-size:1.1em; 295 | display:inline; 296 | font-weight:bold; 297 | } 298 | .serializedFormContainer dl.nameValue dd { 299 | margin:0 0 0 1px; 300 | font-size:1.1em; 301 | display:inline; 302 | } 303 | /* 304 | List styles 305 | */ 306 | ul.horizontal li { 307 | display:inline; 308 | font-size:0.9em; 309 | } 310 | ul.inheritance { 311 | margin:0; 312 | padding:0; 313 | } 314 | ul.inheritance li { 315 | display:inline; 316 | list-style:none; 317 | } 318 | ul.inheritance li ul.inheritance { 319 | margin-left:15px; 320 | padding-left:15px; 321 | padding-top:1px; 322 | } 323 | ul.blockList, ul.blockListLast { 324 | margin:10px 0 10px 0; 325 | padding:0; 326 | } 327 | ul.blockList li.blockList, ul.blockListLast li.blockList { 328 | list-style:none; 329 | margin-bottom:15px; 330 | line-height:1.4; 331 | } 332 | ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { 333 | padding:0px 20px 5px 10px; 334 | border:1px solid #ededed; 335 | background-color:#f8f8f8; 336 | } 337 | ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { 338 | padding:0 0 5px 8px; 339 | background-color:#ffffff; 340 | border:none; 341 | } 342 | ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { 343 | margin-left:0; 344 | padding-left:0; 345 | padding-bottom:15px; 346 | border:none; 347 | } 348 | ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { 349 | list-style:none; 350 | border-bottom:none; 351 | padding-bottom:0; 352 | } 353 | table tr td dl, table tr td dl dt, table tr td dl dd { 354 | margin-top:0; 355 | margin-bottom:1px; 356 | } 357 | /* 358 | Table styles 359 | */ 360 | .overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { 361 | width:100%; 362 | border-left:1px solid #EEE; 363 | border-right:1px solid #EEE; 364 | border-bottom:1px solid #EEE; 365 | } 366 | .overviewSummary, .memberSummary { 367 | padding:0px; 368 | } 369 | .overviewSummary caption, .memberSummary caption, .typeSummary caption, 370 | .useSummary caption, .constantsSummary caption, .deprecatedSummary caption { 371 | position:relative; 372 | text-align:left; 373 | background-repeat:no-repeat; 374 | color:#253441; 375 | font-weight:bold; 376 | clear:none; 377 | overflow:hidden; 378 | padding:0px; 379 | padding-top:10px; 380 | padding-left:1px; 381 | margin:0px; 382 | white-space:pre; 383 | } 384 | .overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, 385 | .useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, 386 | .overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, 387 | .useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, 388 | .overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, 389 | .useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, 390 | .overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, 391 | .useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { 392 | color:#FFFFFF; 393 | } 394 | .overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, 395 | .useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { 396 | white-space:nowrap; 397 | padding-top:5px; 398 | padding-left:12px; 399 | padding-right:12px; 400 | padding-bottom:7px; 401 | display:inline-block; 402 | float:left; 403 | background-color:#F8981D; 404 | border: none; 405 | height:16px; 406 | } 407 | .memberSummary caption span.activeTableTab span { 408 | white-space:nowrap; 409 | padding-top:5px; 410 | padding-left:12px; 411 | padding-right:12px; 412 | margin-right:3px; 413 | display:inline-block; 414 | float:left; 415 | background-color:#F8981D; 416 | height:16px; 417 | } 418 | .memberSummary caption span.tableTab span { 419 | white-space:nowrap; 420 | padding-top:5px; 421 | padding-left:12px; 422 | padding-right:12px; 423 | margin-right:3px; 424 | display:inline-block; 425 | float:left; 426 | background-color:#4D7A97; 427 | height:16px; 428 | } 429 | .memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { 430 | padding-top:0px; 431 | padding-left:0px; 432 | padding-right:0px; 433 | background-image:none; 434 | float:none; 435 | display:inline; 436 | } 437 | .overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, 438 | .useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { 439 | display:none; 440 | width:5px; 441 | position:relative; 442 | float:left; 443 | background-color:#F8981D; 444 | } 445 | .memberSummary .activeTableTab .tabEnd { 446 | display:none; 447 | width:5px; 448 | margin-right:3px; 449 | position:relative; 450 | float:left; 451 | background-color:#F8981D; 452 | } 453 | .memberSummary .tableTab .tabEnd { 454 | display:none; 455 | width:5px; 456 | margin-right:3px; 457 | position:relative; 458 | background-color:#4D7A97; 459 | float:left; 460 | 461 | } 462 | .overviewSummary td, .memberSummary td, .typeSummary td, 463 | .useSummary td, .constantsSummary td, .deprecatedSummary td { 464 | text-align:left; 465 | padding:0px 0px 12px 10px; 466 | } 467 | th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, 468 | td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ 469 | vertical-align:top; 470 | padding-right:0px; 471 | padding-top:8px; 472 | padding-bottom:3px; 473 | } 474 | th.colFirst, th.colLast, th.colOne, .constantsSummary th { 475 | background:#dee3e9; 476 | text-align:left; 477 | padding:8px 3px 3px 7px; 478 | } 479 | td.colFirst, th.colFirst { 480 | white-space:nowrap; 481 | font-size:13px; 482 | } 483 | td.colLast, th.colLast { 484 | font-size:13px; 485 | } 486 | td.colOne, th.colOne { 487 | font-size:13px; 488 | } 489 | .overviewSummary td.colFirst, .overviewSummary th.colFirst, 490 | .useSummary td.colFirst, .useSummary th.colFirst, 491 | .overviewSummary td.colOne, .overviewSummary th.colOne, 492 | .memberSummary td.colFirst, .memberSummary th.colFirst, 493 | .memberSummary td.colOne, .memberSummary th.colOne, 494 | .typeSummary td.colFirst{ 495 | width:25%; 496 | vertical-align:top; 497 | } 498 | td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { 499 | font-weight:bold; 500 | } 501 | .tableSubHeadingColor { 502 | background-color:#EEEEFF; 503 | } 504 | .altColor { 505 | background-color:#FFFFFF; 506 | } 507 | .rowColor { 508 | background-color:#EEEEEF; 509 | } 510 | /* 511 | Content styles 512 | */ 513 | .description pre { 514 | margin-top:0; 515 | } 516 | .deprecatedContent { 517 | margin:0; 518 | padding:10px 0; 519 | } 520 | .docSummary { 521 | padding:0; 522 | } 523 | 524 | ul.blockList ul.blockList ul.blockList li.blockList h3 { 525 | font-style:normal; 526 | } 527 | 528 | div.block { 529 | font-size:14px; 530 | font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; 531 | } 532 | 533 | td.colLast div { 534 | padding-top:0px; 535 | } 536 | 537 | 538 | td.colLast a { 539 | padding-bottom:3px; 540 | } 541 | /* 542 | Formatting effect styles 543 | */ 544 | .sourceLineNo { 545 | color:green; 546 | padding:0 30px 0 0; 547 | } 548 | h1.hidden { 549 | visibility:hidden; 550 | overflow:hidden; 551 | font-size:10px; 552 | } 553 | .block { 554 | display:block; 555 | margin:3px 10px 2px 0px; 556 | color:#474747; 557 | } 558 | .deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, 559 | .overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, 560 | .seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { 561 | font-weight:bold; 562 | } 563 | .deprecationComment, .emphasizedPhrase, .interfaceName { 564 | font-style:italic; 565 | } 566 | 567 | div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, 568 | div.block div.block span.interfaceName { 569 | font-style:normal; 570 | } 571 | 572 | div.contentContainer ul.blockList li.blockList h2{ 573 | padding-bottom:0px; 574 | } 575 | --------------------------------------------------------------------------------