text stringlengths 10 2.72M |
|---|
package idv.jack;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.CardView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.java.iPet.R;
public class ApenterFragment ext... |
package com.domain;
import static org.springframework.security.core.authority.AuthorityUtils.createAuthorityList;
/**
* Created by Michał on 2016-11-14.
*/
public class CurrentUser extends org.springframework.security.core.userdetails.User {
private User user;
public CurrentUser(User user) {
super... |
import java.util.Arrays;
public class CircleComparatorTest {
public static void main(String[] args){
CircleComparator[] list = new CircleComparator[3];
list[0] = new CircleComparator(4);
list[1] = new CircleComparator();
list[2] = new CircleComparator(3);
for(int i = 0; i <... |
package task336;
import common.PermutationGenerator;
import common.Watch;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* @author igor
*/
public class Main336 {
private static final int LIM = 11, N = 2011;
public static void main(String[] arg... |
package com.ibm.xml.parser;
import org.w3c.dom.*;
import java.util.*;
import java.io.*;
/**
* The TXNodeList class is used to represent collections of Node
* objects which need to be accessed by name, ordinal, etc.
* For example, the Parent class uses TXNodeList to organize and access
* its Child Nod... |
package iks.pttrns.collections;
import java.util.ArrayList;
import java.util.Iterator;
public class PancakeHouseMenu implements Menu{
ArrayList menuItems;
public PancakeHouseMenu() {
this.menuItems = new ArrayList();
addItem("Breakfast", "Something to eat", false, 5.99);
addItem("Lunc... |
package com.avaya;
public class Main {
public static void main(String[] args) {
// write your code here
// WeatherReport nwr = new WeatherReport();
//
// nwr.getWeather();
// nwr.showWeather();
WeatherForecast nwf = new WeatherForecast();
nwf.getWeather();
nwf.sho... |
package thuc_hanh;
import java.util.Scanner;
public class Inverse {
public static void ramdom(int a[],int n) {
int i;
for(i = 0; i < n; i++)
a[i] = (int) (Math.random() * 100);
}
public static void disPlay(int a[],int n) {
int i;
for(i = 0; i < n; i++)
System.out.print(a[i]+" ");
}
public static... |
import lejos.hardware.*;
import lejos.hardware.ev3.LocalEV3;
import lejos.hardware.lcd.TextLCD;
import lejos.hardware.motor.EV3LargeRegulatedMotor;
import lejos.hardware.port.Port;
import lejos.hardware.sensor.*;
import lejos.robotics.SampleProvider;
//LAB 5 OBJECT SEARCHING
//WEIPING REN - 260613810
//ALEXA... |
package houseinfoemation;
import java.awt.Container;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.TextArea;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Vecto... |
package shipment;
public class OfficialPapers extends Shipment implements Undelayable{
public OfficialPapers() {
super(new int[] {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1});
}
}
|
/*
* 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 frames;
import static frames.AddTrainer.nameLabel;
import hdcczech.DbConnection;
import java.awt.HeadlessException;
import jav... |
package Leap;
/**
* Created by Max on 09.11.2016.
*/
public class Variable {
}
|
package com.feng.fundation.mod.annonation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by Feng
* 注解工作类
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interfac... |
package com.codecow.service;
import com.codecow.common.vo.req.AddRoleReqVO;
import com.codecow.common.vo.req.RolePageReqVO;
import com.codecow.common.vo.req.RoleUpdateReqVO;
import com.codecow.common.vo.resp.PageVO;
import com.codecow.entity.SysRole;
import java.util.List;
/**
* @author codecow
* @version 1.0 UPM... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.AggregateprogrammType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.AggregateprogrammType.BEHGH1;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.AggregateprogrammTyp... |
package a2lend.app.com.a2lend;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.DrawableWrapper;
import android.location.Location;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nulla... |
package com.jayqqaa12.abase.core;
import com.jayqqaa12.abase.util.common.TAG;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
/**
*
* This's IntentService ioc
*
* 多个任务 都可以放在这里
*
*
*/
public abstract class AbaseIntentService extends IntentService
{
pu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package legaltime.modelsafe;
import java.util.Date;
/**
*
* @author bmartin
*/
public class LogEvent {
private Date dateOccured;
private int logLevel;
private String description;
private String loca... |
package com.aiyonghui.widget.ElasticRecyclerView;
import android.content.Context;
import android.support.v4.view.ViewCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.LayoutManager;
import android.util.AttributeSet;... |
package org.rebioma.server.services;
// Generated Feb 18, 2009 10:17:00 AM by Hibernate Tools 3.2.4.CR1
import java.util.List;
import java.util.Set;
import com.google.inject.ImplementedBy;
@ImplementedBy(CollaboratorsDbImpl.class)
public interface CollaboratorsDb {
public void attachClean(Collaborato... |
import tiles.gameEnd;
import tiles.player;
import tiles.tile;
import tiles.wall;
import java.awt.*;
public class maze
{
public static int [][] desiredArray = new int[][] //too lazy to fix coordinate system so array is flipped by making y = x in a new array
{
//0 = spawn, 1 = blank, 2 = ... |
package cn.canlnac.onlinecourse.presentation.internal.di.modules;
import java.util.Map;
import cn.canlnac.onlinecourse.domain.executor.PostExecutionThread;
import cn.canlnac.onlinecourse.domain.executor.ThreadExecutor;
import cn.canlnac.onlinecourse.domain.interactor.CreateCourseUseCase;
import cn.canlnac.onlinecours... |
package com.hiwes.cores.sparkcore;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.FlatMapFunction;
import org.apache.spark.api.java.function.Function2... |
package com.cse308.sbuify.common.api;
import com.cse308.sbuify.album.AlbumDecorator;
import com.cse308.sbuify.album.AlbumRepository;
import com.cse308.sbuify.artist.ArtistDecorator;
import com.cse308.sbuify.customer.FollowedArtistRepository;
import com.cse308.sbuify.customer.FollowedCustomerRepository;
import com.cse3... |
package ager;
import static ager.Types.*;
public class Adventurers {
public static final int[][] SWORDSMAN = {
{Iron_Sword, 0, 1, 0},
{Stone_Pickaxe, 0, 1, 1},
{Stone_Shovel, 0, 1, 2},
{Stone_Axe, 0, 1, 3},
{Crafting_Table, 0, 1, 4},
{Bread, 0, 3, 5},
{Torch, 0, 8, 8},
{Leather_Helmet, 0, 1, 103},
... |
package cn.com.zjol.userhome.callback;
/**
* 个人主页导航回调
* Created by wangzhen on 2019-09-07.
*/
public interface OnUserNavCallback {
void onNavBack();
}
|
package com.example.demo.Reposetories;
import com.example.demo.Models.TicketEntity;
import org.springframework.data.jpa.repository.JpaRepository;
public interface TicketRepository extends JpaRepository<TicketEntity,Long> {
}
|
class ProcessSynchronization
{
public static void main(String...args)
{
Table obj=new Table();
MyThread1 t1=new MyThread1(obj);
MyThread2 t2=new MyThread2(obj);
MyThread3 t3=new MyThread3(obj);
t1.start();
t2.start();
t3.start();
}
}
class Table
{
synchronized void printTable(int n)
{
for(in... |
package model.pivot;
import java.util.ArrayList;
import java.util.List;
public class AxisMember {
private List<Member> members=new ArrayList<Member>();
public List<Member> getMembers() {
return members;
}
public void setMembers(List<Member> members) {
this.members = members;
}
public ... |
package org.anyframe.plugin.fileupload.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import org.anyframe.plugin.fileupload.FileMeta;
import org.anyframe.plugin.fileupload.File... |
package UI;
import Service.Impl.LoanTypeImp;
import com.sun.corba.se.impl.io.TypeMismatchException;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.HeadlessException;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.eve... |
public class Client {
public Response echoRequest(Request request){
Handler handler1 = new ConcreteHandler1();
Handler handler2 = new ConcreteHandler2();
Handler handler3 = new ConcreteHandler3();
handler1.setNextHandler(handler2);
handler2.setNextHandler(handler3);
... |
package com.beetle.kefu.model;
import com.google.code.p.leveldb.LevelDB;
/**
* Created by houxh on 16/5/3.
*/
public class ConversationDB {
public static int getNewCount(long appid, long uid) {
LevelDB db = LevelDB.getDefaultDB();
try {
String key = String.format("news_%d_%d", appid... |
package com.tencent.mm.plugin.remittance.bankcard.ui;
import com.tencent.mm.ab.l;
import com.tencent.mm.plugin.remittance.bankcard.a.i;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.wallet_core.c.h.a;
class BankRemitHistoryUI$5 implements a {
final /* synthetic */ BankRemitHistoryUI mvI;
fi... |
package model;
import java.util.List;
/**
* Created by 11437 on 2017/12/22.
*/
public class Feedback {
private String userid;
private String token;
private int feedback_num;
private List<Attitude> feedbacks;
public Feedback(String userid,String token,int feedback_num,List<Attitude>feedbacks){
... |
package cz.root.rohlik.jobs;
import cz.root.rohlik.service.RohlikService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Sched... |
package org.denevell.natch.jsp.uitests;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.seleniu... |
package com.shu.wyf.wyfgraduationproject;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebViewClient;
... |
package com.ntil.habiture;
/**
* Created by GawinHsu on 5/18/15.
*/
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AlphaAnimation;
import android.widget.BaseAdapter;
import android.wi... |
package pers.crazymouse.algorithm.visualizer;
import javafx.animation.FillTransition;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.scene.input.MouseButton;
import javafx.sc... |
package com.teketik.test.mockinbean;
/**
* Public bridge of {@link MockInBeanTestExecutionListener}.
* @author Antoine Meyer
*/
public abstract class MockInBeanTestExecutionListenerBridge extends MockInBeanTestExecutionListener {
}
|
package com.tencent.mm.e.b;
import android.os.Message;
import com.tencent.mm.e.b.h.a;
import com.tencent.mm.sdk.platformtools.ag;
import com.tencent.mm.sdk.platformtools.x;
class h$a$1 extends ag {
final /* synthetic */ h bFb;
final /* synthetic */ a bFc;
h$a$1(a aVar, h hVar) {
this.bFc = aVar;
... |
package com.goodhealth.framework.junit;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.goodhealth.framework.entity.user.BaseUser;
import com.goodhealth.framework.entity.user.UserContextEntity;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.slf4j.Logg... |
package LeetCode.Backtracking;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class letterCombinationsOfPhoneNumber {
HashMap<String, String> map = new HashMap<>(){{
put("2", "abc");
put("3", "def");
put("4", "ghi");
put("5", "jkl");
put("6", "mno");
put(... |
package com.just.library;
/**
* Created by cenxiaozhong on 2017/6/10.
* 这个接口主要是服务 WebViewClient , 处理一些常用固定的业务的
*/
public interface IWebClientHelper {
}
|
package com.fuicuiedu.idedemo.mosbydemo.mosby;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.fuicuiedu.idedemo.mosbydemo.R;
import com.hannesdorfmann.mosby.mvp.MvpActivity;
import butterknife.B... |
package test.main;
public class MainClass02 {
public static void main(String[] args) {
double num1=10.1;
Double num2=10.2;
double result1=num2+10;
double result2=num1+num2;
Double result3=num1+num2;
// 10.2 => "10.2"
String result4=num2.toString();
// "99.9" => 99.9
double result5=Double.pars... |
package com.yunhe.billmanagement.entity;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 供应商应付欠款表(ymy)
* </p>
*
* @author 杨明月
* @since 2019-01-02
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public cl... |
package com.tencent.mm.svg;
import android.os.Looper;
import java.util.HashMap;
import java.util.LinkedList;
final class a<T> {
private HashMap<Looper, LinkedList<T>> teC = new HashMap();
private LinkedList<T> teD = new LinkedList();
a() {
}
protected final synchronized T cof() {
T t;
... |
package at.ebinterface.validation.web.pages.resultpages;
import java.io.IOException;
import java.io.OutputStream;
import javax.annotation.Nullable;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apach... |
package com.example.cardview;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Toast;
import java.uti... |
package com.mhsn.linkedList.search;
import com.mhsn.linkedList.LinkedListUtils;
import com.mhsn.linkedList.MyLinkedList;
import com.mhsn.linkedList.Node;
public class NthElementFromEnd {
public static Node findNthElementFromTheEnd(Node head, int nthPosition){
Node fastNode = head;
Node slowNod... |
package com.ifli.mbcp.service.impl;
import java.io.Serializable;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
... |
package org.zqu.yiban.schedule.interceptor;
import org.apache.log4j.Logger;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import org.zqu.yiban.schedule.util.FrameUtil;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle... |
package com.example.liuyuhua.cainiaonews.activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.util.LruCache;
import android.view.View;
import android.webkit.WebResourceResponse;
import android... |
package com.spower.business.interview.service.dao;
import java.util.List;
import com.spower.basesystem.common.command.Page;
import com.spower.basesystem.common.service.dao.ICommonDao;
import com.spower.business.interview.command.InterviewQueryInfo;
import com.spower.business.interview.valueobject.Interview;
/... |
package mouse.shared.messages.serverToClient;
/**
* Created by Florian on 2014-04-12. Adapted to ServerToClient Differentiation
* by Kevin 20014-06-17
*/
public class GameOverMessage extends ServerToClientMessage {
private int winner;
public GameOverMessage(int winner) {
this.winner = winner;
... |
package com.tencent.mm.plugin.appbrand.widget.input;
import android.graphics.Rect;
import android.text.Editable;
import android.text.Selection;
import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.widget.EditText;
import com.tencent.mm.plugin.appbrand.page.p;
import com.tencent.mm.p... |
package eu.precode.TestApp.services;
import eu.precode.TestApp.models.User;
import eu.precode.TestApp.models.Role;
import eu.precode.TestApp.repo.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;... |
package com.beiyelin.projectportal.entity;
import com.beiyelin.commonsql.jpa.BaseItemEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import ... |
package com.example.demcom.wheter.dialogs;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.widget.TextView;
import com.example.demcom.wheter.R;
import com.example.demcom.wheter.common.Constants;
import com.example.demcom.wheter.enums.SectionEnum;
import com.example.dem... |
package services;
import dao.QuestionsDao;
import models.UserQuestion;
import java.util.*;
/**
* Created by sabinapokhrel on 3/29/17.
*/
public class QuestionsDBServiceProvider {
/** This methos gets all the questions from the database as an arrayList of UserQuestion objects,
* and returns a string in a speci... |
package material.components;
import processing.core.*;
import material.events.*;
import material.util.MaterialColor;
public class Slider extends _InteractiveComponent implements TouchListener
{
protected int start, end;
public int value;
public Slider(int start, int end, int value) {
this.setTouchListener(this... |
package org.apex.main;
public class ReadFileMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
ReadFile readFile = new ReadFile();
readFile.reading();
readFile.freqCount();
}
} |
package br.com.nozinho.model;
public enum FormaContatoEnum {
EMAIL("Email"), TELEFONE("Telefone"), REDE_SOCIAL("Rede Social"), OUTROS("Outros");
private String descricao;
private FormaContatoEnum(String descricao){
this.descricao = descricao;
}
public String getDescricao(){
return descricao;
}
}
|
package com.lukian.customermicroservice.repository;
import com.lukian.customermicroservice.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface CustomerRepository extends JpaRepository<Customer, Integer> {
Optional<Customer> findCustomerByCred... |
package com.tencent.mm.plugin.sight.decode.a;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class b$3 implements Runnable {
final /* synthetic */ b ncT;
final /* synthetic */ double ncU;
public b$3(b bVar, double d) {
this.ncT = bVar;
this.ncU = d;... |
package com.choosedormitory;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
/**
* Created by amoshua on 17/12/2017.
*/
public class FinishActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle ... |
package structuralPatterns.proxyPattern;
public class GamePlayer implements IGamerPlayer{
private String name;
public GamePlayer(String name) {
this.name = name;
}
@Override
public void login(String user, String password) {
System.out.println("user " + user + "login by "+this.name... |
package com.tencent.mm.plugin.setting.ui.setting;
import com.tencent.mm.kernel.g;
import com.tencent.mm.modelsimple.r;
import com.tencent.mm.sdk.platformtools.al.a;
class SettingsUI$10 implements a {
final /* synthetic */ r mRf;
final /* synthetic */ SettingsUI mUx;
SettingsUI$10(SettingsUI settingsUI, r... |
package com.jim.multipos.ui.product_last.fragment;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.jim.mpviews.MpButton;
import com.jim.mpviews.MpCheckbox;
import com.jim.mpviews.MpEditText;
import com.j... |
package com.example.hbase.utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;
/**
* Created by DuJunchen on 2017/4/19.
*/
@Component
public class KafkaUtil {
private final KafkaTemplate templ... |
package com.magic.utopia.entity.user;
import lombok.Data;
/**
* <p>
*
* </p>
*
* @author Feri
* @since 2019-11-12
*/
@Data
public class UserLevel {
private Integer id;
/**
* 会员id
*/
private Integer uid;
/**
* 会员等级 1最低
*/
private Integer level;
/**
* 积分
... |
public class MarsRover
{
public static class Coordinates
{
public int x;
public int y;
public char dir;
public Coordinates(int x , int y , char dir)
{
this.x = x;
this.y = y;
this.dir = dir;
}
}
public static void mai... |
package com.p4square.ccbapi.exception;
import com.p4square.ccbapi.model.CCBErrorResponse;
import java.util.List;
/**
* CCBErrorResponseException is thrown when the CCB API returns one or more error responses.
*/
public class CCBErrorResponseException extends CCBException {
private final List<CCBErrorResponse> ... |
package com.trs.om.CustomAuthorization;
import com.trs.om.CustomAuthorization.bean.AccessToken;
import com.trs.om.dao.GenericDAO;
import com.trs.om.generic.GenericQBCService;
public interface AccessTokenService extends GenericQBCService<AccessToken, Long> {
}
|
package cl.triggers.security.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity(name="PROFESIONAL")
public class Profesional {
@Id
@Column(name="PROFRUN")
private int prof_runUsuario;
@Column(name="PROFTITULO")
private String titulo;
@Column(name=... |
/*******************************************************************************
* Copyright (c) 2012, 2018 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribu... |
package nowcoder;
import java.lang.reflect.Field;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @Author: Mr.M
* @Date: 2019-03-08 14:46
* @Description: 第一个只出现一次的字符
**/
public class T34 {
public static int FirstNotRepeatingChar(String str) {
LinkedHashMap<Character,Integer> linkedHashMap = new Lin... |
package com.tfjybj.integral.provider.controller;
import com.dmsdbj.cloud.tool.business.IntegralResult;
import com.dmsdbj.itoo.sso.utils.UserUtil;
import com.tfjybj.integral.model.DingIntegralModel;
import com.tfjybj.integral.model.DingMonthDetailIntegralModel;
import com.tfjybj.integral.model.LoginResultModel;
import ... |
package es.coritel.codington.festival.daos;
import java.util.List;
import java.util.Optional;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.NonUniqueResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org... |
package lk.cmb.ucsc.drivingschool.converters;
import lk.cmb.ucsc.drivingschool.commands.TeacherForm;
import lk.cmb.ucsc.drivingschool.model.Teacher;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
@Component
public class TeacherToTeacherForm implements Co... |
package com.allianz.ExpenseTracker.Reports;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import org.jfree.ui.Refiner... |
package ch.ubx.startlist.client.ui;
import com.google.gwt.user.client.ui.FocusWidget;
import com.google.gwt.user.datepicker.client.DateBox;
public class DateBox2 extends DateBox {
public DateBox2() {
super();
}
public FocusWidget getFocusWidget() {
return (FocusWidget) getWidget();
}
}
|
package com.spbsu.flamestream.runtime.edge;
import com.spbsu.flamestream.core.data.meta.EdgeId;
import com.spbsu.flamestream.core.data.meta.GlobalTime;
import java.util.function.Consumer;
/**
* User: Artem
* Date: 15.11.2017
*/
public interface Front {
void onStart(Consumer<Object> consumer, GlobalTime from);
... |
package clases;
import javax.swing.JOptionPane;
/**
*
* @author codemcmhome
*/
public class Lista {
Nodo principal;
public Lista(){
principal = null;
}
public void insertarNodo(String nombre){
Nodo nombreNuevo = new Nodo(nombre);
if(princ... |
package com.cskaoyan.bean;
import java.util.Date;
/**
* 工艺计划表
* @Author cly
*/
public class TechnologyPlan {
private String technologyPlanId;
private String technologyId;
private Integer batchAmount;
private String startPlan;
private String endPlan;
private String commitPlan;
private St... |
package com.ehootu.census.service.impl;
import com.ehootu.census.dao.CensusApprovalMapper;
import com.ehootu.census.dao.CensusApprovalSetMapper;
import com.ehootu.census.dao.CensusRegisterAttachmentMapper;
import com.ehootu.census.dao.CensusRegisterMapper;
import com.ehootu.census.model.CensusApproval;
import com.ehoo... |
package backjoon.dp_minpath;
import java.io.*;
import java.util.Stack;
import java.util.StringTokenizer;
public class Backjoon14002 {
private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static final BufferedWriter bw = new BufferedWriter(new OutputStreamWrit... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package discountstrategylab2;
/**
*
* @author Spark
*/
public class StartUp {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
CashRe... |
package com.commercetools.pspadapter.payone.util;
import io.sphere.sdk.payments.PaymentMethodInfo;
public final class PayoneConstants {
/**
* Mostly used as {@link PaymentMethodInfo#getPaymentInterface()}
*/
public static final String PAYONE = "PAYONE";
private PayoneConstants() {
}
}
|
package org.denevell.natch.jsp.threads.list;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.PageContext;
import org.denevell.natch.io.threads.ListThreadsResource;
import org.denevell.natch.jsp.ForumDao;
import org.denevell.natch.jsp.ForumDao.Objec... |
package com.eres.waiter.waiter.viewpager.service;
import android.util.Log;
import com.eres.waiter.waiter.app.App;
import com.eres.waiter.waiter.server.NotificationData;
import com.eres.waiter.waiter.viewpager.helper.ObservableCollection;
import com.google.gson.JsonSyntaxException;
import java.io.IOException;
import... |
package pages;
import drivers.DriverContext;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import io.appium.java_client.pagefactory.AndroidFindBy;
import io.appium.java_client.pagefactory.AppiumFieldDecorator;
import io.qameta.allure.model.Status;
import org.openqa.selenium.sup... |
package cn.edu.zucc.music.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public interface PlotService {
public Map<Integer,Integer> getPerYearSongCount();
public int[] getMusicDistributed();
}
|
package modele;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Bdd
{
private String serveur, bdd, membre, mdp ;
private Connection maConnexion ;
public Bdd(String serveur, String bdd, String membre, String mdp) {
this.serveur = serveur;
thi... |
package com.question.controller;
import com.alibaba.fastjson.JSONObject;
import com.question.model.Selections;
import com.question.service.SelectionsService;
import com.question.util.BaseController;
import com.question.util.CommonUtil;
import com.question.util.EnumUtil;
import org.springframework.beans.factory.annotat... |
package models;
import org.hibernate.annotations.Cascade;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "categories")
public class Category {
private int id;
private String categoryName;
private List<Advert> adverts;
public Category() {
}
... |
package com.klg.newpolice.ui.aboutchild;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.