text stringlengths 3 1.18M |
|---|
package article.entities;
import java.io.Serializable;
import java.util.ArrayList;
public class ComboVO extends ArticleVO implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private ArrayList<ArticleVO> arts;
public ComboVO(String name, String desc, double price, ArrayList... |
package practica3;
import gui.AntBoard;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStreamReader;
import GACore.IGARandom;
public class AntBoardManager {
public enum PieceT... |
package gui;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescripto... |
package gui;
import java.awt.Color;
import java.awt.Font;
import java.util.ArrayList;
import no.geosoft.cc.geometry.Geometry;
import no.geosoft.cc.graphics.GObject;
import no.geosoft.cc.graphics.GPosition;
import no.geosoft.cc.graphics.GSegment;
import no.geosoft.cc.graphics.GStyle;
import no.geosoft.cc.gr... |
package GACore;
import GA.GAAntPathEvaluator;
public abstract class IGACromosome{
protected double evaluatedValue; // valor de la funcion de evaluacion
protected double score;
protected double acum_score;
public abstract void initCromosome(GAAntPathEvaluator eval, int minD, int maxD);
public abs... |
package GACore;
public abstract class IGAMutator {
public abstract Boolean mutate(IGACromosome cromosoma, double prob);
}
|
package GACore;
public abstract class IGASelector{
public abstract IGACromosome[] select (IGACromosome[] pop, int pop_size) throws InstantiationException, IllegalAccessException;
}
|
package GACore;
public abstract class IGACross {
public abstract IGACromosome[] cross(IGACromosome[] parents);
public static boolean pertenece (int x,int[] l){
int i=0;
boolean res=false;
while(!res && i<l.length)
if(l[i]!=x)i++;
else res=true;
return res;
}
protected static int g... |
package GACore;
import java.util.Random;
public class IGARandom {
private static Random rand = new Random();
public static void setSeed(long seed) {
rand.setSeed(seed);
}
public static boolean getRBoolean() { return rand.nextBoolean();}
public static int getRInt() { return rand.nextInt();}
p... |
package GA;
public class GAProgramTree {
private byte operator;
/* **************
* Tipos:
* **************
*
* -1 -- > Nothing
* 0 -- > Avanza
* 1 -- > Izquierda
* 2 -- > Derecha
* 3 -- > SiComidaDelante
* 4 -- > ProgN2
* 5 -- > ProgN3
*
* *************... |
package GA;
import GACore.IGACromosome;
import GACore.IGAMutator;
import GACore.IGARandom;
public class GAAntPathMutatorTerminal extends IGAMutator{
public Boolean mutate(IGACromosome cromosoma, double prob) {
Boolean res = new Boolean(false);
if(IGARandom.getRDouble()<= prob){
GAProgramTre... |
package GA;
import java.util.HashSet;
import java.util.Iterator;
import GACore.IGACromosome;
import GACore.IGAMutator;
import GACore.IGARandom;
public class GAAntPathMutatorInitial extends IGAMutator{
@Override
public Boolean mutate(IGACromosome cromosoma, double prob) {
Boolean res = new Boolea... |
package GA;
import java.util.*;
import GACore.*;
public class GAShuffleSelection extends IGASelector{
public GAAntPathCromosome[] select(IGACromosome[] pop, int pop_size)
throws InstantiationException, IllegalAccessException {
GAAntPathCromosome[] new_pop = new GAAntPathCromos... |
package GA;
import java.util.*;
import GACore.*;
public class GARankingSelection extends IGASelector{
@Override
public IGACromosome[] select(IGACromosome[] pop, int pop_size)
throws InstantiationException, IllegalAccessException {
PriorityQueue<nodoRa... |
package gui;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescripto... |
package GACore;
public abstract class IGAEvalFunctionNum extends IGAEvalFunction {
// extremos del intervalo considerado para los valores del dominio
protected double xmax, xmin, ymax, ymin;
protected int numVars=1;
public int calcCromLenghtGeneric(double precision) {
return (int) Math.ceil((Math.log(1... |
package GACore;
public abstract class IGAGene {
protected Object gen;
public abstract void replace(int pos, IGAGene other);
public abstract Boolean mutate(double prob,int length);
public IGAGene(Object o) {
gen = o;
}
public Object getGen() {
return gen;
}
public void setGen(Object val... |
package GACore;
public abstract class IGASelector<T>{
public abstract IGACromosome<T>[] select (IGACromosome<T>[] pop, int pop_size) throws InstantiationException, IllegalAccessException;
}
|
package GACore;
public abstract class IGACross<T> {
protected IGACromosome<T>[] descendientes;
public abstract IGACromosome<T>[] cross(IGACromosome<T>[] parents);
public abstract IGACromosome<T>[] crossGenerico(IGACromosome<T>[] parents);
}
|
package GACore;
import java.util.Random;
public class IGARandom {
private static Random rand = new Random();
public static void setSeed(long seed) {
rand = new Random(seed);
}
public static boolean getRBoolean() { return rand.nextBoolean();}
public static int getRInt() { return rand.nextInt();... |
package GA;
import GACore.IGAGene;
import GACore.IGARandom;
public class GABinaryGene extends IGAGene{
public GABinaryGene(Boolean[] b){
super(b);
}
@Override
public void replace(int pos, IGAGene other) {
((Boolean[])this.gen)[pos]=((GABinaryGene)other).getBit(pos);
}
public Boolean mut... |
package GA;
import java.lang.reflect.Array;
import GACore.IGACromosome;
import GACore.IGAMonoPointCross;
public class GABinaryMonoPointCross extends IGAMonoPointCross<Boolean>{
public GABinaryMonoPointCross(){
descendientes =(GABinaryCromosome[])Array.newInstance(GABinaryCromosome.class, 2);
}
pub... |
package GA;
import GACore.IGAEvalFunction;
import GACore.IGAEvalFunctionNum;
public class GANumericEvalFuncs {
private static int NUMFUNCTIONS = 5;
private int fun5_N;
public GANumericEvalFuncs(int fun5_N)
{
this.fun5_N = fun5_N;
}
public IGAEvalFunction getEvaluatorFunction(int numFunct) {
... |
package GA;
import java.lang.reflect.Array;
import GACore.IGACromosome;
import GACore.IGAMonoPointCross;
public class GABinaryBiPointCross extends IGAMonoPointCross<Boolean>{
public GABinaryBiPointCross(){
descendientes =(GABinaryCromosome[])Array.newInstance(GABinaryCromosome.class, 2);
}
public ... |
package gui;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescripto... |
package GACore;
public abstract class IGAEvalFunctionNum extends IGAEvalFunction {
// extremos del intervalo considerado para los valores del dominio
protected double xmax, xmin, ymax, ymin;
protected int numVars=1;
public int calcCromLenghtGeneric(double precision) {
return (int) Math.ceil((Math.log(1... |
package GACore;
import java.util.ArrayList;
import java.util.logging.Logger;
import GA.GAStudent;
public abstract class IGAGene {
protected int[] gen;
public abstract Boolean mutate(IGAMutator mutator, double prob);
public abstract double calcBalance(ArrayList<GAStudent> students);
public abstract ... |
package GACore;
import java.util.ArrayList;
import GA.GAStudent;
public abstract class IGACromosome{
protected IGAGene gen; // permutacion de alumnos
protected double unbalance; // desequilibrio
protected double evaluatedValue; // valor de la funcion de evaluacion
protected double score;
p... |
package GACore;
public abstract class IGAMutator {
public abstract Boolean mutate(IGAGene gen, double prob);
}
|
package GACore;
public abstract class IGASelector{
public abstract IGACromosome[] select (IGACromosome[] pop, int pop_size) throws InstantiationException, IllegalAccessException;
}
|
package GACore;
public abstract class IGACross {
public abstract IGACromosome[] cross(IGACromosome[] parents);
public static boolean pertenece (int x,int[] l){
int i=0;
boolean res=false;
while(!res && i<l.length)
if(l[i]!=x)i++;
else res=true;
return res;
}
protected static int g... |
package GACore;
import java.util.Random;
public class IGARandom {
private static Random rand = new Random();
public static void setSeed(long seed) {
rand = new Random(seed);
}
public static boolean getRBoolean() { return rand.nextBoolean();}
public static int getRInt() { return rand.nextInt();... |
package GA;
import java.util.ArrayList;
import GACore.IGACromosome;
import GACore.IGACross;
public class GAStudentOrdinalCrossCremallera extends IGACross{
int longitud;
public IGACromosome[] cross(IGACromosome[] parents) {
GAStudentCromosome parent1 = (GAStudentCromosome) parents[0];
GAStudentC... |
package GA;
import GACore.*;
public class GAMutatorInversion extends IGAMutator{
@Override
public Boolean mutate(IGAGene gen, double prob) {
System.out.print("entraamos a mutar");
Boolean res = new Boolean(false);
//if(IGARandom.getRDouble()<prob){
int[] auxGen = gen.getGen().clone();
int l... |
package GA;
import java.util.ArrayList;
public class GAStudent {
private int id;
private double result;
private ArrayList<Integer> haters;
public GAStudent(int id, double result){
this.id = id;
this.result = result;
this.haters = new ArrayList<Integer>();
}
public double getResult(){
... |
package GA;
import GACore.IGAGene;
import GACore.IGAMutator;
import GACore.IGARandom;
public class GAMutatorInsertion extends IGAMutator{
@Override
public Boolean mutate(IGAGene gen, double prob) {
Boolean res = new Boolean(false);
if(IGARandom.getRDouble()<prob){
int numInserciones = IGARa... |
package GA;
import GACore.IGAGene;
import GACore.IGAMutator;
import GACore.IGARandom;
public class GAMutatorExchange extends IGAMutator {
public Boolean mutate(IGAGene gen, double prob) {
Boolean res = new Boolean(false);
if(IGARandom.getRDouble()<prob){
// Solo con dos numeros aleatorios
int au... |
package GA;
import java.util.ArrayList;
import java.util.Arrays;
import GACore.IGACromosome;
import GA.GAStudentGene;
public class GAStudentCromosome extends IGACromosome implements Cloneable{
public GAStudentCromosome clone() {
GAStudentCromosome clone = new GAStudentCromosome();
GAStudentGene ... |
package GA;
import GACore.IGACromosome;
import GACore.IGACross;
import GACore.IGARandom;
public class GAStudentOrderCross extends IGACross {
@Override
public IGACromosome[] cross(IGACromosome[] parents) {
GAStudentCromosome parent1 = (GAStudentCromosome) parents[0];
GAStudentCromosome parent2 = ... |
package GA;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import GACore.IGAGene;
import GACore.IGAMutator;
import GACore.IGARandom;
public class GAMutator3Heuristic extends IGAMutator{
GAStudentsEngine engine;
ArrayList<GAStudent> students;
public void getExt... |
package GA;
import java.util.ArrayList;
import GACore.IGACromosome;
import GACore.IGACross;
import GACore.IGARandom;
public class GAStudentOrdinalCross extends IGACross{
int longitud;
public IGACromosome[] cross(IGACromosome[] parents) {
GAStudentCromosome parent1 = (GAStudentCromosome) parents[0... |
package GA;
import java.util.Arrays;
import java.util.Collections;
import GACore.IGACromosome;
import GACore.IGARandom;
import GACore.IGASelector;
public class GAShuffleSelection extends IGASelector{
public IGACromosome[] select(IGACromosome[] pop, int pop_size)
throws InstantiationException, Illega... |
package GA;
import java.util.Iterator;
import java.util.PriorityQueue;
import GACore.IGACromosome;
import GACore.IGARandom;
import GACore.IGASelector;
public class GARankingSelection extends IGASelector{
@Override
public IGACromosome[] select(IGACromosome[] pop, int pop_size)
throws InstantiationE... |
class LinkedListNode {
public int data;
public LinkedListNode link;
}
public class JavaApplication1 {
public static void main(String[] args) {
LinkedListNode head, newNode;
LinkedListNode current;
LinkedListNode pointer;
head = new Lin... |
import javax.swing.*;
public class Calculator
{
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 )
{
if ( num % 2 == 1 )
{
... |
import javax.swing.*;
public class Calculator
{
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 )
{
if ( num % 2 == 1 )
{
... |
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 ; coun... |
class LinkedListNode {
public int data;
public LinkedListNode link;
}
public class JavaApplication1 {
public static void main(String[] args) {
LinkedListNode head, newNode;
LinkedListNode current;
LinkedListNode pointer;
head = new Lin... |
package javaapplication1;
class Calculator{
int x;
int y;
int z;
public Calculator(int num1, int num2){
x = num1;
y = num2;
}
public int addNumers(){
return x+y;
return z;
}
public int subtractNumbers(){
z = x-y;
return z;
... |
public class NewClass{
public static void main(String[] args) throws IOException{
try{
int n;
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in));
n = Integer.parseInt(in.readLine());
if (n % 2 == 0)
{
System.out.println("Given number is Even.");
}
else
{
System.out.println("Given num... |
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() {
System.out.println("Printing Elements:... |
import javax.swing.*;
public class User {
public static void main(String[] args){
String num = "";
num = JOptionPane.showInputDialog(
null, " please enter your name: ");
if(num != 0%2){
JOptionPane.showMessageDialog(null,"no name");
}
else{
JOptionPane.showMessageDialog(null,"hell... |
import javax.swing.*;
public class addeven
{
public static void main(Strin g[] args)
{
int number;
number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " ));
if ( number % 2 == 1 )
{
JOptionPane.showMessageDialog( null, "It is an ODD number." );
}
... |
public class main {
public static void main(String[] args){
System.out.print("hello world");
int x;
x = 10;
x-=2;
System.out.print(x);
}
} |
public class user1 {
}
|
import javax.swing.JOptionPane;
public class calculator {
public static void main(String[] args){
String num = "";
String num1 = "";
num = JOptionPane.showInputDialog(
null, "enter 1st value: ");
num1 = JOptionPane.showInputDialog(
null,"enter 2nd value: ");
double d1 = Dou... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory... |
package ticks.util2013;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
/**
* This class is the glue that binds the controls on the physical operator
* interface to the commands and command groups that allow control of the robot.
*/
public class OI {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ticks.util2013.util;
/**
*
* @author Jared
*/
public interface NumberSource {
public double getNumber();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ticks.util2013.util;
/**
*
* @author Jared
*/
public interface Updatable {
public void update();
} |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ticks.util2013.util;
import edu.wpi.first.wpilibj.NamedSendable;
import edu.wpi.first.wpilibj.livewindow.LiveWindowSendable;
import edu.wpi.first.wpilibj.tables.ITable;
import edu.wpi.first.wpilibj.tabl... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ticks.util2013.util;
/**
*
* @author Jared
*/
public class TickPIDGains {
double kP, kI, kD, kF;
public TickPIDGains(double kP, double kI, double kD, double kF) {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ticks.util2013.util;
import java.util.Timer;
import java.util.TimerTask;
import java.util.Vector;
/**
* Class that will periodically call the update method of another class that
* implements Up... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ticks.util2013.util;
/**
*
* @author Jared
*/
public interface NumberOutput {
public void setNumbers(double number);
}
|
package ticks.util2013;
/**
* The RobotMap is a mapping from the ports sensors and actuators are wired into
* to a variable name. This provides flexibility changing wiring, makes checking
* the wiring easier and significantly reduces the number of magic numbers
* floating around.
*/
public class RobotMap ... |
package ticks.util2013.commands;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import ticks.util2013.OI;
import ticks.util2013.subsystems.ExampleSubsystem;
/**
* The base for all commands. All atomic commands should subclass CommandBase.
* Command... |
package ticks.util2013.commands;
/**
*
* @author bradmiller
*/
public class ExampleCommand extends CommandBase {
public ExampleCommand() {
// Use requires() here to declare subsystem dependencies
// eg. requires(chassis);
}
// Called just before this Command runs the fir... |
package ticks.util2013.subsystems;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import ticks.util2013.util.NumberOutput;
import ticks.util2013.util.NumberSource;
import ticks.util2013.util.TickPID;
import ticks.util2013.util.TickPIDGains;
import ... |
package no.hib.android.fibonacci;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
public class FibonacciActivity extends Activity {
public static final... |
package no.hib.android.fibonacci;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;
public class FibonacciService extends Service {
@Override
public void onCreate() {
super.onCreate();
}
@Override
public int onStartCommand(Intent... |
package no.hib.googleMaps;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.drawable.Drawable;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;
public class CustomPinpoint extends ItemizedOverlay<OverlayItem> {
private Arra... |
package no.hib.googleMaps;
import java.util.List;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;
import andro... |
package no.hib.android.activities;
import android.app.Activity;
public class PostActivity extends Activity {
}
|
package no.hib.android.activities;
import java.util.List;
import no.hib.android.adapter.InnleggListAdapter;
import no.hib.android.model.InnleggBean;
import no.hib.android.parser.AndroidSaxFeedParser;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
imp... |
package no.hib.android.activities;
import no.hib.android.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class InnleggActivity extends Activity{
TextView tittel;
TextView bruker;
TextView innhold;
@Override
protected void onCreate(Bundle savedInst... |
package no.hib.android.adapter;
import java.util.List;
import no.hib.android.R;
import no.hib.android.model.InnleggBean;
import android.app.Activity;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
im... |
package no.hib.android.parser;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
public abstract class BaseFeedParser implements FeedParser {
// names of the XML tags
static final String ID = "id";
static final String TITTEL = ... |
package no.hib.android.parser;
import java.util.List;
import no.hib.android.model.InnleggBean;
public interface FeedParser {
List<InnleggBean> parse();
} |
package no.hib.android.parser;
import java.util.ArrayList;
import java.util.List;
import no.hib.android.model.InnleggBean;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import android.util.Log;
import static no.hib.android.parser.BaseFeedPar... |
package no.hib.android.parser;
import java.util.List;
import no.hib.android.model.InnleggBean;
import android.util.Xml;
public class AndroidSaxFeedParser extends BaseFeedParser {
public AndroidSaxFeedParser(String feedUrl) {
super(feedUrl);
}
public List<InnleggBean> parse() {
... |
package no.hib.android.model;
//import javax.xml.bind.annotation.XmlRootElement;
//import javax.xml.bind.annotation.XmlType;
//@XmlRootElement (name = "innlegg")
//@XmlType(propOrder = {"id", "tittel", "innhold", "brukerId", "brukerNavn"})
public class InnleggBean {
String id="-1";
String tittel;
Stri... |
package no.medlemsliste.dao.jdbc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import no.medlemsliste.dao.MedlemDAO;
import tod141.medlemsliste.model.Endringer;
impo... |
package no.medlemsliste.dao.jdbc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
publ... |
package no.medlemsliste.dao;
import tod141.medlemsliste.model.Endringer;
import tod141.medlemsliste.model.Medlem;
import tod141.medlemsliste.utilities.DAOException;
public interface MedlemDAO {
public void nyttMedlem(Medlem medlem) throws DAOException ;
public void endreMedlem(Medlem medlem) throws DAOException;
p... |
package no.medlemsliste.dao;
import tod141.medlemsliste.model.Klient;
import tod141.medlemsliste.utilities.DAOException;
public interface KlientDAO {
public void nyKlient(Klient klient) throws DAOException;
}
|
package org.json;
/**
* The <code>JSONString</code> interface allows a <code>toJSONString()</code>
* method so that a class can change the behavior of
* <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
* and <code>JSONWriter.value(</code>Object<code>)</code>. The
* <code>toJSONString</code... |
package org.json;
import java.io.IOException;
import java.io.Writer;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitat... |
package org.json;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in... |
package org.json;
/**
* The JSONException is thrown by the JSON.org classes then things are amiss.
* @author JSON.org
* @version 2008-09-18
*/
public class JSONException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
private Throwable cause;
/**
* Constructs a J... |
package org.json;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package tod141.medlemsliste.skjemadata;
import tod141.medlemsliste.model.Medlem;
public class NyttMedlem {
private String fornavn;
private String etternavn;
private String adresse;
private String telefon;
private String medlemId;
public void setFornavn(String fornavn) {
this.fornavn = fornavn;
}
public vo... |
package tod141.medlemsliste.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import no.medlemsliste.dao.MedlemDAO;
... |
package tod141.medlemsliste.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import no.medlemsliste.dao.MedlemDAO;
... |
package tod141.medlemsliste.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.catalina.util.Parame... |
package tod141.medlemsliste.controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Map;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http... |
package tod141.medlemsliste.utilities;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import tod141.medlemsliste.model.Endringer;
import tod141.medlemsl... |
package tod141.medlemsliste.utilities;
public class DAOException extends Exception {
private static final long serialVersionUID = 1L;
public DAOException(String s) {
super(s);
}
public DAOException(Exception e) {
super(e);
}
}
|
package tod141.medlemsliste.utilities;
public class RequestException extends Exception {
private static final long serialVersionUID = 1L;
public RequestException(String s) {
super(s);
}
public RequestException(Exception e) {
super(e);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.