text
stringlengths
10
2.72M
package com.trump.auction.goods.service.impl; import com.alibaba.fastjson.JSON; import com.cf.common.util.mapping.BeanMapper; import com.cf.common.utils.JsonResult; import com.trump.auction.goods.dao.ProductInfoDao; import com.trump.auction.goods.dao.ProductInventoryLogDao; import com.trump.auction.goods.dao.ProductMa...
package co.sblock.machines.type; import java.util.ArrayList; import java.util.UUID; import co.sblock.Sblock; import co.sblock.captcha.Captcha; import co.sblock.machines.MachineInventoryTracker; import co.sblock.machines.Machines; import co.sblock.machines.utilities.Direction; import co.sblock.machines.utilities.Shape...
/** * @author DengYouming * @since 2016-8-16 下午6:30:02 */ package org.hpin.webservice.service; import java.io.File; import java.util.Calendar; import java.util.Date; import java.util.List; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.hpin.webservice.bean.*; import org.hpin...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package poo.estacionamiento; import java.math.BigDecimal; import java.util.Date; /** * * @author Candelaria */ public class Tarifa...
package br.com.mixfiscal.prodspedxnfe.dao.questor; import br.com.mixfiscal.prodspedxnfe.dao.util.QuestorHibernateUtil; import br.com.mixfiscal.prodspedxnfe.domain.questor.FatorConversaoUnidade; import java.math.BigDecimal; import java.util.List; import org.junit.Test; import static org.junit.Assert.*; public class Fa...
package com.example.sieunhan.github_client.core.commit; import android.accounts.Account; import android.content.Context; import android.util.Log; import com.github.mobile.accounts.AuthenticatedUserTask; import com.github.mobile.util.HtmlUtils; import com.github.mobile.util.HttpImageGetter; import com.google.inject.I...
package reseau.couches; import reseau.Message; import reseau.adresses.Adresse; /** * @author martine */ public class UDP extends Transport4 { public UDP() { super(); } @Override protected Message getEntete(int portSource, Adresse adrDest, int portDest, Message message) { Messa...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package bin2dec; import java.util.Scanner; /** * * @author emwhfm */ public class Bin2Dec { /** * @param args the comma...
package com.thonline.business.logic; import java.math.BigDecimal; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.SQLException; import java.sql.Timestamp; import java.util.Arrays; import java.util.Calendar; import java.util.EnumSet; import javax.sql.DataSource; import org.apache.commons...
package algorithm; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class School { public static void main(String[] args) { School school = new School(); // 학생들 저장 List<Student> studentList = school.getStudentList(); List<Student> registStudentList = new ArrayLis...
package gameData.fireAlgorithms; import gameData.Boards.BoardAbstract; import gameData.Boards.Coordinates; import gameData.enums.TileState; import java.util.concurrent.ThreadLocalRandom; /** * Created by corentinl on 2/14/16. */ public class FireAlgorithmRandom extends FireAlgorithmAbstract { public FireAlgori...
package controllers; import models.Line; import models.Ticket; import play.libs.Json; import play.mvc.Controller; import play.mvc.Result; import java.util.*; import java.util.stream.Collectors; /** * This controller contains a set of actions to handle HTTP requests * to the application's lottery tickets. */ publi...
package com.example.kyle.myapplication.Database.Role; import com.example.kyle.myapplication.Database.Abstract.Abstract_Table; /** * Created by Kyle on 1/31/2016. */ public class Tbl_Role extends Abstract_Table { public long roleID = -1; public String title = ""; public Tbl_Role() { } publi...
package com.receiptify.data.Entities; import androidx.lifecycle.LiveData; import androidx.room.Dao; import androidx.room.Delete; import androidx.room.Insert; import androidx.room.OnConflictStrategy; import androidx.room.Query; import java.util.List; @Dao public interface CompaniesDao { @Query("SELECT * from co...
package com.lynch.search.twothreetree; import java.util.ArrayList; import java.util.Collections; /** * Created by lynch on 2018/10/6. <br> **/ public class TwoThreeTree { private Node root; //root of the tree /** * create an empty root */ public TwoThreeTree() { root = new Node(); ...
package org.ufla.tsrefactoring.refactoring; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import org.ufla.tsrefactoring.dto.ResultTestSmellDTO; import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.CompilationUnit; import c...
class NumMatrix { int[][] dp; public NumMatrix(int[][] matrix) { dp = new int[matrix.length+1][matrix[0].length+1]; for(int i =0; i<matrix.length;i++){ for(int j=0;j<matrix[0].length;j++){ dp[i+1][j+1] = dp[i][j+1] + dp[i+1][j]+matrix[i][j]-dp[i][j]; } ...
package com.logicbig.example.injectingcollection.collection.jconfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.*; import java.uti...
package com.busekylin.springboottest.repository; import com.busekylin.springboottest.domain.Web; public interface WebRepository { void addWeb(Web web); Web getWeb(); }
package com.social.server.http; import com.social.server.dto.UserDto; import com.social.server.util.JsonUtil; import com.social.server.util.TokenUtil; import lombok.Data; import org.springframework.validation.ObjectError; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; @Data ...
package com.haku.light.scene.comp; import com.haku.jlm.matrix.Mat4f; import com.haku.lecs.component.Component; public class TransformComp extends Component { public final Mat4f model = new Mat4f(); }
package bank.accounts; import bank.customers.Customer; import bank.movements.Transfer; /** * * @author Castro */ public class TermAccount extends Account implements Transfer { /** * ammount deposited to allow the term account to be created */ private double termDeposit; /** ...
import java.util.ArrayList; import java.util.Comparator; /** * Kenny Akers * Mr. Paige * Homework #26 * 5/30/18 */ public class Population { private ArrayList<Route> routes = new ArrayList<>(GeneticAlgo.POPULATION_SIZE); public Population(int populationSize, GeneticAlgo algo) { for (int i = 0...
package no.ntnu.stud.ubilearn.fragments.practise; import no.ntnu.stud.ubilearn.R; import no.ntnu.stud.ubilearn.db.PractiseDAO; import no.ntnu.stud.ubilearn.models.BalanceSPPB; import no.ntnu.stud.ubilearn.models.Patient; import no.ntnu.stud.ubilearn.models.StandUpSPPB; import android.annotation.SuppressLint; import an...
public class Apotek { public String nama; public String alamat; public String[] obat; public int[] harga; public Apotek(String nama, String alamat) { this.nama = nama; this.alamat = alamat; } public Apotek(String[] obat, int[] harga) { this.obat = obat; th...
package com.internousdev.ecsite.action; import java.util.Map; import org.apache.struts2.interceptor.SessionAware; import com.internousdev.ecsite.dao.ItemCreateCompleteDAO; import com.opensymphony.xwork2.ActionSupport; public class ItemCreateCompleteAction extends ActionSupport implements SessionAware{ priv...
package org.sinhro.ForeignLanguageCourses; import org.sinhro.ForeignLanguageCourses.domain.Request; import org.sinhro.ForeignLanguageCourses.repository.RequestRepository; import org.sinhro.ForeignLanguageCourses.service.ListenerService; import org.sinhro.ForeignLanguageCourses.service.NewRequestsGeneratorService; impo...
package net.sf.throughglass; import android.app.Application; import net.sf.throughglass.utils.AndroidLogWritterImpl; import net.sf.throughglass.utils.ApplicationContext; import ye2libs.utils.Log; /** * Created by guang_hik on 14-7-31. */ public class TApplication extends Application { @Override public void onCre...
package com.citibank.ods.modules.product.broker.action; import com.citibank.ods.common.action.BaseODSDetailAction; import com.citibank.ods.common.functionality.BaseFnc; import com.citibank.ods.common.functionality.valueobject.BaseFncVO; import com.citibank.ods.modules.product.broker.functionality.BrokerDetailFnc;...
import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.Queue; import java.util.stream.Collectors; /** * @author Brennan Ward * * The escape pods problem states that given a set of entrances and exits, and the path, we need to find the max throughpu...
package fj.swsk.cn.eqapp.util; import android.content.Context; import android.os.Environment; import android.text.TextUtils; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class FileUtils { public static boolean i...
package com.soa.repository.def; import com.soa.domain.hero.Hero; import java.util.Comparator; public abstract class HeroRepository<H extends Hero> extends AbstractRepository<H> { protected HeroRepository(Class<H> type) { super(type); } public abstract H findReachest(); public H findStronge...
package cn.com.signheart.common.reflation; import java.sql.Timestamp; import java.util.*; public class ClassTypeUtil { public static final int INTEGER = 0; public static final int FLOAT = 1; public static final int DOUBLE = 2; public static final int BIGDECIMAL = 3; public static final int BOOLEA...
package com.lviv.football.constants; /** * Created by rudnitskih on 4/14/17. */ public interface Columns { String code = "code"; String from = "from"; String to = "to"; String eventTime = "eventTime"; String stadion = "stadion"; String startTime = "startTime"; String validationIssues = "v...
package com.github.gaoyangthu.esanalysis.ebusi.impl; import java.util.Date; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.github.gaoyangthu.esanalysis.ebusi.AccountAnalyser; import com.github.gaoyangthu.esanalysis.ebusi.bean.Ac...
package com.kj_project.whereareyou.utils; public interface NumDialogListener { public void onPositiveClick(String number); public void onNegativeClick(); }
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org) package org.xbill.DNS; import java.io.IOException; /** * Next SECure name - this record contains the following name in an ordered list of names in the * zone, and a set of types for which records exist for thi...
package practico15_bdd.steps; import cucumber.api.java.en.And; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; public class LinkedinSteps { @Given("^estoy en la pagina de linkedin$") public void estoy_en_la_pagina_de_linkedin() throws Throwable { // Write...
//Lonnie Williams //Jump Training import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; public class arraySwap { public static final <T> void swap (T[] a, int i, int j) { T t = a[i]; a[i] = a[j]; a[j] = t; } public static final <T> void swap (List<T> l, int ...
package etl; /** * Klasa sluzaa do zarzadzanie przebiegiem procesu ETL */ public class ETLManager { /** * ID produktu */ private String productId; /** * Parsuje i przechowuje informacje o produkcie oraz opinie */ private Product product; /** * Pobiera strony HTTP z informacj...
package com.hackathon.lib; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; import org.springframework.web.client.HttpServerErrorException; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Crypto {...
package com.example.administrator.panda_channel_app.MVP_Framework.module.home.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.Linea...
package by.orion.onlinertasks.data.datasource.sections.remote; import android.support.annotation.NonNull; import javax.inject.Inject; import by.orion.onlinertasks.common.network.services.BaseService; import by.orion.onlinertasks.data.datasource.sections.SectionsDataSource; import by.orion.onlinertasks.data.models.se...
import java.util.Iterator; import java.util.List; public class TreeIterator<T> implements Iterator<Node<T>> { private List<Node<T>> tree; private int size; private int current; public TreeIterator(List<Node<T>> tree) { this.tree = tree; this.size = tree.size(); } @Override ...
/** * 香港理工大学-中国科学院研究生院数据挖掘-PageRank算法实现 * @author chaoyu * @right Copyright by PolyU team * @github https://github.com/yuchao86/pagerank.git * @date 2012-10-18 */ package polyu.gucas.rawPagerank.robot; /* * Tutorial 04: "Web Robots" * compile and run with LinkExtractor together with your own code. *...
package yinq.situation.dataModel; /** * Created by YinQ on 2018/11/29. */ public class MealSituationDetModel extends SituationDetModel { private int code; private int speed; private int amount; private int feed; private float score; public MealSituationDetModel(){ } public int ge...
/* Copyright (C) 2013-2014, Securifera, Inc All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
/* * Copyright (c) 2013-2014, Neuro4j.org * * 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 applicab...
package com.energytrade.app.model; import java.io.Serializable; import javax.persistence.*; import java.util.Date; /** * The persistent class for the all_dr_notifications database table. * */ @Entity @Table(name="all_dr_notifications") @NamedQuery(name="AllDrNotification.findAll", query="SELECT a FROM AllDrNotif...
package org.ohdsi.webapi.vocabulary; import java.util.Collection; import java.util.Objects; import org.ohdsi.circe.vocabulary.Concept; import org.ohdsi.webapi.service.VocabularyService; import org.ohdsi.webapi.util.PreparedStatementRenderer; import org.springframework.beans.factory.annotation.Autowired; import org.spr...
package kr.co.wisenut.login.controller; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import kr.co.wisenut.login.model.User; import kr.co.wisenut.login.service.LoginService; import kr.co.wisenut.util.StringUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory...
package com.state.light; /** * Created by Valentine on 2018/5/10. */ public class DarkState implements LightState{ @Override public void switchs(LightManager lightManager) { System.out.println("亮灯"); lightManager.state = new BrightState(); } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package graphicspackage; /** * * @author Zbynda */ public class GraphicsConstants { public final int ELEMENT_SIZE = 15; public final int LINE_WIDTH = 1; public final int AGENT_SIZE = 13; public fina...
package com.gsccs.sme.plat.auth.dao; import java.util.List; import org.apache.ibatis.annotations.Param; import com.gsccs.sme.plat.auth.model.Sms; import com.gsccs.sme.plat.auth.model.SmsExample; public interface SmsMapper { int countByExample(SmsExample example); int deleteByExample(SmsExample example); int d...
package com.cif.accumulate.server.service; /** * @Author: liuxincai * @Description: a baseService * @Date: 2019/5/24 18:24 */ public interface BaseService { }
/* * Copyright © 2018 www.noark.xyz All Rights Reserved. * * 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 ! * 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件: * * http://www.noark.xyz/LICENSE * * 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播; * 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本; * 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保...
/* $Id$ */ package djudge.judge.dchecker; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.log4j.Logger; import utils.FileTools; import djudge.common.JudgeDirs; import djudge.judge.ProblemDescription; import djudge.judge.checker.CheckerResult; ...
package exercises.chapter4.ex5; import static net.mindview.util.Print.print; import static net.mindview.util.Print.printnb; /** * @author Volodymyr Portianko * @date.created 04.03.2016 */ public class Exercise5 { static final int i1 = 0x45; static final int i2 = 0xFE; public static void main(String[] ...
package com.zensar.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.zensar.entity.ProductCategory; @Repository public interface ProductCategoryRepo extends JpaRepository<ProductCategory, Integer>{ ProductCategory findByCategory...
// ********************************************************** // 1. 제 목: // 2. 프로그램명: CommunityMsPrBean.java // 3. 개 요: // 4. 환 경: JDK 1.3 // 5. 버 젼: 0.1 // 6. 작 성: Administrator 2003-08-29 // 7. 수 정: // // ********************************************************** package com.ziaan.comm...
/*  * Copyright 2012 Brayden (headdetect) Lopez * * Dual-licensed under the Educational Community License, Version 2.0 and * the GNU General Public License Version 3 (the "Licenses"); you may * not use this file except in compliance with the Licenses. You may * obtain a copy of the Licenses at * * h...
/* * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.webui.common.attributes; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import pl.edu.icm.unity.server...
/* * Copyright 2002-2023 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package YouDoIt; import javax.swing.JOptionPane; public class Eggs { public static void main(String[] args) { // TODO Auto-generated method stub int egg, eggdozen, leftover; double eggP; double totalP; double onedozeneggs; eggP = .45; onedozeneggs = 3.25; Stri...
package org.foodobjects.bikerbuddy; import android.content.Context; import android.os.Handler; import android.view.KeyEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; public class GraphView extends SurfaceView implements SurfaceHolder.Callback { private PaintingThread thread = null...
package com.cs.casino; import com.cs.casino.security.CasinoCookieContent; import com.cs.casino.security.LoginAttemptsRecordingAuthenticationProvider; import com.cs.casino.security.PersistedSessionRegistryImpl; import com.cs.casino.security.PlayerLogonService; import com.cs.player.PlayerService; import com.cs.rest.Rest...
package ca.mcgill.ecse223.kingdomino.controller; import ca.mcgill.ecse223.kingdomino.KingdominoApplication; import ca.mcgill.ecse223.kingdomino.model.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; /*** * *Controller Class that contains query methods for game attributes *@author Cecili...
package com.kwik.repositories.client.dao; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.Query; import br.com.caelum.vraptor.ioc.Component; import com.kwik.models.Address; import com.kwik.repositories.client.AddressRespository; @Component public class Ad...
package behavioral.command; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import static org.junit.Assert.*; /** * @author Renat Kaitmazov */ @RunWith(JUnit4.class) public final class CommandTest { @Test public final void commandTest() throws Exception { ...
package HomeWork4; public class Warrior { private String name; private int age; private int health; private int damage; public Warrior(String name, int age, int health, int damage) { this.name = name; this.age = age; this.health = health; this.damage = damage; ...
package org.xitikit.examples.java.mysql.logwatch.files; /** * Indicates there was a problem specific to parsing the "access.log" * and saving the entries in a database. */ public class AccessLogException extends IllegalArgumentException{ public AccessLogException(final String message){ super(message);...
package com.detroitlabs.comicview.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import org.springframework.stereotype.Component; @JsonIgnoreProperties(ignoreUnknown = true) @Component public class Results { private String aliases; p...
/** * @author TATTYPLAY * @date May 22, 2018 * @created 12:47:20 AM * @filename ManagerInventory.java * @project Reporter * @package com.tattyhost.reporter.Manager * @copyright 2018 */ package com.tattyhost.reporter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.bukki...
package br.com.guisfco.onlineshopping.controller; import br.com.guisfco.onlineshopping.domain.ProductRequest; import br.com.guisfco.onlineshopping.entity.Product; import br.com.guisfco.onlineshopping.service.product.DeleteProductService; import br.com.guisfco.onlineshopping.service.product.FindAllProductsService; impo...
package com.sun.tools.xjc.reader.xmlschema; import com.sun.tools.xjc.model.CClassInfo; import com.sun.tools.xjc.model.CPropertyInfo; import com.sun.tools.xjc.reader.Ring; import com.sun.tools.xjc.reader.xmlschema.bindinfo.BIProperty; import com.sun.xml.xsom.XSAnnotation; import com.sun.xml.xsom.XSComponent; import com...
package negocio.apresentacao; import java.util.Date; import negocio.basica.Chamado; import negocio.basica.Computador; import negocio.basica.Funcionario; import negocio.basica.Orcamento; import negocio.basica.Tipochamado; import negocio.controlador.ControladorChamado; public class ApresentacaoChamado { ...
package FirstProject.Playground; public class B extends A{ private int num1; private int num2; // Extends from abstract class // Do I override the method or just define it here? // Can abstract classes have instance variables? // Can they be initiated and accessed in child class? public int sumOfTwo(){ int res...
package com.bupc.bupc_quiz; import com.bupc.bupc_quiz.data.models.Question; import java.util.ArrayList; import java.util.List; public class DataHolder { private List<Question> mQuestions = new ArrayList<>(); private static final DataHolder mInstance = new DataHolder(); public static synch...
package com.karya.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="lead001mb") public class Lead001...
package com.transport.bo.impl; import java.util.Map; import com.transport.bo.InspectionBo; import com.transport.dao.InspectionDao; /** * * @author edwarddavid * @since 21Mar2020 */ public class InspectionBoImpl implements InspectionBo { private InspectionDao dao; public InspectionDao getInspectionDao() { ...
package edu.uw.cwds.predictionservice.linearregression; import javax.xml.bind.annotation.*; @XmlRootElement(name="rangeParameter") @XmlAccessorType(XmlAccessType.FIELD) public class RangeRegressionParameter implements RegressionParameter { @XmlElement(name="range") private Range[] ranges; @XmlAttribute(name="de...
package com.revature.ers.models; import java.sql.Timestamp; import com.fasterxml.jackson.annotation.JsonIgnore; public class Reimbursement { // @JsonIgnore // must be on; as in @JsonIgnore must NOT be commented out; ERROR: Can not deserialize instance of int out of START_OBJECT token private int reimbId; pr...
/* * Copyright 2002-2023 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package codesquad.service; import codesquad.domain.User; import codesquad.domain.UserRepository; import codesquad.dto.LoginDTO; import codesquad.exception.UserVerificationException; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock;...
/** * Sencha GXT 3.0.1 - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.explorer.client.chart; import java.util.Date; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; impor...
package tj.teacherjournal; import android.content.ContentValues; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.design.widget.Snackbar; import android.support.v4.widget.NestedScrollView; import android.support.v7.app.AppCompatActivit...
// // AuthServer.java // // Written by : Priyank Patel <pkpatel@cs.stanford.edu> // package Chat; // AWT/Swing import java.awt.*; import java.awt.event.*; import javax.swing.*; public class AuthServer { // Failure codes public static final int SUCCESS = 0; public static final int KEYSTORE_FILE_NO...
/* ECE 5510 Final Project * Authors : Ekta Bindlish, Dave Kindel * File Description : Shared Counter Incremented by the CS for NUMA Locks */ package NUMA; public class SharedCounter { private int value; public SharedCounter(){ value = 0; } public int getAndIncrement(){ int temp = value; value = temp...
package model; public class StuCourse { private String courseName; private String teacher; private String courseTime; private String courseNO; private String credit; public String getCourseName() { return courseName; } public void setCourseName(String courseName) { this.courseName = courseName; } public ...
package com.qfjy.project.meeting.bean; import lombok.Data; @Data public class Role { private Integer id; private String rname; private String remark; private Integer sortNum; private Integer status; }
package com.techboon.web.rest; import com.techboon.TechboonApp; import com.techboon.domain.Organization; import com.techboon.repository.OrganizationRepository; import com.techboon.service.OrganizationService; import com.techboon.web.rest.errors.ExceptionTranslator; import com.techboon.service.dto.OrganizationCriteria...
package com.example.selfhelpcity.bean; import lombok.AllArgsConstructor; import lombok.Data; /** * @author ljy */ @Data @AllArgsConstructor public class ChatBean { private int id; private int imageId; private String userName; private String chatContent; private String chatTime; ...
import edu.princeton.cs.algs4.Bag; import edu.princeton.cs.algs4.SET; public class BoggleSolver { private final BoggleDict dict; public BoggleSolver(String[] dictionary) { // assume each word in dictionary contains only uppercase letters A through Z this.dict = new BoggleDict(dictionar...
package com.nisira.core.util; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.text.Html; import android.v...
package com.zksyp.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Created with Android Studio. * User:kaishen * Date:2017/5/23 * Time:上午10:02 * Desc: */ @Target(ElementType.FIELD) @...
/* * Copyright 2002-2019 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package br.com.filemanager.ejb.dao; import java.sql.SQLException; import java.util.HashMap; import java.util.Map; import javax.ejb.Stateless; import javax.persistence.PersistenceException; import br.com.filemanager.ejb.model.Usuario; @Stateless public class UsuarioDAO extends GenericDAO<Usuario> { public UsuarioD...
import java.io.*; import java.util.*; public class Time { int hh,mm; int timeInMinutes = 0; public Time(){ hh=0; mm=0; } void readTime() throws IOException{ Calendar cal = new GregorianCalendar(); BufferedReader br = new BufferedReader(new InputStreamReader(System...
package models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.HashMap; public class GistsDto { @AllArgsConstructor @NoArgsConstructor @Data @JsonIgnoreProperties(ignoreUnknown = true) public ...
/** * Nathan West * CSMC 255 * Project 4 – Reaction Analysis * * This program displays a menu and * prompts the user to choose one of the various options. * Once the user chooses, the program will compare user input * to the movieReviews.txt file. */ import java.util.*; import java.io.*; public class Reactio...