text stringlengths 10 2.72M |
|---|
package com.xiaodao.admin.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.io.Serializable;
@Data
@Slf4j
public class SysPermission implements Serializable {
private static final long serialVersionUID = 1L;
/**
*id(权限点)
*/
... |
package com.example.cjmcn.teamicecreamsandwich;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class Legal extends Activity implements View.OnClickListener{
Button buttonHomepage;... |
package sortimo.databaseoperations;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class UserDb {
private Connection connect = null;
private PreparedStatement preparedStatement = null;
public ResultSet getUserAccount(String username) throws Exception {
System... |
package com.rbkmoney.adapter.atol.service.atol;
import com.rbkmoney.adapter.atol.service.atol.model.request.CommonRequest;
import com.rbkmoney.adapter.atol.service.atol.model.request.RequestWrapper;
import com.rbkmoney.adapter.atol.service.atol.model.response.CommonResponse;
import lombok.Getter;
import lombok.Require... |
package com.project.weiku.util;
/**
* 常量接口
*/
public interface Constants {
interface URL{
String MAIN_URL = "http://api.wecook.cn/v3/post/index?timestamp=1457335647745&sign=2a98c393db80e29757e98dd0999fe620&uid=&lon=0&wid=d199dc24aba9f3f809438a4efcf1a756&page=1&batch=20&net=wifi&access=259eea423dee18c7b8... |
public class Randomizer {
private static int randomNumber;
public Randomizer(){
this.randomNumber = randomNumber;
}
public static int getRandomNumber() {
int min = 0;
int range = 3;
randomNumber = (int)(Math.random() * range) + min;
return randomNumber;
}
... |
package com.stepdefn;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.internal.runners.statements.Fail;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.baseclass.LibGlobal;
import com.manager.PageOjectManager;
import com.pageobje... |
package classeabstrata;
/*
classe abstrata não pode ser instanciada
*/
public abstract class Funcionario {
protected String nome;
protected String cpf;
protected double salario;
public double getBonificacao() {
return this.salario * 1.2;
}
}
|
package lk.cb006789.eea.mercstore.models;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import javax.persistence.*;
import java.util.Collection;
import java.util.Objects;
@Entity
@Table(name = "merchandiseitem", schema = "merc_store_db", cata... |
/*
The crooked digit of a given number N is calculated using the number's
digits in a very weird and bendy algorithm. The algorithm takes the following steps:
Sums the digits of the number N and stores the result back in N.
If the obtained result is bigger than 9, step 1. is repeated, otherwise the algorithm fi... |
package com.mastercom.ps.connector.response.domain.casefiling;
import com.mastercard.api.mastercom.CaseFiling;
/**
* Interfaccia da implementare per gestire le response di tipo
* {@link CaseFiling}
*
* @author SabatiniJa
*
*/
public interface CaseFilingHandler<T extends CaseFiling> {
/**
* Metodo che si oc... |
/*
* 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 com.mycompany.useless.box;
import javafx.scene.Scene;
/**
* This class provides information hiding for main scenes... |
package fpt.fis.Service.ServiceImpl;
import fpt.fis.Service.ExtraInformationService;
import fpt.fis.dto.extraInformationDTO;
import fpt.fis.model.ExtraInformation;
import fpt.fis.model.UngVien;
import fpt.fis.repository.ExtraInformationReponsitory;
import org.modelmapper.ModelMapper;
import org.springframework.beans.f... |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... |
package com.orca.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPara... |
package com.catcher.seeexpress.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.catcher.seeexpress.db.DBHelper;
import com.ca... |
package com.storytime.client.lobbyroom;
import de.novanic.eventservice.client.event.Event;
public class UserEnteredRoomEvent implements Event {
private static final long serialVersionUID = -2028161836126246533L;
public String username = "";
public String getUsername() {
return username;
}
public... |
package com.bhavanee.services;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;
import java.sql.Connection;
import java.sql.Result... |
package com.kingfish.show.mybatis.model;
import java.io.Serializable;
import java.util.Date;
public class Shows implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column shows.id
*
* @mbg.generated
*/
private ... |
package com.example.johnwu.mtlmural;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.support.v4.content.ContextCompa... |
package org.nyer.sns.netease;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.nyer.sns.cor... |
import java.util.Random;
import java.util.Scanner;
public class TESTING {
static Scanner inputFromPlayer = new Scanner (System.in);
public static Random random = new Random();
public static char [] GuessColor;
public static char [] PlayerGuess;
public static void main(String[] args) {
}
... |
package com.wangmaodou.blurimage;
import android.content.Context;
import android.graphics.Bitmap;
import android.support.v8.renderscript.Allocation;
import android.support.v8.renderscript.Element;
import android.support.v8.renderscript.RenderScript;
import android.support.v8.renderscript.ScriptIntrinsicBlur;
/**
* C... |
package com.tencent.mm.protocal.c;
import f.a.a.c.a;
import java.util.LinkedList;
public final class asq extends bhd {
public String dkY;
public String eJK;
public String hbP;
public String iwO;
public String iwP;
public int jRa;
public int qZe;
public String rEt;
public String rUU... |
package au.gov.ga.geodesy.igssitelog.interfaces.xml;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.ValidationEvent;
@SuppressWarnings("serial")
public class MarshallingException extends Exception {
private ValidationEvent[] validationEvents;
public MarshallingException(String mes... |
package chapter14;
import java.util.ArrayList;
import javafx.application.Application;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene... |
/*
* Copyright: 2020 forchange Inc. All rights reserved.
*/
package com.research;
import com.google.common.collect.Lists;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import javax.annotation.concurrent.ThreadSafe;
import java.util.List;
/**
* @fileNa... |
package com.tieto.ggl.telematics.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "VEHICLE")
public class Vehicle {
@Id
@GeneratedValue(strategy = Generation... |
package category.arraysandstring;
public class RemoveDupicatesIII {
public static void main(String[] args) {
System.out.println(removeDuplicates(new int[] {}));
System.out.println(removeDuplicates(new int[] {1, 1, 1}));
System.out.println(removeDuplicates(new int[] { 1, 1, 1, 1, 2, 2, 3, 3 }));
}
... |
/**
* Created by Omer on 3/11/2016.
*/
/*
Rabbit test subjects
====================
The diabolical Professor Boolean has captured you and a group of your hapless rabbit kin as test subjects for his terrible experiments! You're not sure what his real plans are, but currently it seems he's trying to ma... |
package com.springtest.demo.controller;
import com.springtest.demo.model.Product;
import com.springtest.demo.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.... |
package com.choosedormitory;
import com.google.gson.annotations.SerializedName;
/**
* Created by amoshua on 20/12/2017.
*/
public class Room {
/**
* errcode : 0
* data : {"5":200,"13":100,"14":100,"8":0,"9":0}
*/
private int errcode;
private DataBean data;
public static Room getRoom... |
package com.company.ArrayListChallenge;
import java.util.ArrayList;
public class MobilePhone {
private ArrayList<Contacts> contactsList = new ArrayList<Contacts>();
public void addContact(String name, int number) {
Contacts contact = new Contacts(name, number);
contactsList.add(contact);
... |
package banking.dto;
public class LoginRequestDto {
private final String cardNumber;
private final String pin;
public LoginRequestDto(String cardNumber, String pin) {
this.cardNumber = cardNumber;
this.pin = pin;
}
public String getCardNumber() {
return cardNumber;
}
... |
package carnival.gusac.com.gusaccarnival40;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView;
public class Ma... |
package org.sodeja.generator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.sodeja.functional.Maybe;
public class Generator2<T> implements Iterator<T> {
private Maybe<T> cachedValue;
private GeneratorFunction<T> fun;
public Generator2(GeneratorFunction<T> fun) {
... |
package com.fc.activity.kc;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
import android.annotation.SuppressLint;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Han... |
package br.org.funcate.glue.tool;
import java.awt.Cursor;
import java.awt.Point;
import java.awt.Toolkit;
import java.util.ArrayList;
import java.util.EventObject;
import java.util.List;
import javax.swing.ImageIcon;
import br.org.funcate.eagles.kernel.dispatcher.EventHandler;
import br.org.funcate.eagles.kernel.lis... |
package de.hwp.tinyvm;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
public class Assembler {
List<String> programList = new LinkedList<>();
public int[] fileToOpcode(String file) throws IOException {
int[] co... |
package com.tencent.mm.plugin.radar.ui;
public final class RadarWaveView$a {
private RadarWaveView$a() {
}
public /* synthetic */ RadarWaveView$a(byte b) {
this();
}
}
|
package com.example.demo.service;
import com.example.demo.domain.UserInfo;
import java.util.List;
public interface UserService {
int deleteByPrimaryKey(String uid);
int insert(UserInfo record);
UserInfo selectByPrimaryKey(String uid);
List<UserInfo> selectAll();
int updateByPrimaryKey(UserI... |
package com.university.wanstudy;
import android.app.Application;
import org.xutils.image.ImageOptions;
import org.xutils.x;
/**
* Created by dkk on 2016/4/20.
*/
public class MyApp extends Application {
public static ImageOptions options;
@Override
public void onCreate() {
super.onCreate();
... |
package com.sammidev;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
public class StreamExample {
public static void main(String[] args) {
Stream<String> newStream = Stream.of("SammIDEV","AdItya", "AyatULLAH");
List<String> newList = Arrays.asList("cat",... |
package com.tencent.mm.bt.a;
public interface a<K> {
void R(int i, long j);
void aY(int i, String str);
void cks();
K getKey();
void q(int i, byte[] bArr);
}
|
package com.Ichif1205.gridreflexes.reverse;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.Ichif1205.gridreflexes.Construct;
import com.Ichif1205.gridref... |
package com.pcms.domain;
public class RequestMoive {
private Integer id;
private String moivename;
private String status;
private String updatetime;
private String wxname;
private String moivedesc;
private Integer counter;
public Integer getId() {
return id;
}
pu... |
package ca.qc.inspq.securite.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.secur... |
package com.chavhun.partlist.dao;
import com.chavhun.partlist.model.Part;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public class PartDaoImpl implement... |
package MiddleClass;
/**
* @author renyujie518
* @version 1.0.0
* @ClassName beibaoBianzhong.java
* @Description
* 牛牛准备参加学校组织的春游, 出发前牛牛准备往背包里装入一些零食, 牛牛的背包容 量为w。
* 牛牛家里一共有n袋零食, 第i袋零食体积为v[i]。 牛牛想知道在总体积不超过背包容量的情况下, 他一共有多少种零食放法(总体积为0也 算一种放法)。
*
* 背包问题的变种
* dp解决 dp[i][j]代表的含义:arr[0...i]上的数每个只用一次 (也可以不用),累加和正好为j
*... |
package com.goldenratio.test;
import static org.junit.Assert.*;
import org.junit.Test;
import com.goldenratio.proof.Main;
/**
*
* @author Patrick Culligan
*
*/
public class AreNotEqualTest {
@Test
public void test() {
Main test = new Main();
int input = test.runProgram(Main.index);
assertNotEquals(... |
package ru.lischenko_dev.fastmessenger.util;
public class Constants {
public static String API_ID = "5462895";
public static String DARK_MOON = "\uD83C\uDF1A";
public static String LIGHT_MOON = "\uD83C\uDF1D";
}
|
/*
*抽象工厂模式:为创建一组相关或者相互依赖的的对象提供一个接口,而且无需指定它们的具体类。
*
* */
public class Main {
public static void main(String[] args){
AbstractProductA productA = new Creator1().createProductA();
}
}
|
package com.sportingCenterWebApp.activityservice.controller;
import com.sportingCenterWebApp.activityservice.model.Activity;
import com.sportingCenterWebApp.activityservice.repo.ActivityRepository;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/all")
public... |
package com.example.naviwake.activity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils... |
package com.kingbbode.bot.common.base.emoticon;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.kingbbode.bot.common.request.BrainRequest;
import com.kingbbode.bot.common.base.setting.BotProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core... |
package zm.gov.moh.common.submodule.form.widget;
import android.content.Context;
import androidx.appcompat.widget.LinearLayoutCompat;
public abstract class BaseWidget extends LinearLayoutCompat implements Widget{
protected Context mContext;
protected int mWeight;
public BaseWidget(Context context){
... |
/* 1: */ package com.kaldin.common.security;
/* 2: */
/* 3: */ import java.util.UUID;
/* 4: */
/* 5: */ public class GenerateActivation
/* 6: */ {
/* 7: */ public String getActiationKey()
/* 8: */ {
/* 9:18 */ UUID activationkey = UUID.randomUUID();
/* 10: */
/* 11:20... |
package com.nfc;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.socialcard.activity.R;
/**
* Created by acer on 14-6-4.
*/
public class NfcSetActivity extends Activity{
TextVi... |
package com.tencent.mm.plugin.appbrand.jsapi.video;
import com.tencent.mm.plugin.appbrand.app.e;
import com.tencent.mm.plugin.appbrand.c.d.c;
import com.tencent.mm.plugin.appbrand.jsapi.video.AppBrandOnlineVideoProxy.OnlineVideoProxy;
import com.tencent.mm.sdk.platformtools.x;
class AppBrandOnlineVideoProxy$OnlineVid... |
package com.promuplug.constants;
public enum CampaignType {
IMAGE("IMAGE"),
VIDEO("VIDEO");
String campaignType;
CampaignType(String campaignType){
this.campaignType = campaignType;
}
}
|
package com.example.diam.giovannii.presenter;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.wid... |
package ElementsOfProgrammingInterview.BinaryTreeChapter.heightbalanced;
import ElementsOfProgrammingInterview.BinaryTreeChapter.BinaryTreeNode;
public class Solution {
public static void main(String[] args) {
}
private static boolean isBalanced(BinaryTreeNode<Integer> root) {
if (root == null) ... |
package com.plexobject.dp.sample;
import java.util.Map;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.LogManager;
import com.plexobject.domain.Configuration;
import com.plexobject.dp.sample.util.DataFactory;
import com.plexobject.handler.RequestHandler;
import com.... |
package com.qihoo.finance.chronus.worker.config;
import com.qihoo.finance.chronus.support.WorkerSupport;
import com.qihoo.finance.chronus.worker.log.JobInvokeMonitorAspect;
import com.qihoo.finance.chronus.worker.processor.ExecuteProcessor;
import com.qihoo.finance.chronus.worker.processor.SelectExecuteFlowProcessor;
... |
package fl.busmarker.gui;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cursor;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.T... |
package com.hmammon.photointerface;
import android.content.Context;
import com.hmammon.photointerface.domain.Entity;
import com.hmammon.photointerface.domain.ErrorInfo;
import com.hmammon.photointerface.domain.UploadInfo;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.... |
package com.epam.bar.util;
import lombok.Getter;
import lombok.extern.log4j.Log4j2;
import java.io.IOException;
import java.util.Properties;
/**
* The class encapsulates in itself all the data coming from the application properties file
*
* @author Kirill Karalionak
* @version 1.0.0
*/
@Log4j2
@Getter
public cl... |
package PoppyIlluminati;
import java.io.IOException;
import java.util.ArrayList;
/**
*
* @author leho9818
*/
public class MainClass {
static ArrayList<Posts> postArray = new ArrayList<>();
static long startTime, stopTime, elapsedTime;
/**
* @param args the command line arguments
*/
public static ... |
package com.bingo.code.example.design.visitor.composite;
public class Client {
public static void main(String[] args) {
//�������е���϶���
Component root = new Composite("��װ");
Component c1 = new Composite("��װ");
Component c2 = new Composite("Ůװ");
//�������е�Ҷ�Ӷ���
Component leaf1 = new Leaf("����");
... |
package services;
import com.cucumber.listener.Reporter;
import org.junit.AfterClass;
import java.io.File;
public class PetTests
{
@AfterClass
public void coreTest() {
Reporter.loadXMLConfig(new File("src/test/resources/extent-config.xml"));
Reporter.setSystemInfo("Test User", System.getProperty("use... |
package leecode.Array;
public class 柠檬水找零_860 {
public static boolean lemonadeChange(int[] bills) {
int five=0;
int ten=0;
for(int i=0;i<bills.length;i++){
if(five<0){
break;
}
switch (bills[i]){
case 5:
... |
package it.uniclam.rilevamento_presenze;
/**
* Created by Antonio on 24/11/2015.
*/
public class Esempio {
//hdhdhhdg
}
|
package org.machiev.pojo.mapping;
import org.junit.Test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static java.util.Collections.singletonList;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNull;
i... |
package com.home.common;
public class Sorting {
public static <T extends Comparable<T>> void quickSort(T[] arr) {
quickSort(arr, 0, arr.length-1);
printArr(arr);
}
private static <T extends Comparable<T>> void quickSort(T[] arr, int p, int r) {
int q;
if (p < r) {
q = partition(arr, p, r);
quickSo... |
package problem_solve.dynamic_programming.baekjoon;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class BaekJoon2225 {
static int[][] td;
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStr... |
/* Copyright 2018-2019, Senjo Org. Denis Rezvyakov aka Dinya Feony Senjo.
*
* 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
*/
package or... |
/**
* For any withdraw transaction, this application will generate at random a transaction amount
* (or a number, which is seen as the input amount to withdraw) between 75% and 125% out of the
* current balance amount. Withdraw transaction is valid if the transaction amount is not greater
* than the current balanc... |
package com.lito.fupin.business.paper;
import com.lito.fupin.meta.paper.entity.Paper;
import java.util.Map;
public interface IPaperBusinessService {
Map createPaper(Map in) throws Exception;
/**
* 读取一个用户需要审核的下级单位文章
* @param in
* @return
* @throws Exception
*/
Map listPaperUnAppr... |
import java.util.ArrayList;
import java.util.Collections;
public class AgeDescription extends Person {
public AgeDescription(String name, String nationality, int age) {
super(name, nationality, age);
}
public static void getAgeDescription() {
ArrayList<Person> people = PersonData.inputData... |
package com.timebank.data;
import java.util.List;
import entities.Address;
import entities.User;
public interface AddressDAO {
//create
public Address createAddress(String addressJson);
//read
public Address showAddressById(int addressId);
public List<Address> indexAddressesByZip(int zip);
public List<... |
package com.behzad.spring5webapp.model;
import javax.persistence.*;
@Entity
public class Student {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name ;
private String family;
public Student(String name , String family){
this.name=name;
... |
package com.agileengine;
import org.jsoup.nodes.Attribute;
import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class SimilarElementFinder {
private static final float DEFAULT_TOLER... |
package com.espendwise.manta.auth;
public class BadAuthorizedRoleException extends org.springframework.security.core.AuthenticationException {
public BadAuthorizedRoleException(String msg, Throwable t) {
super(msg, t);
}
public BadAuthorizedRoleException(String msg) {
super(msg... |
package com.bltucker.spotifystreamer.artists;
import android.app.Activity;
import android.app.Fragment;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import... |
package com.gdcp.weibo.web.user;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Request... |
package exercício01;
import java.time.LocalDateTime;
public class Principal {
public static void main(String[] args) {
//Instanciando um objeto contendo a data e a hora
LocalDateTime tempo = LocalDateTime.now();
//Instanciar objeto contendo a data e a hora
LocalDateTime tampo = LocalDateTime.now... |
/**
*
*/
package hackerRank;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
/**
* @author Tina
*
*/
public class mountain_valley {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print outpu... |
package com.liufeng.common.utils;
import java.util.Random;
import java.util.UUID;
public class CommonsUtils {
private static final int RANDOM_MIN = 100000;
private static final int RANDOM_MAX = 900000;
/**
* 获取一个不包含'-'符号的32位长度的UUID
*/
public static String get32BitUUID() {
return UU... |
package javabasico.aula20labs;
import java.util.Random;
import java.util.Scanner;
/**
* @author Kim Tsunoda
* Objetivo Gere e imprima uma matriz M 10x10 com valores aleatórios entre 0-9. Após isso indique qual é o maior e o menor valor da linha 5 e qual é o maior e o menor valor da coluna 7.
*/
public c... |
package task3;
import java.util.*;
class MyPasswordException extends Exception{
public String toString() {
return "incorrect password";
}
}
public class ExceptionDemo3 {
static int count;
public static void main(String[] args) {
String str;
String s1="srav";
// TODO Auto-generated method stu... |
package com.kh.efp.category.controller;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.we... |
package com.github.emailtohl.integration.core.role;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.JoinColumn;
import... |
import java.util.*;
import java.util.stream.*;
import java.io.*;
import java.math.*;
import java.awt.geom.*;
public class D {
public static final BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
public static final PrintWriter outWriter = new PrintWriter(System.out);
public static cha... |
package designpattern.proxy;
/**
* Created by john(Zhewei) on 2016/12/14.
* 代理模式
* 定义:为其他对象提供一种代理来控制这个对象(一般委托对象和代理对象实现同一个接口)
* 作用:
* 1.安全考虑,屏蔽细节
* 2.延迟加载,提高系统性能,提高系统启动速度,改善用户体验
* 对真实对象进行封装如:在开机时,把消耗资源多的对象用代理类代替实现,真正要用的时候在让代理类去实现
*/
public class Main {
public static void main(String[] args) {
}
}
|
package com.example.user.test;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
/**
* Created by USER ... |
package edu.matc.entity;
import org.hibernate.annotations.Cascade;
import javax.persistence.*;
import java.io.Serializable;
/**
* Created on 11/16/17 at 4:22 AM
*
* @author nfenev
*/
@Entity
@Table(name="user_roles")
public class UserRoles implements Serializable {
private String userName;
private Strin... |
package model;
import java.io.IOException;
public interface Saveable {
static void save() throws IOException {
System.out.println("Saving...");
}
}
|
package com.example.firstapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
public class Main2Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceSt... |
package com.redbus.tests;
import org.testng.annotations.Test;
import java.util.ArrayList;
import org.apache.log4j.Logger;
import org.openqa.selenium.JavascriptExecutor;
import com.redbus.pages.BusHirePage;
import com.redbus.testUtils.CommonAssertions;
import com.redbus.utils.ExtentReport;
import com.relevantcodes.... |
package com.hqhcn.android.service.impl;
import com.hqh.android.dao.ExamKfMapper;
import com.hqh.android.entity.ExamKf;
import com.hqh.android.entity.ExamKfExample;
import com.hqh.android.entity.Exampreasign;
import com.hqh.android.service.ExamKfService;
import com.hqh.android.service.ExamProcService;
import com.hqh.an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.