text stringlengths 10 2.72M |
|---|
/*
* 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.
*/
import entites.CGraph;
import entites.CNode;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.... |
package org.openfuxml.renderer.text.table;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import org.openfuxml.exception.OfxAuthoringException;
import org.openfuxml.factory.xml.table.OfxTableFactory;
import org.openfuxml.factory.xml.table.TestTableFactory;
import org.openfuxml.renderer.te... |
package com.example.android.customerapp.ui.account;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx... |
package com.dao;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;
import com.beans.Book;
@Repository... |
package evm.dmc.core.api;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import evm.dmc.core.api.back.HasMultiAttributes;
import evm.dmc.core.api.back.Plottable;
import evm.dmc.core.api.back.data.DataModel;
import evm.dmc.core.api.exceptions.DataOperationException;... |
package com.insta.controllers;
import java.security.Principal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... |
package chapter14;
import java.util.ArrayList;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
public class Exercise14_03 extends Application {
@Override
... |
package shapes;
import java.awt.*;
/**
* Created by TAWEESOFT on 4/28/16 AD.
*/
public class Circle extends Shape{
private int r;
private Color color;
public Circle(int x, int y, int r, Color color) {
this.x = x;
this.y = y;
this.r = r;
this.color = color;
}
pub... |
package br.org.funcate.glue.event;
import java.util.EventObject;
@SuppressWarnings("serial")
public class CanvasDrawEvent extends EventObject {
private boolean clearCache;
public CanvasDrawEvent(Object source, boolean clearCache) {
super(source);
this.clearCache = clearCache;
}
public boolean isClearCache... |
package com.odm.managesystem.controller;
import com.alibaba.fastjson.JSONObject;
import com.odm.managesystem.service.InitPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody... |
package com.ehootu.park.service.impl;
import com.ehootu.park.dao.ExplosiveStatisticsDao;
import com.ehootu.park.model.ExplosiveStatisticsEntity;
import com.ehootu.park.model.PublicInformationEntity;
import com.ehootu.park.service.ExplosiveStatisticsService;
import com.ehootu.park.service.PublicInformationService;
impo... |
package agents.qoagent;
import java.util.StringTokenizer;
/*
* Created on 30/05/2004
*
*/
/**
* Responsible for the generation of formatted messages for the
* automated agent
* @author raz
* @version 1.0
* @see AutomatedAgent
* @see AutomatedAgentCommunication
*/
public class AutomatedAge... |
package com.lubarov.daniel.nagger;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.lubarov.daniel.data.option.Option;
import com.lubarov.daniel.nagger.model.Alert;
import com.lubarov.daniel.nagger.model.Recipient;
import com.lubarov.daniel.nagger.storage.AlertStorage;
import com.lubarov.dan... |
/**
* Created by murat on 2017-07-13.
* Murat Ortak 125312157
*/
//import java.util.List;
//import java.util.Arrays;
//import java.util.Comparator;
//import java.util.List;
//import java.util.Map;
//import java.util.TreeMap;
//import java.util.function.Consumer;
//import java.util.function.BiConsumer;
import jdk.in... |
package com.spring.shopping.qna;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("qnaService")
public class QNAServiceImpl implements QNAService{
@Autowired(required=false)
private QNADAO qnaDAO = null;
@Override
public void wri... |
package com.zb666;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.W... |
package com.tencent.mm.plugin.fts.ui.a;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.mm.plugin.fts.a.d.a.a.a;
public class j$a extends a {
public View contentView;
public ImageView eCl;
public TextView eCm;
public TextView eCn;
final... |
package ro.siit.randomizer;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Randomizer[] randomizers = new Randomizer[5];
Thread[] randomizersThreads = new Thread[randomizers.length];
for(int i = 0; i < randomizers.length; i++){
randomizer... |
package com.example.dell.braintrainer;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import java.util.prefs.Preferen... |
package com.willowtree.camera;
import com.littlefluffytoys.littlefluffylocationlibrary.LocationInfo;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: Omar Lake
* Date: 4/16/12
* Time: 2:10 PM
* To change this template use File | Settings | Fil... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.GewichtType;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
public class GewichtTypeBuilder
{
... |
package algorithm.APSS.recursionAndBruteforce;
/*
* 알고리즘 문제해결 전략 - 172p - 순열과 조합 개인적인 공부
* 시작~끝:
* 걸린시간:
* - 맞았다! -
[간단한 해법]
[어떤 방식으로 접근했나?]
[해법을 찾는 데 결정적인 깨달음]
[다른 해결 방법이 있다면?]
* - 틀렸다! -
[오답 원인]
[다른 사람 코드 참고 -> 내가 취했던 접근 되돌아보기 -> 나는 왜 이 풀이를 떠올리지 못했나?]
*/
import java.util.*;
import java.io.*;
public cl... |
package com.tencent.mm.plugin.webview.ui.tools.fts;
import com.tencent.mm.plugin.webview.ui.tools.fts.a.b;
/* synthetic */ class a$7 {
static final /* synthetic */ int[] qfp = new int[b.bXF().length];
static {
try {
qfp[b.qfq - 1] = 1;
} catch (NoSuchFieldError e) {
}
... |
package it.unisa.objectrecognitionspark.logic;
import it.unisa.objectrecognitionspark.model.ObjectRecognitor;
import org.apache.commons.io.IOUtils;
import org.apache.hadoop.io.BytesWritable;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
impor... |
package com.android.medicaladvisor.categories;
import com.android.medicaladvisor.DiagnosisSharedPreferences;
import com.android.medicaladvisor.backend.CategoriesRepository;
import com.android.medicaladvisor.backend.RetrievingRepository;
import com.android.medicaladvisor.models.Category;
public class CategoriesPresent... |
package com.xhpower.qianmeng.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spr... |
package com.SkyBlue.hr.attendance.to;
import com.SkyBlue.common.annotation.Dataset;
import com.SkyBlue.common.to.BaseBean;
import lombok.Getter;
import lombok.Setter;
@Dataset(name="dsDayAnnual")
public class DayAnnualBean extends BaseBean{
@Setter
@Getter
private String dayAnnualSeq,empCode,startDate,endDate,cau... |
package pl.edu.agh.game.logic.skills.implementations;
import pl.edu.agh.game.logic.Direction;
import pl.edu.agh.game.logic.Level;
import pl.edu.agh.game.logic.damage.Damage;
import pl.edu.agh.game.logic.damage.DamageType;
import pl.edu.agh.game.logic.effects.FireEffect;
import pl.edu.agh.game.logic.entities.*;
import ... |
/*
* 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 Gestion.vues.InterfacesGraphiques;
import java.awt.Color;
import org.json.simple.JSONObject;
/**
*
* @author christian
*/
... |
package com.example.recycler.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
... |
package ufc.br.so.programs;
import java.util.ArrayList;
import java.util.List;
import ufc.br.so.VM.storage.ProcessorQtd;
import ufc.br.so.memory.Page;
import ufc.br.so.scheduler.impl.Scheduler;
import ufc.br.so.scheduler.model.StatisticsModule;
import ufc.br.so.scheduler.model.processor.Processor;
import ufc.br.so.sc... |
package person.config;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Created by wz2063677 on 2017/3/22.
*/
@ConfigurationProperties(prefix = "spring.redis")
@Sette... |
package com.stark.dao;
import java.util.List;
/**
* Created by Stark on 2018/4/18.
* 数据库操作类
*/
public interface Dao<Entity> {
Entity save(Entity entity);
Entity merge(Entity entity);
boolean delete(Entity entity);
boolean deleteById(String id);
Entity update(Entity entity);
Entity sav... |
package com.blog.blog.controllers;
import com.blog.blog.models.Ad;
import com.blog.blog.repositories.AdRepository;
import com.blog.blog.services.AdSvc;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBod... |
package com.tencent.mm.plugin.aa.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.plugin.aa.ui.PaylistAAUI.2;
import com.tencent.mm.protocal.c.o;
class PaylistAAUI$2$1 implements OnClickListener {
final /* synthetic */ o eEm;
final /* sy... |
package com.mysql.cj.xdevapi;
import com.mysql.cj.conf.PropertySet;
import com.mysql.cj.exceptions.AssertionFailedException;
import com.mysql.cj.result.DefaultValueFactory;
import com.mysql.cj.result.Field;
import com.mysql.cj.util.StringUtils;
import java.io.IOException;
import java.io.StringReader;
public class DbD... |
package zystudio.cases.prepare;
/**
* Animation部分的PropertyValuesHolder类的使用demo,这个类的源码很有含量,抽象到Class,Method
* 以及有不少native函数
*/
public class CasePropertyValuesHolder {
private static CasePropertyValuesHolder sCase;
public static CasePropertyValuesHolder obtain() {
if (sCase == null) {
sCa... |
package rgg.campusvirtualapp.modelo;
import java.io.Serializable;
import android.graphics.Bitmap;
public class DatosParticipantes implements Serializable {
/**
*
*/
private static final long serialVersionUID = 7414876837174388958L;
private int username;
private String nombre;
private Bitmap foto;
private... |
package Exam1;
public class Exam {
/**
* 在Exam类的main方法中,创建ItemService对象并调用 readTextFile方法,来打印输出指定文本文件内容
* */
public static void main(String[] args) {
ItemService is = new ItemService();
is.readTextFile("E:\\Users\\danay\\workspace\\Exam\\Items.txt");
}
}
|
/**
* Provides general {@link de.zarncke.lib.io.IOTools IO tools}.
*/
package de.zarncke.lib.io;
|
package classTest;
public class ClassTest {
/**
* @param args
* @throws ClassNotFoundException
*/
public static void main(String[] args) throws ClassNotFoundException {
// TODO Auto-generated method stub
Class clazz=Class.forName("java.lang.Class");
System.out.println("Class name:"+clazz.ge... |
package mentoring;
public class Year {
Months months;
public Year(Months months){
this.months=months;
}
public void whatToDo(){
switch (months){
case December:
System.out.println("It's winter time");
break;
case July:
... |
package BaiTap;
class MyLinkedList<E> {
//Phần tử đầu tiên của danh sách liên kết
private Node head;
//số lượng phần tử trong danh sách
private int numNodes = 0;
private class Node {
private Node next;
private Object data;
public Node(Object data) {
this.data =... |
public class HalfLife{
public static Funksionet fn;
public static NevilleN nv;
public static void main(String[] hlArgs){
double[] vitet = {30.0,40.0,50.0,70.0,8.0,110.0};
double[] grams = new double[vitet.length];
double vlperParashikim = 100.0;
for(int i = 0; i<vitet.length; i++){
fn = new Funksio... |
package com.espendwise.manta.model.fullentity;
// Generated by Hibernate Tools
import com.espendwise.manta.model.TableObject;
import com.espendwise.manta.model.ValueObject;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.p... |
package org.sid.web;
import java.util.List;
import javax.validation.Valid;
import org.sid.dao.MarqueRepository;
import org.sid.entities.Marque;
import org.sid.entities.Produit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data... |
package vegoo.newstock.core.dao;
public class BlockDao {
private String uCode;
private String code;
private String name;
private int marketId;
private int typeId; // 1-行业、2-概念 3-地域 9-板别
public String getUCode() {
return uCode;
}
public void setUCode(String uCode) {
this.uCode = uCode;
}
public Stri... |
package fr.lteconsulting;
public class AjoutDisqueImpossibleException extends Exception
{
public AjoutDisqueImpossibleException( String message, Throwable cause )
{
super( message, cause );
}
}
|
package android.support.v4.d;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Locale;
final class c {
private static Method tc;
private static Method td;
static {
try {
Class cls = Class.forName("libcore.icu.ICU");
if (... |
package com.kaibo.book.dto;
import java.util.List;
import lombok.Data;
/**
* @author kaibo
* @date 2018/9/28 17:08
* @GitHub:https://github.com/yuxuelian
* @email:kaibo1hao@gmail.com
* @description:
*/
@Data
public class BookSearchDto {
/**
* count : 10
* start : 0
* total : 200
* boo... |
package org.josedeleon.foodfinderguatemala.main;
import android.location.Location;
import org.josedeleon.foodfinderguatemala.main.events.MainEvent;
/**
* Created by Jose on 16/07/2016.
*/
public interface MainPresenter {
void onCreate();
void onDestroy();
void logout();
void uploadPhoto(Location l... |
package com.sojay.testfunction.video;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Environment;
import com.sojay.testfunction.R;
import com.sojay.testfunction.video.bean.VideoBean;
import com.sojay.testfunction.video.listener.OnAnimationListener;
import com.sojay.testf... |
package cn.com.broadlink.happy;
import android.text.TextUtils;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL... |
package org.example.model;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.*;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id",
"regionName"
})
public class RegionModelResponse {
@JsonProperty("id")
pri... |
/*object, class, instance, types of variable, types of methods.
reading run time value from keyboard, operator, control flow statements
and exception handling by using Bank application
*/
import java.util.*;
class Address
{
String dno;
int strnum;
String city;
}
class BankAccount
{
static String bankNa... |
package com.tencent.mm.plugin.webview.model;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.plugin.webview.model.z.d;
class z$c$2 implements OnClickListener {
final /* synthetic */ d pRy;
public z$c$2(d dVar) {
this.pRy = dVar;
... |
package com.example.healthmanage.base;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import java.util.Col... |
package test.main;
import test.mypac.Zoo;
import test.mypac.Zoo.Cat;
import test.mypac.Zoo.Monkey;//Zoo 클래스의 내부클래스 Monkey import
public class MainClass01 {
public static void main(String[] args) {
/*
* Zoo 클래스에 있는 getMonkey() 메소드를 호출해서
* 리턴되는 참조값을 m1 이라는 지역 변수에 담아 보세요.
*/
Zoo z=new Zoo();
Monkey m1=... |
package General;
import java.awt.EventQueue;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JFrame;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
final GameWindow gameWindow = new GameWindow();
JFrame window... |
/*
* Copyright 2008 Kjetil Valstadsve
*
* 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 applicable law or agre... |
package com.fnsvalue.skillshare.boimpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fnsvalue.skillshare.bo.LoginBO;
import com.fnsvalue.skillshare.dao.LoginDAO;
import com.fnsvalue.skillshare.dto.User;
@Service
public class LoginBOImpl impl... |
package practiceClasses;
public class Animal {
private String name;
public ItFlys ans ; // we can create reference variable of interface
public void flyss(){
ans.flys();
}
public void display(){
System.out.println("Do something like bark or run or eat.");
}
public String getName() {
return name;
}
... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the te... |
package org.akj.springboot.stream.rabbit.model;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class Order {
private String id;
private String summary;
private BigDecimal amount;
private String currency;
private Date createDate;
}
|
package com.base.common.email.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.common.email.dao.EmailReceiverMapper;
import com.base.common.email.entity.EmailReceiver;
import com.base.common.ema... |
package StreamAPI;
import java.util.stream.Stream;
import org.junit.Test;
public class Test2 {
@Test
public void test1(){
Stream<String> stream = Stream.of("张三丰","周芷若","张无忌","杨过","张翠山","黄蓉","小龙女");
stream.forEach(t->System.out.println(t));
}
@Test
public void test2(){
Stream<String> str... |
package com.beans.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.beans.Library_Map1;
public class TestLibrary_Map1 {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicatio... |
package src;
public class vueListePeages {
}
|
package second;
public class StaticExample
{
static int i=1;
int j=1;
StaticExample(){
++i;
++j;
System.out.println(i+" "+j);
}
static class InnerStatic{
public void showMessage(){
System.out.println("hello");
}
public static void printfn(... |
package com.hmammon.photointerface;
import com.hmammon.photointerface.domain.BindInfo;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
/**
* 解析查询的设备列表
* Created by Xcfh on 2014/10/22.
*/
public class DeviceParseUtils {
private ArrayList<BindI... |
package Lab10.Zad1;
public class Transfer implements Operation{
Account sender;
Account addressee;
double amount;
public Transfer(Account sender, Account adressee, double amount){
this.sender = sender;
this.addressee = adressee;
this.amount = amount;
}
@Override
p... |
package esir.dom11.nsoc.testconflictmgt;
import esir.dom11.nsoc.model.Action;
import esir.dom11.nsoc.model.Command;
import esir.dom11.nsoc.model.DataType;
import esir.dom11.nsoc.model.device.Actuator;
import junit.framework.TestCase;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.UUID;
impor... |
package com.google.engedu.wordladder;
public class fromEnd implements Runnable{
@Override
public void run() {
}
}
|
package com.unsee.gaia.web.listener;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;
import javax.servlet.ServletContextEvent;
import javax.se... |
package com.ideal.util;
import org.apache.log4j.Logger;
import java.io.*;
import java.util.Properties;
public class SqlUtil {
private static Logger logger = Logger.getLogger(SqlUtil.class);
Properties p = new Properties();
public SqlUtil(){
InputStream in = null;
try {
in = ne... |
package br.com.example.modelos;
/**
* Modelo resumido que representa uma tabela Cidade/Estado comum pra popular comboboxes em formulários de endereço
*/
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public clas... |
package com.cheng.targetmanager.utils;
import java.util.HashMap;
import java.util.Map;
public class Limit {
private final static int DEFAULT_SIZE = 10;
private final static String PAGE = "page";
private final static String SIZE = "size";
private final static String BEGIN = "begin";
private final s... |
package one.kii.summer.datetime;
public class Constant {
public final static String SQL_END_TIME = "'2100-01-01 00:00:00'";
}
|
package com.niubimq.service.impl;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.niubimq.dao.ConsumerManageDao;... |
package at.joma.simple;
import static io.undertow.Handlers.resource;
import io.undertow.Undertow;
import io.undertow.server.handlers.resource.PathResourceManager;
import java.nio.file.Paths;
public class Webserver {
public static void main(final String[] args) {
Undertow server = Undertow.builder().addHttpListen... |
package LeetCode.ArraysAndStrings;
import java.util.PriorityQueue;
public class HandofStraights {
public boolean isNStraightHand(int[] hand, int W) {
PriorityQueue<Integer> q = new PriorityQueue<>();
for(int i : hand){
q.add(i);
}
while (!q.isEmpty()){
int val = q.poll();
for(int ... |
// Leetcode problem number : 15 3Sum
// Idea: two pointer
public class 3Sum
{
public List<List<Integer>> threeSum(int[] nums)
{
List<List<Integer>> result = new ArrayList<List<Integer>>();
Arrays.sort(nums);
int i =0,j=0;
int sum = 0;
int len = nums.length;
for(... |
package com.example.ticktick.Adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.ticktick.Model.I... |
package com.tencent.mm.pluginsdk.ui.chat;
public class l$a {
public String appId;
public String bXS;
public String bYo;
public long bYu;
public String byT;
public int qMW;
public String qMX;
public int scene;
}
|
package ecutb.fishingtrip.exception;
import org.springframework.http.HttpStatus;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;
import... |
package LeetCode.ArraysAndStrings;
import java.util.Arrays;
import java.util.Comparator;
import java.util.PriorityQueue;
public class MeetingRoomsII {
public int minMeetingRooms(int[][] intervals){
if(intervals.length == 0) return 0;
if(intervals.length == 1) return 1;
Arrays.sort(intervals, new Compar... |
package com.sunbing.demo.entity;
import com.sunbing.demo.enums.StatusCodeEnum;
/**
* 响应结果实体
*/
public class ResponseResult<T> {
/**
* 响应编码。0-正常,小于0-系统级错误,大于0-业务级错误
*/
private int returncode = 0;
/**
* 响应消息。code非0时,message非空
*/
private String message = "OK";
/**
* 响应结果
... |
package com.tencent.mm.pluginsdk.ui.chat;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.BaseAdapter;
import android.widget.ImageV... |
package com.findme.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.codehaus.jackson.annotate.JsonAutoDetect;
/**
* @author vinodkumara
*... |
package fr.lteconsulting;
import fr.lteconsulting.commandes.AffichageDisquesParCodeBarre;
import fr.lteconsulting.commandes.AffichageDisquesParNom;
import fr.lteconsulting.commandes.AjouterDisque;
import fr.lteconsulting.commandes.GenerationDisques;
import fr.lteconsulting.commandes.RechercheParCodeBarre;
import fr.lt... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the te... |
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import java.io.*;
public class NoteMenu extends JMenu{
String noteName;
boolean IsOpenFile;
boolean IsOpenRepo;
String keyName;
NoteMenu(JTextArea jTextArea,Repo repo) {
super("笔记");
IsOpenFile = false;
JM... |
package com.tencent.mm.plugin.account.ui;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class RegByMobileRegAIOUI$5 implements OnMenuItemClickListener {
final /* synthetic */ RegByMobileRegAIOUI eVb;
RegByMobileRegAIOUI$5(RegByMobileRegAIOUI regByMobileRegAIOUI) {
... |
package base;
import java.awt.*;
public abstract class SquarenessShape extends ClosedShape {
private Point cornerPoint;
private int width;
private int height;
public SquarenessShape() {
super();
}
public SquarenessShape(Point theCenter, Point cornerPoint) {
super(theCenter);
setCorner... |
package com.myblog.version3.service.impl;
import com.myblog.version3.entity.Category;
import com.myblog.version3.mapper.categoryMapper;
import com.myblog.version3.service.categoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.sql.SQLI... |
package com.yrz.service.db1;
import com.baomidou.mybatisplus.service.IService;
import com.yrz.model.User;
import java.math.BigDecimal;
import java.util.List;
/**
* <p>
* 服务类
* </p>
*
* @author yrz
*/
public interface UserService extends IService<User> {
List<User> getUserList();
BigDecimal getOrderPri... |
package fisherjk;
import java.util.ArrayList;
import java.util.List;
/*Class to Run the Part I of the A Priori Algorithm */
public class APrioriAlgorithm {
public static TransactionSet DoApriori(TransactionSet transSet,
double supportThreshold) {
ItemSet initialItemSet = transSet.GetUniqueItems()... |
package com.heartmarket.model.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.transaction.Transact... |
package com.technology.share.service;
import com.technology.share.domain.Server;
/**
* @description: 服务器信息Service
* @author: 朱俊亮
* @time: 2021-04-07 17:05
*/
public interface ServerService extends BaseService<Server> {
}
|
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.