text stringlengths 10 2.72M |
|---|
package com.springapp.mvc.core.database;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.DetachedCriteria;
import java.io.Serializable;
import java.util.List;
/**
* Created by max.lu on 2015/10/19.
*/
public ... |
package com.yashas003.newstoday.Utils;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
impo... |
package com.cinema.biz.model.base;
import java.util.Date;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name="sim_duty_reg")
public class TSimDutyReg {
@Id
private String dutyRegId;
private String dutyTaskId;
private String dutyContent;
private String faultReg;
private ... |
package com.arthur.bishi.wangyi0821;
import java.util.Scanner;
/**
* @description:
* @author: arthurji
* @date: 2021/8/21 14:32
* @modifiedBy:
* @version: 1.0
*/
public class No1 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] s = scanner.nextLin... |
package com.yunsi.oop.test;
import java.util.Scanner;
import com.yunsi.oop.bean.sub.Student;
import com.yunsi.oop.bean.sub.Teacher;
import com.yunsi.oop.service.Hr;
public class Test {
static int iid = -1;
static Scanner scanner = new Scanner(System.in);
static Hr hr = new Hr();
public static void main(String[... |
/**
*
*/
package com.hotel.booking;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.hotel.dto.BaseDTO;
import com.hotel.master.customer.CustomerDTO;
import com.hotel.rooms.RoomsDTO;
/**
* @author User
*
*/
public class BookingDTO extends BaseDTO {
private Integ... |
package ru.yandex.yamblz.ui.recyclerstuff;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import ru.yandex.yamblz.R;
/**
* Created by dalexiv on 8/6... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webadmin.identities;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import... |
package com.gsccs.sme.freemark.tag;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import com.gsccs.sme.api.domain.DeclareTopic;
import ... |
package io.electrum.sdk.masking2;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Use this annotation to mark fields in a bean property class that should be masked when traced.
* <p>
* For example:
*
* <pre>
* public class MyMessage {
* @Masked(MaskPan.class)
... |
package miniProgram;
import java.util.Random;
import java.util.Scanner;
import miniProgram.omok.Board;
import miniProgram.omok.GraphicOmock;
import miniProgram.omok.Stone;
import miniProgram.omok.Exception.InvalidSpace;
import miniProgram.omok.Exception.SelectedSpace;
public class RunOmok {
public static void mai... |
package cn.tedu.test;
public class TestDay01 {
/**
* 1:输出字符串"HelloWorld"的字符串长度
* 2:输出"HelloWorld"中"o"的位置
* 3:输出"HelloWorld"中从下标5出开始第一次出现"o"的位置
* 4:截取"HelloWorld"中的"Hello"并输出
* 5:截取"HelloWorld"中的"World"并输出
* 6:将字符串" Hello "中两边的空白去除后输出
* 7:输出"HelloWorld"中第6个字符"W"
* 8:输出"HelloWorld"是否是以"h"开头和"ld"结尾的。
* 9:将"He... |
package login;
import varTypes.Dueno;
public class Sesion {
protected Dueno p;
private Sesion() {
}
private static Sesion instance;
public static Sesion getInstance() {
if (instance == null)
instance = new Sesion();
return instance;
}
public void setUsuario(Dueno p) {
this.p = p;
}
public D... |
package org.notice.beans;
import java.io.Serializable;
public class Skill implements Serializable
{
private static final long serialVersionUID = 1L;
private int skillID = 0;
private String skillName = null;
public Skill()
{
}
public Skill(int skillID, String skillName)
{
super();
... |
package by.bytechs.xfs.deviceStatus.idcStatus;
import at.o2xfs.xfs.idc.RetainBin;
import by.bytechs.xml.entity.deviceStatus.ComponentXml;
/**
* @author Romanovich Andrei
*/
public enum IDCRetainBinStatus {
BINOK(1, "Хранилище задержанных карт в работоспособном состоянии"),
NOTSUPP(2, "Хранилище задержанных... |
package ru.job4j.control;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.spr... |
package ua.cn.stu.cs.oop.lab;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Scanner;
public class Array {
public static void main(String[] args){
//Вводимо довжину масиву
Scanner scan = new Scanner(System.in);
System.out.println("Введіть довжину масиву");
in... |
package com.karya.model;
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="trialbalance001mb")
public class TrialBalance001MB {
private... |
package com.trump.auction.trade.constant;
/**
* Created by Administrator on 2018/1/25.
*/
public class SysContant {
public static final Integer PAGE_VIEW = 10;
public static final Integer COLLECTION_COUNT = 10;
/**
* 不同应用市场不同版本返币规则
*/
public final static String APP_COIN_RULE ="app_coin_rul... |
import java.awt.Color;
import java.awt.Font;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.LinkedList;
import javax.swing.*;
import java.util.Random;
public class ClockWindow implements IWindow{
private JFrame window;
private JLabel timer;
private JLa... |
package io.vepo.access.lang;
public interface HelloService {
public String sayHello(String username);
}
|
package com.fomin.push.util;
import android.util.Log;
/**
* Created by Fomin on 2018/10/25.
*/
public class LogUtil {
public static boolean isDebug = false;
private static final String TAG = "PushTag";
public static void d(String msg) {
if (isDebug)
Log.d(TAG, msg);
}
publi... |
/*
MIT License
Copyright (c) 2016 Kent Randall
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, d... |
/**
* PARA DOCUMENTAR QUE CONTIENE ESTE PACJKAGE
* EJERCICIOS PARA APRENDER EL USO DE EXCEPTION (Cap.9)
*/
/**
* @author Administrador
*
*/
package com.ipartek.formacion.javalibro.excepciones; |
package com.soa.display;
import com.soa.ws.category.WSCave;
import com.soa.ws.category.WSForest;
import com.soa.ws.category.WSTower;
import com.soa.ws.hero.WSDragon;
import com.soa.ws.hero.WSElf;
import com.soa.ws.hero.WSMag;
public interface Displayer {
void display(WSCave[] wsCaves);
void display(WSForest[]... |
package com.ethan.df.singleton_pattern;
import java.io.ObjectStreamException;
/**
* 懒汉单例模式2:DCL懒汉单例模式 [不推荐]
* DCL: 两次判空+锁
* 缺点:高并发情况下存在缺陷,存在DCL失效问题,发生概率极小;
*/
public class DclSingleton {
/**
* volatile
* 1. 保证主内存共享变量的可见性,每次线程X本地内存的读写都会刷入主内存中,并使其它线程本地内存的缓存失效
* 2. 禁止指令重排,保证mInstance要么是null,要么是完整的... |
package v2;
public class LevelStrategy {
int level;
double fitness;
char[] init_strategy;
char[] balance_strategy;
char[] bandwagon_strategy;
public LevelStrategy(int level, char[] init_strategy, char[] balance_strategy,
char[] bandwagon_strategy) {
this.level = level;
this.init_strategy = init_strategy... |
package br.com.douglastuiuiu.biometricengine.integration.creddefense.dto.response.viewdata;
import java.io.Serializable;
import java.util.List;
/**
* @author douglas
* @since 31/03/2017
*/
public class ViewDataCol3DTO implements Serializable {
private static final long serialVersionUID = 273431933760233099L;
... |
class Bola
{
int r;
public double volume()
{
return 4/3 * Lingkaran.PI * r * r * r;
}
}
class BangunRuang
{
public static void main(String[] args)
{
Bola bolaKasti = new Bola();
Bola bolaKaki = new Bola();
bolaKasti.r = 7;
bolaKaki.r = 28;
Sys... |
/*
* 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 prj_cadusu;
/**
*
* @author ddamaceno
*/
public class Prj_CadUsu {
}
|
/*
* 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 xyz.umng.freelance;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.v... |
package gov.nih.mipav.view;
import gov.nih.mipav.model.file.*;
import gov.nih.mipav.model.structures.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
/**
* DOCUMENT ME!
*/
public class ViewDICOMDoubleListPanel extends ViewSelectableDoubleListPanel {
//~ Static fields/initializers ----... |
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
/**
*
* @author Kimberly (Kacey) Coffey
*
*/
public class main {
public static void main(String[] args) throws FileNotFoundEx... |
package algorithms.demo;
import algorithms.maze.Position;
/**
* @author Tuval Lifshitz
* This class is a Vertex class,
* each object has a value Position, and a father,
* that is his previous Vertex.
*
*/
public class Vertex {
/**
* the Position of the Vertex
*/
private Position p;
/**
* The vertex... |
package com.partiel_android_boucher.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import com.partiel_android_boucher.R;
import com.partiel_android_boucher.classes.Album;
import com... |
package com.mod.loan.model.DTO;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
/**
* 规则处理结果
*
* @auth... |
package Multithreading_in_java8;
public class define_run_method_by_method_Reference {
public static void print(){
System.out.println("printing");
}
public static void main(String[] args) {
new Thread(()->print()).start();
}
}
|
package controller;
import hu.alkfejl.model.*;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
... |
package br.com.sgcraft.playerlogger.config;
import br.com.sgcraft.playerlogger.*;
import java.util.*;
public class config
{
playerlogger plugin;
public config(final playerlogger instance) {
this.plugin = instance;
}
public static void LoadConfiguration() {
final List<String> ... |
package ru.malichenko.market.services;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ru.malichenko.market.entities.ProfileEntity;
import ru.malichenko.market.repositories.ProfileRepository;
import java.util.Optional;
@Service
@RequiredArgsConstructor
public class Profi... |
/*
* 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 interfazGrafica;
import logico.*;
import sIstemaLogin.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
/**... |
package com.example.restful.response;
/**
* 公共响应体
*/
public class CommonResponse {
/**
* 响应码
*/
private Integer ResultCode;
/**
* 响应信息
*/
private String Message;
public CommonResponse(){}
public CommonResponse(Integer ResultCode,String Message){
this.ResultCode ... |
package my.yrzy.trade.model;
import com.google.common.base.Objects;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* Created by yangzefeng on 14/12/2
*/
@Data
public class Order implements Serializable {
private static final long serialVersionUID = 6438326501297062850L;
privat... |
package com.ideaheap.logic;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
public class LogicSentence {
private final SlrParser parser = new SlrParser();
private fi... |
package com.worldchip.bbpaw.bootsetting.view;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.worldchip.bbpaw.bootsetting.R;
public class MyTosat extends Toast {
public... |
package com.smartlead.common.vo;
public class TaskInfoVO {
private int pending;
private int total;
public int getPending() {
return pending;
}
public void setPending(int pending) {
this.pending = pending;
}
public int getTotal() {
return total;
}
public ... |
package com.betabeers.storm;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.StormSubmitter;
import backtype.storm.topology.TopologyBuilder;
import backtype.storm.tuple.Fields;
import backtype.storm.utils.Utils;
import com.google.common.base.Throwables;
import com.google.common.... |
package com.stk123.model.constant;
public class DictConstant {
}
|
package studentRecordsBackup.bst;
import java.util.ArrayList;
import studentRecordsBackup.util.EvenFilterImpl;
import studentRecordsBackup.util.OddEvenFilterI;
import studentRecordsBackup.util.OddFilterImpl;
/**
* @author Hari
*
* Node class that has the details of Node viz. Right Node, Left Node, Max ... |
package oop.Interface;
/**
* Interfaces are pure abstract classes, which means that they're a 100% abstract. All the methods or members defined inside
* an interface are abstract and don't need a body. An interface needs to be implemented by a class using the "implements"
* keyword.
*
* EXAMPLE: If we have an... |
package com.hqzmss.strategy;
public class TestClass {
public static void main(String[] args) {
Context context = new Context(new ConcreteStrategyTwo());
context.print();
}
}
|
package br.edu.com.dados.repositories;
import java.util.List;
import br.edu.com.entities.Atividade;
public interface IRepositoryAtividade {
public boolean salvarAtividade(Atividade atividade);
public boolean atualizarAtividade(Atividade atividade);
public boolean inativarAtividade(Atividade atividad... |
/*
* 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 tecnicassimulacion;
import static java.awt.image.ImageObserver.WIDTH;
import java.text.DecimalFormat;
import javax.swing.Icon;... |
package com.lmx.jredis.core;
import com.google.common.base.Charsets;
import com.google.common.collect.Lists;
import com.google.common.net.HostAndPort;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;
import org.springframe... |
//вывести матрицу того же размера,
// где каждый элемент в положении , (i, j)равен сумме элементов первой матрицы
// на позициях (i-1, j)(i+1, j)(i, j-1), (i, j+1)
//для квадратной матрицы
package Array;
import java.util.ArrayList;
import java.util.Scanner;
public class array_22 {
public static void main(String[] a... |
public class ComboDriver
{
public static void main(String[] args)
{
Combination lock = new Combination(4, 6, 5, 2);
System.out.println("Trying to open with wrong combo: ");
System.out.println(lock.open(4, 6, 5, 1));
System.out.println("Trying to open with right combo: ");
System.out... |
package com.zevzikovas.aivaras.terraria.activities.descriptions;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import com.zevzikovas.aivaras.terraria.R;
import com.zevzikovas.aivaras.terraria.models.Yoyos;
import com.zevzikovas.aivaras.terraria.r... |
package com.bicjo.sample.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class FooController {
private final Logger LOG = LoggerFactory.getLogger(getClass())... |
import java.io.*;
import java.util.*;
import java.util.stream.*;
public class Main {
static InputStream inputStream = System.in;
static OutputStream outputStream = System.out;
static InputReader in = new InputReader(inputStream);
static PrintWriter out = new PrintWriter(outputStream);
static boolean isOK (S... |
/*接口也支持泛型*/
package dao;
import charactor.Hero;
public interface Stack<T> { //自定义一个栈接口,先进后出
public void push(T t); //把英雄推入到最后位置
public T pull(); //把最后一个英雄取出来
public T peek(); //查看最后一个英雄
}
|
package pl.basistam.zad3.books;
import pl.basistam.Book;
import pl.basistam.XmlBuilder;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import ja... |
package com.gamzat;
public class Main {
public static void main(String[] args) {
int Homer = 40;
//++Homer;
Homer /= 2;
System.out.println(Homer);
}
}
|
package com.meehoo.biz.mobile.controller.basic;
import com.meehoo.biz.common.util.BaseUtil;
import com.meehoo.biz.common.util.MD5Encrypt;
import com.meehoo.biz.common.util.StringUtil;
import com.meehoo.biz.core.basic.dao.security.IUserOrganizationDao;
import com.meehoo.biz.core.basic.domain.security.Admin;
import com.... |
package edu.neu.ccs.cs5010;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static com.sun.tools.doclets.internal.toolkit.util.DocPath.parent;
public abstract class CandyTree<T> {
private Node<T> root;
p... |
package com.parkinglot.demo.core.test;
import com.parkinglot.demo.core.domain.ParkingLot;
import com.parkinglot.demo.core.ParkingLotFactory;
import com.parkinglot.demo.core.domain.parking.Parking;
import com.parkinglot.demo.core.domain.vehicle.Vehicle;
import com.parkinglot.demo.core.domain.vehicle.VehicleType;
import... |
package pro.likada.dao.daoImpl;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pro.likada.dao.DocumentDAO;
import pro.likada.model.Document;
import pro.likada.uti... |
/**
*
*/
package com.imooc.security.config;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;
import com.imooc.security.order.OrderInfo;
... |
/*
* 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 quicksort;
/**
*
* @author RolfMoikjær
*/
public class QuickSortImpl {
public static void sort(int[] list) {
... |
package info.datacluster.crawler.utils;
public class UrlUtils {
public static String getDomain(String url){
int index = 0;
int protocolLength = 0;
if (url.startsWith("https://")){
protocolLength = "https://".length();
}else if (url.startsWith("http://")){
p... |
package com.yc.education.model.check;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
/**
* @ClassName CheckOrderEmployeeProperty
* @Description TODO 申请人
* @Author QuZhangJing
* @Date 2019/2/15 17:50
* @Version 1.0
*/
public class CheckOrderEmployeeProperty {... |
package com.skilldistillery.gamebored.entities;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
impor... |
package com.loading.graphqldemo.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import lombok.Data;
import org.hibernate.annotations.Proxy;
/**
* desc:
*
* @author Lo_ading
* @version 1.0.0
* @date 2021/9/14
*/
@Data
@Proxy(lazy = false)
@Entity
public class CompanyEntity {
@Id
privat... |
/*
* Copyright (c) 2020.
* Kamalita's coding
*/
package RegularProgramming;
public class InheritenceExample extends Parent implements IParent{
void check(){
System.out.println("child");
}
public static void main(String[] args) {
Parent product=new InheritenceExample();
// Not p... |
/*
* 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.zxt.compplatform.indexgenerate.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.apache.commons.lang.StringUtils;
import com.zxt.compplatform.indexgenerate.dao.PageDao;
import com.zxt.compplatform.indexgenerate.entity.PageUnit;
import... |
package com.demo;
import com.demo.aws.LaunchEc2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class RunController {
@Autowired
private LaunchEc2 l... |
package servlets;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impor... |
package com.ihq.capitalpool.ssoserver.ServiceImpl;
import com.alibaba.fastjson.JSONObject;
import com.ihq.capitalpool.common.RestException;
import com.ihq.capitalpool.common.RestResult;
import com.ihq.capitalpool.common.ResultStatusEnum;
import com.ihq.capitalpool.ssoserver.Service.PasswordTokenService;
import com.ihq... |
/*
* 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 tool.calendar;
import java.time.Duration;
import java.util.Calendar;
/**
* lenient 模式 每个时间字段可接受超出它允许的范围的值(默认)
* non-lenient 模式 每个时间字段不可接受超出它允许的范围的值
*/
public class CalendarTest
{
public static void main(String[] args)
{
// Calendar 介绍
Calendar calendar = Calendar.... |
package com.xh.util;
import android.app.PendingIntent;
import android.app.PendingIntent.CanceledException;
import android.content.Context;
import android.content.Intent;
import android.location.LocationManager;
import android.net.Uri;
import android.provider.Settings.Secure;
public class GpsManage {
priva... |
package sch.frog.test;
public interface ICaseObject {
String content();
}
|
package com.teaboot.web.session;
import java.lang.reflect.Field;
import com.teaboot.context.anno.AutoDi;
import com.teaboot.context.beans.BeanCollections;
import com.teaboot.context.common.PropertiesManager;
import com.teaboot.context.entity.EntityType;
import com.teaboot.context.utils.StringUtil;
public c... |
package deloitte.forecastsystem_bih;
import java.util.Calendar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import del... |
package model;
public enum State{
Active,Inactive;
} |
/**
*
*/
package com.smartech.course.racing;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.smartech.course.racing.exception.CreatingVehicleException;
import com.smartech.course.racing.vehicle.Bus;
import com.smartech.course.racing.vehicle.Car;
import com.smartech.course... |
package Tests.TestNGTests.DemoTests;
import Tests.TestNGTests.BaseCLass;
import Utils.ConstantsUtils;
import org.testng.Assert;
import org.testng.annotations.*;
public class TestNgClasses extends BaseCLass {
@Test
public void test01(){
System.out.println("My very first TestNG test!");
double ... |
package com.example.hellostudiotesting;
/**
* Created by ian on 2016-07-13.
*/
public class DataModel {
public String getName() {
return "Robin Good";
}
}
|
/*
2021-10-15
[Programmers][DfsBfs][Lv2] 네트워크
check) 단방향 네트워크
1->2->3
3->2
=> 각각 네트워크 2개인 상황임.
*/
package DfsBfs;
public class Network {
boolean[] visited;
public int solution(int n, int[][] computers) {
int answer = 0;
visited = new boolean[n];
for(int i=0; i... |
package adtpackage;
import generalpackage.*;
/**
*
* @author Zbyněk Stara
*/
public class HashSet extends HashTable implements Set {
public HashSet(int dimension) {
super(dimension);
}
public <T extends Printable> ReturnCode add(T data, double key) {
int checkCounter = 0;
boole... |
/*
* 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 pooPractica.Personas;
/**
*
* @author RadW
*/
public class Persona implements java.io.Serializable{
private String... |
package com.tt.rendezvous.core.algorithms;
import java.util.HashMap;
import java.util.List;
public abstract class AlgorithmWords {
public AlgorithmWords(){
}
public abstract double calculateSimilarity(List<String> words1, List<String> words2);
public abstract double calculateSimilarityTaxonomy(List<String>... |
package com.yg.schedule;
import com.yg.service.EmpManagerService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import javax.annotation.Resource;
public class PayJob extends QuartzJobBean {
//判断作业是否执行的旗标
private boo... |
package base.obj;
import base.abst.Object_test;
public class Ts extends Object_test{
public Ts(String name, int id, boolean repeat, int NumRepeat) {
super(name, id, repeat, NumRepeat);
// TODO Auto-generated constructor stub
}
}
|
/*
* 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 PA165.language_school_manager.Entities;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.t... |
package aop.test;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Service;
@Service
@Aspect
public class MyAspect {
//@After("execution(* aop.test.*... |
/*
* 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 ppro.modelo;
import java.io.Serializable;
import java.util.Collection;
import javax.faces.bean.ManagedBean;
import j... |
package uz.pdp.appcodingbat.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import uz.pdp.appcodingbat.entity.Answer;
import uz.pdp.appcodingbat.entity.User;
import uz.pdp.appcodingbat.payload.A... |
package kr.co.mghan.view;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.