text stringlengths 10 2.72M |
|---|
import java.sql.Blob;
import java.util.Date;
/**
Assignment class
@StephenCole19
**/
public class Assignment {
public int assignmentId;
public String assignmentName;
public Blob assignmentFile;
public Date dueDate;
//public Set<AssignmentSubmission> assignmentSubmission;
public int courseOfferingId;
//... |
/**
* Copyright (c) Jason Brophy 2016
*/
package edu.jbrophypdx.idsolitaire;
import android.widget.ImageView;
class Card {
protected int value;
protected int suit;
protected ImageView img;
Card(int value, int suit, ImageView img) {
this.value = value;
this.suit = suit;
this.... |
/**
* Package providing integration of
* <a href="https://hibernate.org/">Hibernate 5.x</a>
* with Spring concepts.
*
* <p>Contains an implementation of Spring's transaction SPI for local Hibernate transactions.
* This package is intentionally rather minimal, with no template classes or the like,
* in order to f... |
package br.com.welson.clinic.security;
import br.com.welson.clinic.annotations.Transactional;
import br.com.welson.clinic.errors.UsernameOrPasswordError;
import br.com.welson.clinic.persistence.dao.DAO;
import br.com.welson.clinic.persistence.model.AccessToken;
import br.com.welson.clinic.persistence.model.Application... |
open module modmain { // allow reflective access, currently used in the example_jerry-mouse
requires commons.lang3;
}
|
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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 applica... |
package com.pd.security.shiro.security;
import org.apache.shiro.mgt.DefaultSecurityManager;
import org.apache.shiro.realm.Realm;
/**
* @author peramdy on 2018/10/23.
*/
public class PdSecurityManager extends DefaultSecurityManager {
@Override
public void setRealm(Realm realm) {
super.setRealm(realm... |
package com.ma.pluginframework.domain;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* 主程序数据
*/
public class HostData implements Parcelable {
/**
* 当前主程序界面使用的QQ
*/
private long activeUin;
/**
* 所有登录的QQ数据
*/
private List<AccountData> account... |
package utils;
/**
* Work with JVM memory (only read).
* Project: importBaseFoxPro
*
* @author Sergey B. (Prof0Soft@gmail.com) on 05.04.2019
*/
public final class MemoryUtils {
/**
* Default constructor.
*/
private MemoryUtils() {
}
/**
* Get description of using memory.
*
... |
package com.example.firstproject.entity;
import lombok.AllArgsConstructor;
import lombok.ToString;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity // DB가 해당 객체를 인식가능하게 한다.
@AllArgsConstructor // 모든 변수에 대한 생성자를 생성... |
package lab01;
public interface GraphInterface {
public void addVertex(Vertex vertex);
public void removeVertex(Vertex vertex);
public void addEdge(Vertex initialVertex, Vertex finalVertex, Edge edge);
public void removeEdge(Edge edge);
public int getVertexCount();
public boolean vertexExists(Vertex ... |
package com.devgabriel.dglearn.repositories;
import com.devgabriel.dglearn.entities.Topic;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface TopicRepository extends JpaRepository<Topic, Long> {
}
|
package com.dokyme.alg4.sorting.merge;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
import static com.dokyme.alg4.sorting.merge.LinkedListNaturalMerge.LinkedList;
/**
* Created by intellij IDEA.But customed by hand of Dokyme.
* 2.2.18
*
* @author dokym
* @date 2018/4/23-17:43
... |
import java.io.*;
import java.util.*;
class baek__12906 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] start = new String[3];
Arrays.fill(start, "");
String[] temp = br.readLine().spl... |
package org.abrahamalarcon.datastream.util;
import java.util.Locale;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;
@Component
public class ErrorCodeMapping
{
@Autowired protected MessageSo... |
package com.sohu.live56.view.main.square;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.TransitionDrawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import... |
package cttd.cryptography.demo;
import org.junit.Test;
import static org.junit.Assert.*;
public class AesTests {
private String plaintext = "Nguyễn Anh Tuấn";
private String ciphertext = "YlBfisYuEUlt/JBGQYWaMa7EKg==";
@Test
public void encryptTest() {
assertEquals(ciphertext, Aes.encrypt(plaintex... |
package com.atguigu.test;
import static org.junit.Assert.*;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.atguigu.entity.User;
import com.atguigu.mvc.UserController;
public class SpringTest {
/*
... |
package com.perfect.web.service.impl;
import com.perfect.core.base.BaseServiceImpl;
import com.perfect.entity.RolePermission;
import com.perfect.entity.mapper.RolePermissionMapper;
import com.perfect.web.service.RolePermissionService;
import org.springframework.stereotype.Service;
/**
* <p>
* 角色权限表 服务实现类
* </p>
*... |
package com.saechimdaeki.chap05;
import org.springframework.data.repository.query.ReactiveQueryByExampleExecutor;
public interface ItemByExampleRepository extends ReactiveQueryByExampleExecutor<Item> {
}
|
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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... |
package com.yma.week_of_code;
import java.util.Scanner;
/**
* Created by Yoshan Amarathunga on 3/13/2017.
*/
public class CandyReplenishingRobot {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int t = in.nextInt();
int[] c = n... |
package de.cuuky.varo.command.essentials;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import de.cuuky.varo.Main;
import de.cuuky.varo.config.messages.ConfigMessages;
import de.cuuky.varo.version.Bukkit... |
package com.example.demo.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.math.BigDecimal;
/**
* ExpensePenson
*
* @author ZhangJP
* @date 2020/10/30
*/
@Data
public class ExpenseVO {
@TableField("user_id")
private String userId;
@TableField("user_name... |
/*
* Copyright (c) 2016 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.translation.form.action;
import org.apache.log4j.Logger;
import pl.edu.icm.unity.exceptions.EngineException;
import pl.edu.icm.unity.server.translation.form.R... |
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Motorcycle motorcycle1 = new Motorcycle("WE23");
Motorcycle motorcycle2 = new Motorcycle("R666");
Car car1 = new Car("T123PH... |
package com.base.demo;
import com.base.demo.enums.City;
import com.base.demo.interfaces.Behavior;
import com.base.demo.interfaces.Dog;
/**
* 接口细节,枚举类
* @author Cherry
* 2020年4月2日
*/
public class DemoF extends Base{
@SuppressWarnings("static-access")
public static void main(String[] args) {
Man n = new Man();
... |
package msip.go.kr.organ.service.impl;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.stereotype.Repository;
import msip.go.kr.common.entity.Tree;
import ms... |
package fileManager;
public class BinaryTree {
Node root;
BinaryTree(String key){
root = new Node(key);
}
BinaryTree(){
root = null;
}
// public Node createnewNode(String key) {
// Node a = new Node();
// a.key = key;
// a.left = null;
// a.right = null;
// return a;
//
// }
//
// public Node in... |
package String_Level1.Programming_Questions;
import java.util.Scanner;
public class P5 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int count=0;
for(int i=0;i<s.length();i++)
{
if(s.charAt(i)>='A' &&... |
package sign.com.biz.role.service.impl;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sign.com.biz.base.service.impl.BaseServiceImpl;
import sign.com.biz.role.dto.ResourceDto;
import sign.com.biz.role.mapper.R... |
/*
* 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 ru.sfedu.booklibhibernate.dao;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.... |
// 2021-08-04
import java.util.*;
// 마이너스 부호가 숫자 앞에 있을 경우 재고려해야함.
// ex ) [ 5 , - , 2 , * , 3 , *, 5]
// [ 5 , - , 6 , *, 5] => (o)
// [ 5 , -6 , *, 5] => (x) - 현재 이렇게 구현되어 있음
class AddParentheses {
// solution
// dfs 로 풀이 시 중복 문제 발생
// 분할정복으로 풀이
public List<Integer> diffWaysToCompu... |
package algorithms.chap1;
import java.util.Iterator;
public class LinkedListQueue<Item> implements Iterable<Item> {
Node first;
Node last;
int size = 0;
public void push(Item item) {
if (last != null) {
Node old = last;
last = new Node();
last.item = item;... |
/**
* Custom JUnit 4 {@code Rules} used in the <em>Spring TestContext Framework</em>.
*/
@NonNullApi
@NonNullFields
package org.springframework.test.context.junit4.rules;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
package cn.okay.page.officialwebsite.secondpage;
import cn.okay.testbase.AbstractPage;
import cn.okay.tools.WaitTool;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
/**
* Created by yutz on 2017/10/17.
* 公司简介页
*/
public class CompanyProfilePa... |
/***********************************************************
* @Description : 测试开闭原则的类
* @author : 梁山广(Laing Shan Guang)
* @date : 2019/3/10 17:58
* @email : liangshanguang2@gmail.com
***********************************************************/
package 第3章_软件设计七大原则.S01_开闭原则OpenClose;
public clas... |
package com.example.ayuth.androidpresentationremoteclient;
import android.net.Uri;
import android.util.Log;
import com.github.nkzawa.socketio.client.IO;
import com.github.nkzawa.socketio.client.Socket;
import org.json.JSONException;
import org.json.JSONObject;
import java.net.URISyntaxException;
public class Remo... |
package creational.factory_method;
public class Test {
public static void main(String[] args){
IProduct product = FactoryMethod.getProductY();
product.doA();
}
}
|
package com.yoga.controller;
import java.io.UnsupportedEncodingException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springf... |
package com.anonymous9495.mashit;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.media.RingtoneManager;
import android.support.v4.app.NotificationCompat;
import android.util.L... |
package com.galaksiya.education.rss.interaction;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import com.galaksiya.education.rss.common.Info;
/**
* show all new... |
package tiles.inner;
import game.Hand;
public abstract class Resource_Port extends Port {
public abstract Hand cost();
}
|
package cn.wq.kgdxkj.service.impl;
import cn.wq.kgdxkj.dao.UserDao;
import cn.wq.kgdxkj.model.User;
import cn.wq.kgdxkj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
im... |
package com.stk123.spring.control;
import com.stk123.model.RequestResult;
import com.stk123.model.Index;
import com.stk123.model.K;
import com.stk123.spring.dto.StkDto;
import com.stk123.spring.service.IndexService;
import com.stk123.spring.service.IndustryService;
import com.stk123.util.ServiceUtils;
import com.stk12... |
package com.example.axonssejavascript.api;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@JsonSerialize(as = PackageRecord.class) public interface PackageRecord {
String getId();
String getType();
String getDescription();
}
|
package headlessTests;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.text.ParseException;
import java.time.DayOfWeek;
import java.util.ArrayList;
import java.util.Arrays;
i... |
package Domain;
import Resources.Product;
import java.sql.SQLException;
public class Controller{
CustomerListInterface customerList = new CustomerList();
ProductList productList = new ProductList();
PackageList packageList = new PackageList();
OrderList orderList = new OrderList();
T... |
package br.com.candleanalyser.engine;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CandleSequence {
private int maxCandles;
private List<Candle> candles;
public CandleSequence(int maxCandles) {
this.maxCandles = maxCandles;
this.candles = new ArrayList... |
package CallCenterDesign;
public enum Rank {
Representative(0),
Senior(1),
Manager(2);
private final int rank;
Rank(final int rank){
this.rank = rank;
}
public int value(){
return rank;
}
}
|
package strategy;
// Strategy
public interface Animal {
public String attack(String target);
}
|
/*
* Copyright 2002-2022 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 com.library.source;
import java.io.File;
import java.nio.file.Paths;
public class ClassSignature {
static String pathlib = Paths.get(".").toAbsolutePath().normalize().toString() + "/librariesClasses/jar";
public static void main(String[] args) {
File folder = new File(pathlib);
File[] listOfFiles = fol... |
package io.jrevolt.sysmon.zabbix;
/**
* @author <a href="mailto:patrikbeno@gmail.com">Patrik Beno</a>
*/
public enum GetMode {
GET,
CREATE,
UPDATE,
;
public boolean isGet() { return equals(GET); }
public boolean isCreate() { return equals(CREATE) || equals(UPDATE); }
public boolean isUpdate() { return equals... |
package com.example.rayhardi.medimind;
import org.json.JSONException;
import org.json.JSONObject;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by rayhardi on 10/15/2017.
*/
public class Medication {
private String Name;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* JFrameHome.java
*
* Created on Oct 30, 2013, 10:26:38 PM
*/
package instance;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import j... |
package items;
import java.util.Map;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
public class Misc extends Item{
public Misc(Map<String, String> itm, Image sprite, int xPos, int yPos) throws SlickException {
super(itm,sprite,xPos,yPos);
}
public void equip(){
// a... |
/*
* 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 psa.sql;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
*
* @a... |
package com.hcl.dctm.data;
import java.util.List;
import java.util.Map;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSysObject;
import com.documentum.fc.common.DfException;
import com.hcl.dctm.data.exceptions.DctmException;
import com.hcl.dctm.data.params.AddNoteParams;
import com.hc... |
/*
* Copyright 2017 Red Hat, Inc.
*
* Red Hat licenses this file to you 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.example.lbyanBack.util;
import java.util.Base64;
import java.util.logging.Logger;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.digest.DigestUtils;
/**
* AES 加密方法,是对称的密码算法(加密与解密的密钥一致),这里使用最大的 256 位的密钥
*/
pu... |
/*
* 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 at.ac.tuwien.dsg.grphStorage;
//import at.ac.tuwien.dsg.dataenrichment.Configuration;
//import at.ac.tuwien.dsg.app.graphstora... |
package com.rupom.city;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;
import android.view.animation.TranslateAnimation;
import android... |
package com.model;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax... |
package enshud.typeexpression;
import java.util.ArrayList;
import enshud.syntaxtree.AbstractSyntaxNode;
import enshud.syntaxtree.TerminalNode;
public class ProcedureType extends AbstractType {
public class ProcedureArgument {
public String name;
public AbstractType type;
public ProcedureArgument(String name... |
package org.andrill.conop.analysis.legacy;
import java.util.List;
import java.util.Map;
public interface Solution {
/**
* Get all events.
*
* @return the list of events.
*/
public List<Map<String, String>> getEvents();
/**
* Gets the name of this dataset.
*
* @return the name.
*/
public String... |
package io.nuls.consensus.v1.thread;
import io.nuls.base.basic.AddressTool;
import io.nuls.base.data.NulsHash;
import io.nuls.base.signture.BlockSignature;
import io.nuls.core.core.ioc.SpringLiteContext;
import io.nuls.core.model.DoubleUtils;
import io.nuls.consensus.constant.ConsensusConstant;
import io.nuls.consensu... |
public class HeavyBox {
private double width;
private double height;
private double depth;
private String color;
private double weight;
private String name;
public HeavyBox(String name, double width, double height, double depth, String color, double weight) {
this.name = name;
... |
package com.junkStash.util;
import java.io.File;
import java.io.InputStream;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
public class FileUtil {
public static boolean saveLocal(String fileName, InputStream fileStream, String localDir){
try{
File uploadFile = new ... |
package br.com.maricamed.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataIntegrityViolationException;
import org.spring... |
package com.legaoyi.protocol.server;
import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.spri... |
/*
* 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 jc.fog.data.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQL... |
package pe.cibertec.excepciones;
public class ExcepcionGeneral extends RuntimeException{
public ExcepcionGeneral(){
this("Ha ocurrido una excepcion");
}
public ExcepcionGeneral(String mensaje){
super(mensaje);
}
}
|
package com.yhkx.core.errorcode;
/**
* @Author: uniqu
* @Date: 2018-9-18 15:33
* @Description:
*/
public interface ErrorCode {
int getNumber();
//ErrorLevel getErrorLevel();
}
|
package com.proyecto.dom;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import j... |
package com.example.rubberyuzu.yugamiapp;
/**
* Created by reoy on 15/12/05.
*/
public class TimerTest {
} |
/*
* Copyright (C) 2014 Vasilis Vryniotis <bbriniotis at datumbox.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
package com.cninnovatel.ev.utils;
import java.util.TimeZone;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import an... |
package com.li.current;
import java.util.concurrent.TimeUnit;
public class ThreadMain {
public static void main(String[] args) throws InterruptedException {
MyThreadPool pool = new MyThreadPool(4, 20, 2L, TimeUnit.SECONDS);
for (int i = 0; i < 10000; i++) {
Task task = new Task(Integer.toString(i));
pool... |
import java.util.ArrayList;
/**
* Created by mohammad on 5/19/17.
*/
public class DuplicateCourseChecker extends StudentPolicyChecker {
@Override
public boolean satisfy(Barnameh barnameh, StudentState studentState, History history) {
ArrayList<Course> passedCourse = history.getPassedCourses();
... |
/**
* This code find the median in two sorted arrays
* Reference:
* 1. https://github.com/mission-peace/interview/blob/master/src/com/interview/binarysearch/MedianOfTwoSortedArrayOfDifferentLength.java
* Time complexity is O(log(min(x,y))
* Space complexity is O(1)
*/
public class MedianSortedArray {
//func... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* 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 require... |
package com.test;
import com.test.base.Solution;
import com.test.base.TreeNode;
/**
* 普通 递归,没啥好说的
* @author YLine
*
* 2019年5月5日 下午7:12:04
*/
public class SolutionA implements Solution
{
private int mTotal;
@Override
public int sumRootToLeaf(TreeNode root)
{
mTotal = 0;
dfs(ro... |
package be.odisee.pajotter.service;
import be.odisee.pajotter.utilities.RolNotFoundException;
import be.odisee.pajotter.domain.*;
import java.util.List;
public interface PajottersSessieService {
//Partijen
public Partij voegPartijToe(String voornaam, String familienaam, String emailadres, String... |
package pl.globallogic.qaa_academy.oop;
public class GearBox {
private String name;
}
|
package view;
import controller.ControllerClientes;
import controller.ControllerProdutos;
import controller.ControllerProdutosVendasProdutos;
import controller.ControllerSection;
import controller.ControllerUsuarios;
import controller.ControllerVendas;
import controller.ControllerVendasClientes;
import controller.Cont... |
package mysql;
import java.sql.*;
import java.io.*;
public class program {
public static void main(String[] args) {
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/email","root","root");
System.out.print("Connected");
String q="i... |
package com.gsccs.sme.plat.auth.service;
import java.util.List;
import com.gsccs.sme.plat.auth.model.MsgT;
/**
*
* @author x.d zhang
*
*/
public interface MsgService {
public void createMsg(MsgT param);
public void updateMsg(MsgT param);
public void deleteMsg(String appId);
public MsgT findById(String a... |
package com.cakemake.dao;
import com.cakemake.model.Orders;
import org.springframework.data.repository.CrudRepository;
public interface OrdersRepository extends CrudRepository<Orders,Long> {
}
|
package com.uit.huydaoduc.hieu.chi.hhapp.Main.Driver.v2;
import android.net.Uri;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.uit.huydaoduc.hieu.chi.hhapp.Main.Driver.v2.RouteRequestManagerFragment;
import com.uit.huydaoduc.hieu.chi.hh... |
package com.worldtech.appupdateversion;
import androidx.appcompat.app.AppCompatActivity;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.Toast;
impor... |
package com.ramirez.tarealabo7.Activitys;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.ramirez.tarealabo7.Activitys.ModificarActivity;
import com.ramirez.tarealabo7.R;
public class NotasAct... |
package com.design.creational.singleton;
import java.io.Serializable;
public class SerializedSingleton implements Serializable {
/**
*
*/
private static final long serialVersionUID = -7601485207540493334L;
protected Object readResolve() {
return getInstance();
}
private SerializedSinglet... |
package com.zjf.myself.codebase.activity.ExerciseLibrary;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.amap.api.location.AMapLocationClientOption... |
package com.company;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Map<String, List>mapPersona = new HashMap<>();
}
}
class Persona {
p... |
package com.esum.wp.ims.sftpinfo.struts.action;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
impo... |
package com.nt.service;
import com.nt.bo.UserDetails;
import com.nt.dao.AuthenticateDAO;
public class Authentication_manager {
private ThreadLocal<UserDetails> th = new ThreadLocal<UserDetails>();
private AuthenticateDAO adao;
public void setAdao(AuthenticateDAO adao) {
this.adao = adao;
}
p... |
package com.esum.framework.core.component.listener;
import java.io.IOException;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.... |
package net.gdsspt.app.ui.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import net.gdsspt.app.R;
import net.gdsspt.app.SongShanApp;
/**
* Created by LittleHans on 2016/8/2.
*/
public class SplashActivity extends AppCompatActivity {
... |
package org.mytvstream.converter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ConverterFactory {
/**
* Logger definition
*/
private static final Logger l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.