text stringlengths 10 2.72M |
|---|
package controllers;
import models.Catalog;
import models.Store;
import play.mvc.Controller;
public class EstaticasController extends Controller {
public static void vision() {
render();
}
} |
import java.util.Scanner;
public class c {
public static Scanner get = new Scanner (System.in);
public void declaration (){
System.out.println("This program will determine if a string is a palindrome or not.");
System.out.print("Enter word: ");
String input = get.next();
palindrome... |
package controleur;
import java.util.ArrayList;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import interfaceConstantes.AffichageConstantes;
import modele.*;
import vue.VueChoixTraitements;
import vue.VueGestionAlbums;
public class ControleurVueGestionAlbums extends MouseAdapt... |
package edu.jspiders.setterinjection.util;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import edu.jspiders.setterinjection.beans.Pen;
public class SetterUntil
{
public static void main(String[] args)
{
// Create the Container
ClassPathXmlApplicationContext context =
... |
package com.example.flight_reservation.controller;
import java.sql.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.ann... |
package com.ejsfbu.app_main.DialogFragments;
import android.content.Context;
import android.content.Intent;
import android.graphics.Point;
import android.os.Bundle;
import android.view.Display;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
imp... |
package com.pizzahouse.model;
import java.util.List;
public class OrderProductListContainer {
private List<OrderProduct> orderProductlist;
public List<OrderProduct> getOrderProductlist() {
return orderProductlist;
}
public void setOrderProductlist(List<OrderProduct> orderProductli... |
public class EscapeCard extends WildCard{
public EscapeCard(String cardName) {
super(cardName);
}
public void execute(Player player) {
}
} |
package com.example.netty;
import com.example.netty.handler.TimeServerHandler;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEv... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.xiaomi;
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.streaming.api.java.JavaStreamingContext;
import scala.Tuple2;
import java.util.Arrays;
import java.u... |
package com.tencent.mm.ui;
import com.tencent.mm.sdk.platformtools.x;
class MMNewPhotoEditUI$1 implements Runnable {
final /* synthetic */ MMNewPhotoEditUI tnX;
MMNewPhotoEditUI$1(MMNewPhotoEditUI mMNewPhotoEditUI) {
this.tnX = mMNewPhotoEditUI;
}
public final void run() {
x.i("Micro... |
package controller;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import javax.ser... |
package com.design.pattern.abstractFactory.btn;
/**
* @author zhangbingquan
* @desc Linux系统下的按钮实现类,提供点击操作
* @time 2019/7/28 18:34
*/
public class LinuxButton implements Button {
@Override
public void click() {
System.out.println("一个Linux系统下的按钮,提供点击操作");
}
}
|
package com.example.shoaib.drawing;
/**
* Created by shoai on 22/05/2016.
*/
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.... |
package exercise2;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.con... |
package com.spbsu.flamestream.core.graph;
import java.io.Serializable;
public interface SerializableFunction<T, R> extends java.util.function.Function<T, R>, Serializable {
}
|
package domain;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import j... |
package se.kb222vt.endpoint;
import com.google.gson.Gson;
import se.kb222vt.app.Application;
import se.kb222vt.logic.SearchEngineLogic;
import spark.Request;
import spark.Response;
import spark.Route;
public class SearchController {
private static Gson gson = new Gson();
private static SearchEngineLogic logic = n... |
package com.flute.atp.common;
public final class TypeSafeKeys {
// static enum StringKeys implements MetaDataKey<String>
// {
// A1("key1");
//
// private final String value;
//
// StringKeys(String value) { this.value = value; }
//
// @Override
// public String getValue() { r... |
public class CategoryTest {
}
|
package com.cpz.chen01;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
int sum=0;
for (int i=0;i<=100;i++){
if (i%2==0){
sum+=i;
}
}
System.out.println(sum);
demo();
}
private static... |
package pl.finapi.spring;
import static org.springframework.beans.factory.config.ConfigurableBeanFactory.SCOPE_SINGLETON;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Properti... |
package mod.coda.ambients.client.renderer;
import javax.annotation.Nullable;
import mod.coda.ambients.client.model.ModelBat;
import mod.coda.ambients.common.entity.EntityBat;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.enti... |
/*
* 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 servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import java... |
package pp_fp04.exchange;
import com.company.Expenses;
public class CurrencyRates {
public static double[][] TaxMatrix = new double[][]{{1.00000, 0.76900, 96.1141, 0.67131},
{1.30030, 1.00000, 124.989, 0.87290},
{96.06148, 125.00000, 1.00000, 143.26648}};
private static double ValorDo... |
package ro.redeul.google.go.refactoring.introduce;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
import ro.redeul.google.go.FileDataBasedTest;
import ro.redeul.google.go.lang.psi.GoFile;
public abstract class AbstractIntroduceTest extends FileDataBasedTest {
protected abs... |
package com.nju.edu.cn.dao;
import com.nju.edu.cn.entity.Futures;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* Created by shea on 2018/9/7.
*/
@Repository
public interface FuturesRepository extends JpaRepository<Futures,Long> {
}
|
package com.example.project_redbus;
public class Example {
private String mText;
private String mText1;
private String mText2;
private String mText3;
public Example(String text, String text1, String text2, String text3) {
mText1 = text1;
mText2 = text2;
mText=text;
mText3 ... |
package game;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JComponent;
public class ElementsDrawPanel extends JComponent {
private static final long serialVersionUID = 1L;
private final Color BAR_COLOR = new Color(200, 21, 0); // ... |
public class BodyMass
{
double weight;
double height;
double bmi;
public BodyMass(double w, double h)
{
weight = w;
height = h;
}
public void setWeight(int w)
{
weight = w;
}
public void setHeight(int h)
{
height = h;
}
public double getBMI()
{
bmi = weight * 703/(height * height);
ret... |
package com.example.onlineshop.view.activities;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Inten... |
package com.example.todolist.Di.Modules;
import android.content.Context;
import com.example.todolist.Utils.ScheduleNotification;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
@Module
public class ScheduleNotificationModule {
@Singleton
@Provides
public ScheduleNotificati... |
class TaskTwo
{
public static void main(String args[])
{
String a = args[0];
String b = args[1];
String c = args[2];
double d =Double.parseDouble(a);
double e =Double.parseDouble(b);
double f =Double.parseDouble(c);
System.out.println(d+e+f);
}
} |
/*
* Copyright 2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package Server;
import DB.DBUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import henu.wh.checkbygps.role.User.*;
import java.io.*;
import java.net.Socket;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
public class ServerThread extends Thread {
... |
package org.tinyspring.core.type.classreading;
import org.tinyspring.core.io.Resource;
import org.tinyspring.core.type.AnnotationMetadata;
import org.tinyspring.core.type.ClassMetadata;
/**
* @author tangyingqi
* @date 2018/7/18
*/
public interface MetadataReader {
Resource getResource();
ClassMetadata g... |
package com.xp.template.framework.net;
import com.xp.template.framework.net.callback.CallBack;
import com.xp.template.framework.net.callback.DefaultCallBack;
import com.xp.template.framework.utils.Logger;
import java.io.IOException;
import java.util.List;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.... |
/**
* @author XiongJie, Date: 13-11-11
*/
package net.happyonroad.component.core;
import net.happyonroad.component.container.*;
import net.happyonroad.spring.support.DefaultServiceHelper;
import net.happyonroad.spring.service.ServiceRegistry;
import org.springframework.context.ApplicationContext;
import java.util.... |
package WebDrive;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class WikipediaSearchPage_TestDef {
final static String INPUT_ADDRESS = "//input[@name='search']";
// final static String CONTENT_ADDRESS = "//body";... |
package com.example.leosauvaget.channelmessaging.channels;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.example.leosauvaget.channelmessaging.R;
import com.example.leosauvaget.channelmessaging.... |
package com.maweiming.wechat.bot.model.contact;
import com.alibaba.fastjson.annotation.JSONField;
import com.maweiming.wechat.bot.model.initialization.BaseResponse;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.List;
/**
* ... |
package allst.sb.allstsbadvances.service;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
/**
* 定时任务Service
* @author June 2019/01/31 上午 12:55
* @version 1.0
*/
@Service
public class ScheduledService {
/**
* * 表示任何时候
* second(秒), minute(分),... |
import java.lang.Math;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public final class Boid_Maths
{
/**
* private empty constructor to prevent this class from being instantiated. it would not make sense to instantiate one maths.
* this class is just a collection of methods ... |
package com.example.userportal.controller;
import com.example.userportal.requestmodel.ShoppingCartUpdateRequest;
import com.example.userportal.service.ShoppingCartService;
import com.example.userportal.service.dto.ShoppingCartPositionDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... |
/*
* Mivvi - Metadata, organisation and identification for television programs
* Copyright (C) 2004, 2005, 2006, 2010 Joseph Walton
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation... |
package com.greenlyte712;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
public class Room {
private int roomNumber;
private BigDecimal nightlyRentAmount;
private LocalDate startDate;
private LocalDate endDate;
private l... |
package ru.kappers.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ru.kappers.model.User;
import java.util.List;
public interface UsersRepository extends JpaRepository<User, Integer> {
User getByName(String name);
List<User> getAllByRoleId(int roleId);
User getByUserName(... |
package user;
public enum TokenResponse {
ValidAdmin,
ValidAttendee,
TokenDoesNotExist;
}
|
package io.macgyver.neorx.impl;
import io.macgyver.neorx.Row;
import java.util.Iterator;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.google.common.base.Preconditions;
public class RowIterator implements Iterator<Row> {
Iterator<JsonNode> iterato... |
package com.example.myreadproject8.greendao.gen;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
imp... |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
class TestJDBCj
{
public static void main(String[] args)
{
Connection connection = null;
Statement statement = null;
... |
package com.ad.system.utils;
import org.apache.commons.lang3.StringUtils;
public class UrlUtils {
public static String getCurrentURI(String currentUrl, String contextName) {
if (!StringUtils.isBlank(contextName)) {
currentUrl = currentUrl.substring(currentUrl.indexOf(contextName) + contextName... |
/**
* MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT
*
* Copyright (c) 2010-11 The Trustees of Columbia University in the City of
* New York and Grameen Foundation USA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
package UI;
import java.awt.Color;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import jpcap.NetworkInterface;
import jpcap.NetworkInterfaceAddress;
public class MyLabel extends JLabel{
private String labelName;
private String addressDescription;
public MyLabel(NetworkInterface n) {
super();
... |
import java.util.Scanner;
public class LeapYear {
public static void main(String[] args) {
//输入年份判断是否是闰年
Scanner scan = new Scanner(System.in);//输入
int year = scan.nextInt();
if((year%4==0 && year%100!=0 ) || (year % 400==0)) {
System.out.println("闰年");
}
else {
System.out.println("不是闰年");... |
package com.kaldin.user.register.dao;
import com.kaldin.user.register.dto.RegisterDTO;
import java.util.List;
public abstract interface RegisterInterface
{
public abstract boolean save(RegisterDTO paramRegisterDTO);
public abstract List<?> show();
public abstract boolean update(RegisterDTO para... |
package DataStructure;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Scanner;
public class UsingLinkedList {
public static void main(String[] args) {
LinkedList<String> list = new LinkedList<String>();
Scanner input = new Scanner(System.in);
System.out.println("How Ma... |
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int x,y;
int d;
cin>>x>>y;
d=sqrt(pow((x-3),2)+pow((y-4),2));
cout<<d;
//Type your code here.
} |
/*
* 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 Entidades;
/**
*
* @author rosemary
*/
public class entDetallePoda {
private int id_det_poda;
private int id_cabec... |
import java.util.Scanner;
public class swimming {
public static void main(String [] args) {
ask();
}
//This function asks the user for the classification for the event and the team country and the category of each swimmer.
public static void ask() {
int maximum;
int[] points = {0,0,0,0};
int point = 0;
... |
package resusablemethods;
import java.util.List;
import java.util.UUID;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebElement;
import com.gargoylesoftware.htmlunit.javascript.host.Window;
import actions.Actions;
import io.appium.java_client.android.... |
package ar.edu.unlam.tallerweb1.modelo;
import static org.junit.Assert.*;
import java.util.List;
import org.hibernate.Session;
import static org.assertj.core.api.Assertions.assertThat;
import org.hibernate.criterion.Restrictions;
import org.junit.Test;
import org.springframework.test.annotation.Rollback;
impo... |
package cl.jdomynyk.pulent.presentation.views.detail;
import android.content.Context;
import java.lang.ref.WeakReference;
import java.util.List;
import javax.inject.Inject;
import cl.jdomynyk.pulent.domain.Track;
import cl.jdomynyk.pulent.domain.interactor.UseCaseFactory;
import cl.jdomynyk.pulent.presentation.view... |
package com.passing.util;
import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
public class LogUtil {
public static Logger log = Logger.getLogger(LogUtil.class);
public void beforeMethodLog(JoinPoint jp) {
Object[] para = jp.getArgs();
String className = jp.getTarget().getClass().get... |
import controllers.WestminsterRentalVehicleManager;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class DeleteVehicleTest {
@InjectMocks
WestminsterRentalVehicleM... |
package za.co.edusys.domain.model;
/**
* Created by marc.marais on 2017/02/09.
*/
public enum Role {
SUPERADMIN,
ADMIN,
PARENT,
PUPIL,
TEACHER
}
|
package lpapps.ers.main;
/**
*
* @author Laurence Parker
*
*/
public class UI {
public static void fullMenu() {
mainMenu();
dateMenu();
dateConstructorMenu();
dateTransformerMenu();
dateAccessorMenu();
personMenu();
personConstructorMenu();
personTransformerMenu();
personAccessorMenu();
empl... |
package com.tencent.mm.plugin.appbrand.ui;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.widget.TextView;
import com.tencent.mm.plugin.appbrand.report.a.j$a;
import com.tencent.mm.plugin.appbrand.report.a.j.b;
import com.tencent.mm.plugin.appbrand.s.g;
import com.tencent.mm.plugin.appbrand.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package core.fuzzy;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
*
* @author User
*/
public class useles... |
package com.cmpickle.volumize.view.settings;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.Fragment;
import com.cmpickle.volumize.R;
import com.cmpickle.volumize.view.TopLevelActivity;
/**
* @author Cameron Pickle
* Copyright (C) Cameron Pickle (cmpick... |
package com.tencent.mm.plugin.sns.ui.b;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.sns.b.c;
import com.tencent.mm.plugin.sns.data.b;
import com.tencent.mm... |
package com.serenskye.flickrpaper.constants;
/**
* Created by IntelliJ IDEA.
* User: seren
* Date: 23/08/12
* Time: 16:47
*/
public class FileName {
public final static String APP_PATH_USER_SAVED = "/Papercloud/Papercloud/";
public static final String INTERNAL_BITMAP ="wallpaper";
public static final String E... |
/**
*
*/
package taller.excepciones;
/**
* @author agonzalez
*
*/
@SuppressWarnings("serial")
public class ErrorNumeroDePrioridades extends Exception {
/**
*
*/
public ErrorNumeroDePrioridades() {
// TODO Auto-generated constructor stub
}
/**
* @param message
*/
public Err... |
package huawei;
import java.util.Scanner;
/**
* @author kangkang lou
* <p>
* 计算最少出列多少位同学,使得剩下的同学排成合唱队形
* <p>
* 说明:
* <p>
* N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学排成合唱队形。
* 合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1,2…,K,他们的身高分别为T1,T2,…,TK, 则他们的身高满足存在i(1<=i<=K)使得T1<T2<......<Ti-1<Ti>Ti+1>......>TK。
* 你的任务是,已知所有N位同学的身高,计算... |
package oicq.wlogin_sdk.request;
import android.content.Context;
import android.os.Build;
import android.os.Build.VERSION;
import oicq.wlogin_sdk.a.g;
import oicq.wlogin_sdk.tools.util;
public final class b {
private static /* synthetic */ int[] vHT;
private Context mContext = null;
public i vHK = new i()... |
package my.app.platform.domain;
/**
* @author 夏之阳
* 创建时间:2016-05-04 21:37
* 创建说明:操作记录
*/
public class OptionRecord {
/**
* 用户id
*/
private String uid;
/**
* 操作
*/
private String option_detail;
/**
* 操作类别
*/
private String option_class;
/**
* 操作时间
... |
package Relation;
import DifferentiatedHistory.History;
import DifferentiatedHistory.HistoryItem;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
public class HappenBeforeO extends PoSetMatrix {
public int oIndex;
publi... |
/*
* Sonar, open source software quality management tool.
* Copyright (C) 2009 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either... |
package com.osce.orm.biz.training.structure.student;
import com.osce.dto.biz.training.structure.student.StudentDepartDto;
import com.osce.dto.biz.training.structure.student.StudentDto;
import com.osce.dto.common.PfBachChangeStatusDto;
import com.osce.entity.OrgGrade;
import com.osce.vo.biz.training.structure.student.S... |
package lesson8.prob2;
import java.util.function.Supplier;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
// Q1
Supplier<Double> x = Math::random;
System.out.println(x.get());
// Q2
Supplier<Double> y = () -> Math.random();
System.out.printl... |
package com.kinfoitsolutions.ebooks.ui.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widge... |
import java.util.*;
public class NumberOfEmployees {
class IntervalComparator implements Comparator<int[]> {
@Override
public int compare(int[] a, int[] b) {
if (a[0] == b[0]) {
return b[1] - a[1];
}
return a[0] - b[0];
}
}
public List<Interval> process(List<int[]> interval... |
package com.cos.blog2.repository;
import com.cos.blog2.model.User;
//mapper가 스캔하기 때문에 어노테이션을 안써도 메모리에 뜸
public interface UserRepository {
public void save(User user);
public User login(User user);
}
|
package com.projet3.library_webapp.library_webapp_model.user;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;
import javax.xml.ws.RequestWrapper;
import javax... |
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package cn.jboa.entity;
import java.io.Serializable;
public class Employee implements Serializable {
private static final long serialVersionUID = 1035721299787840813L;
private String sn;
private Strin... |
package com.supconit.kqfx.web.device.daos;
import java.util.List;
import com.supconit.kqfx.web.device.entities.DeviceInfo;
public interface DeviceInfoDao{
/**
* 获取单个设备的信息
* @param device
* @return
*/
DeviceInfo getDeviceInfo(DeviceInfo device);
/**
* 获取某个治超站的所有设备的ID
*/
List<DeviceInfo> getStationA... |
package grades;
import java.util.HashMap;
import java.util.Scanner;
public class GradesApplication {
public static HashMap<String, Student> students = new HashMap<>();
public static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
application();
}
public sta... |
import java.util.Objects;
public abstract class AbstractWorker {
protected String name;
protected String organization;
protected double coefficient;
public AbstractWorker() {
}
public AbstractWorker(String name, String organization, double coefficient) {
this.name = name;
thi... |
package com.smxknife.cglib.beancopier.copier;
import net.sf.cglib.beans.BeanCopier;
public class Main {
public static void main(String[] args) {
Entity entity = new Entity();
entity.setName("test");
entity.setPassword("12346");
Model model = new Model();
BeanCopier beanCo... |
package com.geektech.androidthree.ui.weather;
import com.geektech.androidthree.R;
import com.geektech.androidthree.ui.base.BaseWeatherFragment;
public class WeatherFragment extends BaseWeatherFragment {
@Override
protected Integer getResId() {
return R.layout.fragment_weather;
}
}
|
package com.goldgov.gtiles.module.businessfield.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.goldgov.gtiles.core.dao.mybatis.annotation.MybatisRepository;
import com.goldgov.gtiles.module.businessfield.service.BusinessTable;
import com.goldgov.gtiles.module.businessfield... |
/*
* 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 modle;
import java.util.Date;
import javafx.beans.property.SimpleStringProperty;
import pojo.Application;
import pojo.Otheriti... |
package kafka;
import kafka.admin.AdminUtils;
import kafka.utils.ZkUtils;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.common.security.JaasUtils;
import java.util.Array... |
package com.tencent.mm.plugin.appbrand.jsapi;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.tencent.mm.plugin.appbrand.ipc.MainProcessTask;
import com.tencent.mm.plugin.appbrand.l;
import com.tencent.mm.sdk.f.e;
import com.tencent.mm.sdk.platformtools.bi;
import java.util.ArrayList;
class... |
package com.mygdx.GameObjects;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.TimeUtils;
import com.mygdx.Global.Constants;
i... |
package com.tencent.tencentmap.mapsdk.a;
import java.util.HashMap;
import java.util.Map;
public final class fm extends gc {
private static Map c;
public Map a = null;
public int b = 0;
public final void a(ga gaVar) {
if (c == null) {
c = new HashMap();
c.put(Integer.va... |
package com.appatstudio.snakerpg;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
/**
* Created by pat on 01.05.2018.
*/
public class SnakeHead extends Image {
public int tier;
public int class1mele;
public int posX;
public int posY;
public float tilesize;
public int twoMovesBack1Left2U... |
package com.fastjavaframework.listener;
import org.springframework.context.ApplicationContext;
public class SystemSet extends ContextLoader {
@Override
public void runBeforeContext(ApplicationContext context) {
String projectPath = getClass().getResource("/").getFile().toString();
String[] projectPaths = proje... |
package com.tencent.xweb.x5;
import android.graphics.Bitmap;
import android.view.View;
import android.webkit.WebChromeClient.CustomViewCallback;
import com.tencent.smtt.sdk.WebView;
import com.tencent.xweb.c.f;
import com.tencent.xweb.e;
public final class i implements f {
c vDK = new c();
b vDL = new b();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.