text stringlengths 3 1.18M |
|---|
class calculatorClass {
int x;
int y;
public calculatorClass( int num1, int num2 ) {
x = num1;
y = num2;
}
public int addNumber() {
return x + y;
}
public int subtractNumber() {
return x - y;
}
public int multiplyNumber() {
return x * y;
}
public int divideNumber() {
return x / y... |
import javax.swing.*;
public class userInput {
public static void main(String[] args) {
String num = "";
num = JOptionPane.showInputDialog(null, "Please enter your name:" );
JOptionPane.showMessageDialog(null, "Hi " + num + "!");
}
} |
import javax.swing.*;
public class oddEven
{
public static void main(String[] args)
{
int number;
number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " ));
OddNumber ( number );
EvenNumber ( number );
}
private static void OddNumber ( int num )
{
... |
class stackClass {
private int maxSize;
private char[] stackArray;
private int top;
public stackClass(int max) {
maxSize = max;
stackArray = new char[maxSize];
top = -1;
}
public void push(char j) {
stackArray[++top] = j;
}
... |
import java.io.IOException;
public class reverseStack {
private String input;
private String output;
public reverseStack(String in) {
input = in;
}
public String doRev() {
int stackSize = input.length();
Stack theStack = new Stack(stackSize);
for (int i = 0; i < in... |
class myArrayList {
private int[] myArray;
private int size;
public myArrayList( int value, int seed, int increment ) {
myArray = new int [value];
size = value;
for ( int counter = 0 ; counter < size ; counter++ ) {
myArray[counter] = seed;
seed += increment;
}
}
public void printEleme... |
import java.util.Random;
class sortArray
{
private int[] myArray;
public sortArray()
{
System.out.println("Default Order:");
Random digit = new Random();
myArray = new int [10];
for ( int counter = 0 ; counter < 10 ; counter++ )
{
myArray[counter] = 1 + digit.nextInt(10);
}
printEleme... |
import javax.swing.*;
public class helloWorld {
public static void main(String[] args) {
JOptionPane.showMessageDialog( null, "Hello World!" );
}
} |
class calculatorClass {
int x;
int y;
public calculatorClass( int num1, int num2 ) {
x = num1;
y = num2;
}
public int addNumber() {
return x + y;
}
public int subtractNumber() {
return x - y;
}
public int multiplyNumber() {
return x * y;
}
public int divideNumber() {
return x / y... |
import javax.swing.*;
public class userInput {
public static void main(String[] args) {
String num = "";
num = JOptionPane.showInputDialog(null, "Please enter your name:" );
JOptionPane.showMessageDialog(null, "Hi " + num + "!");
}
} |
import javax.swing.*;
public class oddEven
{
public static void main(String[] args)
{
int number;
number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " ));
OddNumber ( number );
EvenNumber ( number );
}
private static void OddNumber ( int num )
{
... |
package java_app1;
class Queue{
private int maxSize;
private char[] queueArray;
private int queueFront;
private int queueRear;
private int count; // count elements w/in our queue//
private int x;
public Queue(int max){
maxSize = 5;
queueArray = new char[maxSize];
... |
class stackClass {
private int maxSize;
private char[] stackArray;
private int top;
public stackClass(int max) {
maxSize = max;
stackArray = new char[maxSize];
top = -1;
}
public void push(char j) {
stackArray[++top] = j;
}
... |
import java.io.IOException;
public class reverseStack {
private String input;
private String output;
public reverseStack(String in) {
input = in;
}
public String doRev() {
int stackSize = input.length();
Stack theStack = new Stack(stackSize);
for (int i = 0; i < in... |
class myArrayList {
private int[] myArray;
private int size;
public myArrayList( int value, int seed, int increment ) {
myArray = new int [value];
size = value;
for ( int counter = 0 ; counter < size ; counter++ ) {
myArray[counter] = seed;
seed += increment;
}
}
public void printEleme... |
import java.util.Random;
class sortArray
{
private int[] myArray;
public sortArray()
{
System.out.println("Default Order:");
Random digit = new Random();
myArray = new int [10];
for ( int counter = 0 ; counter < 10 ; counter++ )
{
myArray[counter] = 1 + digit.nextInt(10);
}
printEleme... |
class LinkedListNode{
public int data;
public LinkedListNode link;
}
public class JavaApplication {
public static void main(String[] args){
LinkedListNode head;
LinkedListNode newNode;
LinkedListNode current;
newNode = new LinkedListNode();
newNode.data = 17;
head = newNode;
... |
import java.util.Random;
class SortArray {
private int[] MyArray;
public SortArray(){
System.out.println("Default Order: ");
Random digit = new Random();
MyArray = new int [10];
for (int counter = 0; counter < 10; counter++){
MyArray[counter] = 1 + digit.nextInt(10);
}
printElements();
}
publi... |
class LinkedListNode{
public int data;
public LinkedListNode link;
}
public class JavaApplication1 {
public static void main(String[] args){
LinkedListNode head; // main
LinkedListNode newNode; // temporary
LinkedListNode current, current2; // flexible
LinkedListNode pointer;
newNod... |
package lesson_2;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "Lesson_2"; //$NON-NLS-1$
... |
public class HellowWorld {
public static void main(String[] args){
System.out.println("hello world");
}
}
|
import javax.swing.*;
public class Userinput
{
public static void main(String[] args)
{
int number;
number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " ));
if ( number % 2 == 1 )
{
JOptionPane.showMessag... |
class Calculator{
int x;
int y;
int z;
public Calculator(int num1,int num2){
x = num1;
y = num2;
}
public int addNumbers(){
z = x+y;
return z;
}
... |
public class HellowWorld {
public static void main(String[] args){
System.out.println("hello world");
}
}
|
import javax.swing.*;
public class Userinput
{
public static void main(String[] args)
{
int number;
number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " ));
if ( number % 2 == 1 )
{
JOptionPane.showMessag... |
class Queue{
private int maxSize;
private char[] queueArray;
private int Front;
private int Rear;
private int Counter;
public Queue(int max) {
maxSize = max;
queueArray = new char[maxSize];
Front = 0;
Rear = maxSize - 1;
Counter = 0;
}
... |
package lesson_2;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "Lesson_2"; //$NON-NLS-1$
... |
class Calculator{
int x;
int y;
int z;
public Calculator(int num1,int num2){
x = num1;
y = num2;
}
public int addNumbers(){
z = x+y;
return z;
}
... |
class MyArrayList{
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray = new int [value];
size = value;
for(int i=0;i<size;i++){
MyArray[i]=seed;
... |
class MyArrayList{
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray = new int [value];
size = value;
for (int i = 0; i < size; i++) {
MyArray[i] = seed;
seed += inc;
}
}
public void PrintElement(){
for (int i = 0; i < size; i++) {
... |
import javax.swing.JOptionPane;
public class Calculator {
public static void main(String[] args) {
String num1 = "";
num1 =JOptionPane.showInputDialog(null, "Enter number");
int a = Integer.parseInt(num1);
if (a %2==0){
JOptionPane.showMessageDialog(null,"this number is even");
}
e... |
class MyArrayList {
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray = new int[value];
size = value;
for (int i = 0; i < size; i++) {
MyArray[i] = seed;
seed += inc;
}
}
public void PrintList(){
for (int i = 0; i < size; i++... |
class MyArrayList {
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray = new int[value];
size = value;
for (int i = 0; i < size; i++) {
MyArray[i] = seed;
seed += inc;
}
}
public void PrintList(){
for (int i = 0; i < size; ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Students Account
*/
public class firstApplication {
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package firstapplication;
/**
*
* @author Students Account
*/
public class FirstApplication {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TOD... |
class MyArrayList {
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray = new int[value];
size = value;
for (int i = 0; i < size; i++) {
MyArray[i] = seed;
... |
class Queue {
private int maxSize;
private char[] queueArray;
private int queueFront;
private int queueRear;
public int count;
private int control = 0;
public Queue ( int max) {
maxSize = max;
queueArray = new char [maxSize];
queueFront = maxSize - 1;
queueRear = maxSize - 1;
count... |
class Queue {
private int maxSize;
private char[] queueArray;
private int queueFront;
private int queueRear;
private int count;
public Queue ( int max) {
maxSize = max;
queueArray = new char [maxSize];
queueFront = 0;
queueRear = maxSize - 1;
count = 0;
}
public void enqElem(c... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Usuario;
import java.io.Seria... |
package Control.exceptions;
public class PreexistingEntityException extends Exception {
public PreexistingEntityException(String message, Throwable cause) {
super(message, cause);
}
public PreexistingEntityException(String message) {
super(message);
}
}
|
package Control.exceptions;
import java.util.ArrayList;
import java.util.List;
public class IllegalOrphanException extends Exception {
private List<String> messages;
public IllegalOrphanException(List<String> messages) {
super((messages != null && messages.size() > 0 ? messages.get(0) : null))... |
package Control.exceptions;
public class NonexistentEntityException extends Exception {
public NonexistentEntityException(String message, Throwable cause) {
super(message, cause);
}
public NonexistentEntityException(String message) {
super(message);
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Archivoaudio;
import java.io.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Canal;
import java.io.Seriali... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Entidad.*;
import com.itextpdf.text.*;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.pdf.PdfPTable;
import java.io.FileNotFoun... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Archivovideo;
import java.io.... |
package Control;
import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultListModel;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
publi... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Permisos;
import Entidad.PermisosPK;
import java.io.Serializable;
import java.u... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Registromonitoreoaudio;
import Entidad.RegistromonitoreoaudioPK;
import java.io... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Campaña;
import Entidad.CampañaPK;
import java.io.Serializable;
import java.uti... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import javax.persistence.EntityManager;
import util.JpaCentralizer;
/**
*
* @author pepe
*/
public class GeneralJpaCpontroller <Entity> {
public GeneralJpaCpontroller() {
}
p... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Emisora;
import java.io.Seria... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Funciones;
import java.io.Ser... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Registromonitoreovideo;
import Entidad.RegistromonitoreovideoPK;
import java.io... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Control;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityException;
import Control.exceptions.PreexistingEntityException;
import Entidad.Marca;
import java.io.Seriali... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import jav... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.p... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import jav... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Named... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.p... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import jav... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
*
* @author pepe
*/
@Embeddable
public class CampañaPK implemen... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
*
* @author pepe
*/
@Embeddable
public class Registromonitoreoa... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.p... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
*
* @author pepe
*/
@Embeddable
public class PermisosPK impleme... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
*
* @author pepe
*/
@Embeddable
public class Registromonitoreov... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Entidad;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.p... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* AdminEmisora.java
*
* Created on 26/01/2012, 08:16:00 AM
*/
package GUI;
import javax.swing.JPanel;
/**
*
* @author pepe
*/
public class AdminEmisora extends javax.swing.JPanel {
/** Creates new form ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* AdminMonitor.java
*
* Created on 20/01/2012, 06:06:50 PM
*/
package GUI;
import Control.*;
import java.util.List;
/**
*
* @author Andrés 2
*/
public class AdminReportes extends javax.swing.JPanel {
/... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* CrearCanal.java
*
* Created on 26/01/2012, 02:43:59 PM
*/
package GUI;
import Control.CanalJpaController;
import Control.exceptions.PreexistingEntityException;
import Entidad.Canal;
import java.util.logging.Le... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* InicioJF.java
*
* Created on 30/09/2011, 08:49:50 AM
*/
package GUI;
import Control.FuncionesJpaController;
import Control.PermisosJpaController;
import Control.UsuarioJpaController;
import Control.exceptions.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* AdminMonitor.java
*
* Created on 20/01/2012, 06:06:50 PM
*/
package GUI;
/**
*
* @author Andrés 2
*/
public class AdminMonitor extends javax.swing.JPanel {
EliminarUsuario Eliminar = new EliminarUsuari... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Reproductor.java
*
* Created on 03-ene-2012, 8:43:42
*/
package GUI;
import Control.PlayList;
import java.awt.Dimension;
import java.net.URL;
import javax.swing.DefaultListModel;
/**
*
* @author Administr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* EliminarCanal.java
*
* Created on 26/01/2012, 03:23:34 PM
*/
package GUI;
import Control.CanalJpaController;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityExcepti... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* EliminarUsuario.java
*
* Created on 24/09/2011, 10:17:18 AM
*/
package GUI;
import Control.UsuarioJpaController;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityEx... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PanelRadio.java
*
* Created on 18/01/2012, 03:02:32 PM
*/
package GUI;
import Control.ArchivovideoJpaController;
import Entidad.Archivovideo;
import java.util.List;
/**
*
* @author Andrés 2
*/
public clas... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* CrearEmisora.java
*
* Created on 24/01/2012, 07:05:57 PM
*/
package GUI;
import Control.EmisoraJpaController;
import Control.exceptions.PreexistingEntityException;
import Entidad.Emisora;
import java.awt.event... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PanelDeVideo.java
*
* Created on 03-ene-2012, 8:57:02
*/
package GUI;
import java.awt.Component;
import java.awt.Dimension;
import java.io.IOException;
import java.net.URL;
import java.util.Timer;
import java... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* MenuP.java
*
* Created on 18/01/2012, 03:47:30 PM
*/
package GUI;
//import java.awt.event.MouseEvent;
import Control.*;
import Entidad.Canal;
import Entidad.Emisora;
import Entidad.Funciones;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* AdministradorJF.java
*
* Created on 1/10/2011, 11:55:19 AM
*/
package GUI;
import Entidad.Usuario;
/**
*
* @author pepe
*/
public class AdministradorJF extends javax.swing.JFrame {
/** Creates new for... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* EliminarEmisora.java
*
* Created on 26/01/2012, 07:27:40 AM
*/
package GUI;
import Control.EmisoraJpaController;
import Control.exceptions.IllegalOrphanException;
import Control.exceptions.NonexistentEntityExc... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* AdministracionCanal.java
*
* Created on 26/01/2012, 03:11:08 PM
*/
package GUI;
import javax.swing.JPanel;
/**
*
* @author pepe
*/
public class AdministracionCanal extends javax.swing.JPanel {
/** Cre... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PanelRadio.java
*
* Created on 18/01/2012, 03:02:32 PM
*/
package GUI;
import Control.*;
import Entidad.Archivoaudio;
import java.util.List;
import javax.swing.JLabel;
/**
*
* @author Andrés 2
*/
public c... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* IngresarUsuario.java
*
* Created on 24/09/2011, 10:17:09 AM
*/
package GUI;
import Control.UsuarioJpaController;
import Control.exceptions.PreexistingEntityException;
import Entidad.Usuario;
import java.awt.e... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package util;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
/**
*
* @author pepe
*/
public class JpaCentralizer {
static {
emf = Persistence.createEntityManagerFac... |
package com.theveganrobot.cmake;
class HelloWorld {
public native String stringFromJNI();
public static void main(String[] args) {
System.out.println(new HelloWorld().stringFromJNI());
}
static {
System.loadLibrary("hello-cmake");
}
}
|
package com.theveganrobot.cmake;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroidCMake extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.theveganrobot.cmake;
class HelloBoost {
public native String boostMkDir();
public static void main(String[] args) {
System.out.println(new HelloBoost().boostMkDir());
}
static {
System.loadLibrary("hello-boost");
}
}
|
package com.theveganrobot.cmake.eigen;
import com.theveganrobot.cmake.HelloEigen;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroidEigen extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedI... |
package com.theveganrobot.cmake;
public class HelloEigen {
public native String helloMatrix();
public static void main(String[] args) {
System.out.println(new HelloEigen().helloMatrix());
}
static {
System.loadLibrary("hello-eigen");
}
}
|
package com.theveganrobot.cmake;
class HelloEigen {
public native String helloMatrix();
public static void main(String[] args) {
System.out.println(new HelloEigen().helloMatrix());
}
static {
System.loadLibrary("hello-eigen");
}
}
|
package com.theveganrobot.cmake;
class HelloWorld {
public native String stringFromJNI();
public static void main(String[] args) {
System.out.println(new HelloWorld().stringFromJNI());
}
static {
System.loadLibrary("hello-cmake");
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication2;
/**
*
* @author Students Account
*/
class MyArrayList{
private int [] MyArray;
private int size;
public MyArrayList(int value, int seed , int inc){
MyArray = new int[... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication2;
/**
*
* @author Students Account
*/
class MyArrayList{
private int [] MyArray;
private int size;
public MyArrayList(int value, int seed , int inc){
MyArray = new int[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.