text stringlengths 10 2.72M |
|---|
package com.test;
import java.util.HashMap;
import java.util.HashSet;
import com.test.base.Solution;
/**
* 方案2:【方案1,已经说明,直接遍历方式不可行】
*
* 1,先把他添加到两个HashMap里面,【相当于建立映射关系】
* 2,随机取一个数字,按照递归的方式,找到所有相连的数据
* 3,判断HashMap中是否还有值,还有的话继续,直到HashMap值全部清空
*
* @author YLine
*
* 2019年6月3日 下午2:15:55
*/
public class Solutio... |
import java.util.Scanner;
/**
* Created by EddyJ on 6/16/16.
*/
public class Main {
public static void main(String[] args) {
Inventory inventory = new Inventory();
Item item = new Item();
Scanner scanner = new Scanner(System.in);
int id = 0;
int option = 0;
do {
... |
package io.indreams.ecommerceuserinfoservice.configuration.security.service;
import io.indreams.ecommerceuserinfoservice.configuration.security.dao.UserRepository;
import io.indreams.ecommerceuserinfoservice.model.User;
import io.indreams.ecommerceuserinfoservice.utility.Constants;
import org.springframework.beans.fac... |
package com.kodilla.patterns2.decorator.pizza;
import java.math.BigDecimal;
import java.util.List;
public class BasicPizzaOrder implements PizzaOrder{
@Override
public BigDecimal getCost() {
return new BigDecimal(15.0);
}
@Override
public String getName() {
return "Plain Pizza";
... |
package fr.cea.nabla.interpreter.nodes.expression;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.ExplodeLoop;
import fr.cea.nabla.interpreter.NablaTypesGen;
import fr.cea.nabla.interpreter.values.NV1Bool;
public abstract class ... |
package com.pdd.pop.sdk.http.api.response;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.PopBaseHttpResponse;
import java.util.List;
public class PddAdHistoryRtPlanReportGetResponse extends PopBaseHttpResponse{
/**
* 返回response
*/
@JsonProperty("ad... |
package com.example.lavishbansal.demose2;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class particularNewspaper extends AppCompatActivity {
@Override
protected void onCreat... |
/**
* @author Nollan
* Date: 2016-09-14
* Description:
* This class handles all logic and GUI functionality. With this program you can practice your mathskills
* and become better at calculating in your head.
* The program was made to practice my skills in programming and the idea of the program in from my... |
package com.example.a77354.android_final_project.HttpServiceInterface;
import java.util.Map;
import retrofit2.http.GET;
import retrofit2.http.Headers;
/**
* Created by 77354 on 2018/1/6.
*/
public interface GetArticleServiceInterface {
@Headers({"Content-Type: application/json","Accept: application/json"})
... |
package com.javalab.controller;
public class AppController {
}
|
/**
*
*/
package frames;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Toolkit;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import reso... |
/*
* 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 unitTests;
import model.Location;
import model.Planning;
import model.Vehicle;
import model.VehicleLocation;
import... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.project.strings.entity;
/**
* Created by kleba on 03.04.2018.
*/
public class PunctMarks implements TextPart{
private String punctMarc;
public PunctMarks(String punctMarc){
this.punctMarc=punctMarc;
}
public void setPunctMarc(String punctMarc) {
this.punctMarc = punctMa... |
package bis.project.services;
import java.util.Set;
import bis.project.model.BankMessages;
public interface BankMessagesServices {
public Set<BankMessages> getBankMessages();
public BankMessages getBankMessage(Integer id);
public BankMessages addBankMessage(BankMessages bankMessage);
public BankMessages ... |
/*
* Created on Jul 26, 2015
*/
package basics;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
import java.util.stream.Collectors;
import javafx.application.Application;
import javafx.collections.FXCollect... |
package com.bistel.mq;
import java.util.HashMap;
import java.util.Map;
public class QueueInfo {
private String name;
private boolean durable;
private boolean autoDelete;
private boolean exclusive;
private Map<String, Object> args;
public String getName() {
return name;
}
public void setName(String name) {... |
package com.sinodynamic.hkgta.entity.crm;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence... |
package ntou.cs.java2021.hw2;
/**
* HandOfCards(手牌) 可以存五張牌和一個對應的牌型名稱
*
* @author 00857005周固廷
*/
public class HandOfCards {
private Card[] cards;
private CardType type;
public Card[] getCards() {
return cards;
}
public void setCards(Card[] cards) {
this.cards = cards.clone();
... |
/**
* www.yiji.com Inc.
* Copyright (c) 2012 All Rights Reserved.
*/
package com.yjf.common.cache;
/**
*
* @Filename LocalCache.java
*
* @Description <p>本地缓存必须实现的接口,提供刷新机制;减少大量的远程访问开销</p>
*
* @Version 1.0
*
* @Author peigen
*
* @Email peigen@yiji.com
*
* @History
*<li>Auth... |
package com.himanshu.poc.spring.samples.springbootwebreactive.repository;
import com.himanshu.poc.spring.samples.springbootwebreactive.domain.User;
import org.springframework.data.repository.CrudRepository;
public interface UserRepository extends CrudRepository<User, Long> {
}
|
package io.datawire.labs.hellospring;
import java.util.concurrent.TimeUnit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
privat... |
package com.nit.order.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nit.order.model.OrderItem;
import com.nit.order.repository.OrderItemRepository;
@Service
public class OrderItemSer... |
package SalarySheet;
import jdk.nashorn.internal.runtime.Version;
import java.io.File;
import java.sql.*;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.h2.jdbcx.JdbcConnectionPool;
/**
* Created by famed on 5/6/16.
*/
public class ... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* 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 ... |
package com.database.table;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.UUID;
@MappedSuperclass
public abstract class BaseEntity implements Serializable {
private static final long serialVersionUID = 4042124750892130622L;
@Id
@GeneratedValue(strategy... |
package dao.impl;
import dao.ConfigurationDao;
import entities.Configuration;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;
import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
@Repository
public class Configurati... |
package com.tech42.callrecorder.views;
import android.Manifest;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.content.SharedPrefere... |
package com.dev.service;
import com.dev.model.User;
import com.dev.repository.UserRepository;
import org.apache.log4j.Logger;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
/**
* @aut... |
package com.mibo.modules.data.model;
import com.mibo.modules.data.base.BaseAppVersion;
@SuppressWarnings("serial")
public class AppVersion extends BaseAppVersion<AppVersion> {
/* 10 */ public static final AppVersion dao = (AppVersion) new AppVersion().dao();
public AppVersion queryAppVersionByTypeVersionNo(String ... |
package com.letscrawl.base.bean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public abstract class AbstractObject {
public final Logger logger = LoggerFactory.getLogger(this.getClass());
}
|
package by.htp.carparking.web.controller.admin;
import java.applet.AppletContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
//import org.json.simple.JSONObject;
//import org.json.simple.parser.JSONParser;
//import org.json.simple.pars... |
import java.io.*;
import java.lang.*;
import java.util.*;
// #!/usr/bin/python -O
// #include <stdio.h>
// #include <stdlib.h>
// #include <string.h>
// #include<stdbool.h>
// #include<limits.h>
// #include<iostream>
// #include<algorithm>
// #include<string>
// #include<vector>
//using namespace std;
/*
# Autho... |
package mtuci.nikitakutselay.mobileapplicationprogrammingcourse;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.ContextMenu;
import androi... |
package org.giddap.dreamfactory.leetcode.onlinejudge;
/**
* http://oj.leetcode.com/problems/largest-rectangle-in-histogram/
* <p/>
* Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find
* the area of largest rectangle in the histogram.
* <p/>
* Above is a h... |
package com.comunisolve.androidmvvmachitecturecomponents.Room;
import android.app.Application;
import android.os.AsyncTask;
import androidx.lifecycle.LiveData;
import java.util.List;
// Repository is just a werehouse of our data that is fetch from room Database or from RESTFULL APIs Services, VIEWMODEL doesn't know ... |
package com.rabo.customerstatementprocessor.controller;
import static com.rabo.customerstatementprocessor.constant.MessageCodeConstants.IO_EXCEPTION_WHEN_READING_INPUT_STREAM_CODE;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import org.springframework.web.bind.annotation.PostMappin... |
package com.hwj.config;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import or... |
package OnlinemusicstoreClasses;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import... |
package org.shujito.cartonbox.view.listener;
public interface TagListItemSelectedCallback
{
public void tagListItemSelected(String tag);
} |
package com.virtusa.sai.control;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
im... |
package com.algorithm.tree;
import java.util.List;
/**
* #894 所有可能的满二叉树
*/
public class AllPossibleFBT {
public List<TreeNode> allPossibleFBT(int N) {
//如果n>=3
return null;
}
}
|
package org.kevin.model;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
* @author kevin
* @ClassName
* @Date 2020/1/1819:06
*/
@Getter
@Setter
@ToString
@Entity
public class Employee {... |
package models;
public class Balcony extends Seat {
public Balcony(int number, int row) {
super(number, row);
visibility = 2;
price = 100;
type = "Balcony";
}
public Balcony(int number, int row, String type){
super(number, row);
visibility = 2;
this.t... |
package demoOn20August2016_JDBC;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class Twotables {
Connection conn;
PreparedStatement pst;
ResultSet rs;
int Result;
public static void main(String[] args) {
}
}
|
package com.dq.police.controller.actions.CrimePast;
import com.dq.police.controller.Action;
import com.dq.police.helpers.ConstraintsUtil;
import com.dq.police.model.PersistenceManager;
import com.dq.police.model.entities.Cop;
import com.dq.police.model.entities.CrimePast;
import com.dq.police.view.View;
import lombok... |
package com.jyn.language.设计模式.三种工厂.抽象工厂;
/**
* 椰果奶茶 加冰
*/
public class CocoIceTea extends CocoTea {
public CocoIceTea(String name, String price) {
super(name, price);
}
}
|
package com.example.tyzzer.android_projectweek1_googlebooks;
import android.os.Parcel;
import android.os.Parcelable;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class Book implements Parcelable {
private String id, title, author, imageUrl, review;
private int ... |
package com.javarush.task.task20.task2022;
import java.io.*;
/*
Переопределение сериализации в потоке
*/
public class Solution implements Serializable, AutoCloseable {
private transient FileOutputStream stream;
String fileName;
public Solution(String fileName) throws FileNotFoundException {
this... |
package com.hrm.controller;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springfram... |
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations;
import org.giddap.dreamfactory.leetcode.commons.RandomListNode;
import org.giddap.dreamfactory.leetcode.onlinejudge.CopyListWithRandomPointer;
import java.util.HashMap;
import java.util.Map;
/**
* Algorithm:
* 1. Clone nodes connected by 'next' ... |
package serve.serveup.dataholder.session;
/*
@author: urban.jagodic
*/
public interface SessionManager {
// add Session info to object to Shared prefrences
void addToSession(SessionContent type, Object data);
// delete data from Session object from Shared prefrences
void deleteFromSession(SessionC... |
package com.god.gl.vaccination.util;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.google.gson.JsonSyntaxException;
import java.util.ArrayList;
import java.util.List;
/**
* @author gl
... |
package sources;
public class StepSizeValues {
static int[] stepSizeValues = {
16, 17, 19, 21, 23, 25,
28, 31, 34, 37, 41, 45,
50, 55, 60, 66, 73, 80,
88, 97, 107, 118, 130, 143,
157, 173, 190, 209, 230, 253,
279, 307, 337, 371, 408
};
pu... |
public class Refrigerator extends Appliance {
private static int defaultElectricityUse = 1;
private static int defaultGasUse = 0;
private static int defaultWaterUse = 0;
public Refrigerator(int electricityUse, int gasUse, int waterUse, int timeOn, House myhouse) {
super(electricityUse >... |
package com.mike.blog.repository;
import com.mike.blog.modal.Blog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
/**
* This is the repository for blog
*
* @author Michael Ng
*
*/
@Repository
public interface BlogReposit... |
package org.garret.perst.fulltext;
import java.io.Reader;
/**
* Implementation of string reader for J2ME
*/
public class StringReader extends Reader
{
public void close()
{
str = null;
}
public int read()
{
return (currPos < str.length()) ? str.charAt(currPos++) : -1;
}
... |
package com.kaka.blog.service;
import com.kaka.blog.dao.TypeRepository;
import com.kaka.blog.po.Type;
import com.kaka.blog.web.ClassNotFoundException;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.sprin... |
/*******************************************************************************
* Copyright (c) 2012 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distr... |
package com.esum.comp.dbc.job.log;
import org.apache.ibatis.session.SqlSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.comp.dbc.DbcConfig;
import com.esum.comp.dbc.job.event.JobEvent;
import com.esum.comp.dbc.job.event.JobInstanceEvent;
import com.esum.comp.dbc.job.event.JobResult;
i... |
/*
* 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 Core;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Paths;... |
//package com.mabang.android.activity.user;
//
//import android.content.Intent;
//import android.graphics.Color;
//import android.support.annotation.IdRes;
//import android.text.TextUtils;
//import android.view.View;
//import android.widget.AdapterView;
//import android.widget.ImageView;
//import android.widget.LinearL... |
package com.example.aizat.alarmclock.screen.main.third;
import android.app.Fragment;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.example.aizat.alarmclock.screen.base.BaseActivity;
/**
* Created by Ai... |
package com.finahub.coding.server.airtable;
public class AirtableConfiguration {
private String ENDPOINT_URL;
private String AIRTABLE_BASE;
private String AIRTABLE_API_KEY;
private String AIRTABLE_PROXY;
public AirtableConfiguration(String ENDPOINT_URL, String AIRTABLE_API_KEY) {
this(ENDPOINT_URL,AIRTABLE_A... |
package com.dg.android.syncnotes.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Note {
@JsonProperty(value = "created_at")
String createdAt;
@JsonProperty
String description;
@JsonProperty
String id;
@JsonProperty
String name;
@JsonProperty
String title;
@JsonProperty(value = "... |
package com.loneless.fourth_task.comparator;
import com.loneless.fourth_task.entity.TravelVoucher;
import java.util.Comparator;
public class CompareByCost implements Comparator<TravelVoucher> {
@Override
public int compare(TravelVoucher o1, TravelVoucher o2) {
return Double.compare(o1... |
package com.xwolf.eop.system.dao;
import com.xwolf.eop.system.entity.Permissions;
import java.util.List;
public interface PermissionsMapper {
int deleteByPrimaryKey(Integer pid);
int insert(Permissions record);
int insertSelective(Permissions record);
Permissions selectByPrimaryKey(Integer pid);
... |
class Person<T>{
T persontype;
public T getPersontype() {
return persontype;
}
public void setPersontype(T persontype) {
this.persontype = persontype;
}
}
class student{
}
class employee{
}
public class generic_example_2 {
public static void main(String[] args) {
... |
package com.jkm.databsqllite;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by HP on 05-06-2018.
*/
public class DB extends SQLiteOpenHelper {
p... |
package com.alibaba.druid.bvt.sql;
import com.alibaba.druid.DbType;
import com.alibaba.druid.sql.PagerUtils;
import com.alibaba.druid.util.JdbcUtils;
import junit.framework.TestCase;
import org.junit.Assert;
public class PagerUtilsTest_Limit_hive_0 extends TestCase {
public void test_hive_0() throws Exception {
... |
package com.karya.bean;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class AppraisalBean {
private int apprId;
@NotNull
@NotEmpty(message = "Please enter the Series")
private String series;
@NotNull
@NotEmpty(message = "Please select the apprais... |
import java.util.stream.IntStream;
class Hamming {
private int hamming;
Hamming(String leftStrand, String rightStrand) {
if (leftStrand.length() == rightStrand.length()) {
hamming = IntStream
.range(0, leftStrand.length())
.reduce(0,
... |
package org.dizitart.nitrite.datagate.auth;
import java.util.logging.Logger;
/*
* 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.
*/
/**
*
* @author tareq
*/
public abstract class Datag... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webui.common;
import pl.edu.icm.unity.server.utils.UnityMessageSource;
import pl.edu.icm.unity.types.basic.AttributeType;
/**
* Shared helpers for attribute(types)
... |
package abc.pages;
import abc.core.PageObject;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import or... |
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
public class Graph<T extends Comparable<T>> implements GraphADT<T> {
private class Vertex {
private HashSet<T> edges;
Vertex(T data) {
this.edges = new HashSet<T>();
}
}
int order, size;
H... |
package ex4;
class Tv {
private String name;
private int year;
private int size;
void show(){
System.out.println(name + "에서 만든 " + year + "년형 " + size + "인치 TV");
}
public Tv() {
// TODO Auto-generated constructor stub
}
public Tv(String name, int year, int size) {
this.name = name;
this.year = yea... |
package com.generatethumbnail;
import android.content.ContentProviderClient;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.os.Environment;
import android.os.Par... |
package com.example.android.scorekeeper;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import andr... |
package com.ifeng.recom.mixrecall.core.channel.impl;
import com.ifeng.recom.mixrecall.common.constant.RecallConstant;
import com.ifeng.recom.mixrecall.common.constant.UserProfileEnum.TagPeriod;
import com.ifeng.recom.mixrecall.common.model.RecallResult;
import com.ifeng.recom.mixrecall.common.model.UserModel;
im... |
package pt.utl.ist.bw.elements;
public class CaseInstanceID {
private String instanceID;
public CaseInstanceID(String id) {
if(id == null) this.instanceID = "";
if(id.contains(".")) {
this.instanceID = id.split("\\.")[0];
} else {
this.instanceID = id;
}
}
@Override
public String toString() {
... |
package com.freakybyte.movies.control.movie.ui;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v4... |
package net.tascalate.concurrent;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
public class Promises {
... |
package dev.nowalk.services;
import java.util.List;
import dev.nowalk.models.Employee;
import dev.nowalk.models.Event;
import dev.nowalk.models.Request;
import dev.nowalk.repositories.RequestRepo;
public class RequestServicesImpl implements RequestServices {
public RequestRepo rr;
public RequestServicesImpl(Req... |
/*
* 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.innovaciones.reporte.serviceRest;
import com.innovaciones.reporte.model.TipoVisita;
import com.innovaciones.reporte.servic... |
package com.cs.tu.findrefactor.model;
import java.util.ArrayList;
import java.util.List;
import CFG.AbstractNode;
public class VarPath {
private List<AbstractNode> nodePathList = new ArrayList<AbstractNode>();
public List<AbstractNode> getNodePathList() {
return nodePathList;
}
}
|
/*
* 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 comparc.Instruction;
/**
*
* @author Danica
*/
public class WB {
private String REG;
private String ... |
package Ch14;
public class TreeS {
public static void main(String[] args) {
int[] arr = { 50, 30, 70, 15, 7, 62, 22, 35, 87, 31 };
TreeSort TS = new TreeSort(arr[0]);
System.out.printf("정렬 전 : ");
printArray(arr);
TS.Sorting(arr);
System.out.printf("정렬 후 : ");
... |
package com.ecolife.ApirestEcolife.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.spri... |
package com.demo.observer.guava;
import com.google.common.eventbus.Subscribe;
/**
* @author: Maniac Wen
* @create: 2020/4/17
* @update: 7:29
* @version: V1.0
* @detail:
**/
public class GuavaEventListener {
@Subscribe
public void subscribe(String str){
System.out.println("开始执行 subscribe 方法,传入的参数... |
package com.qst.chapter03;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import... |
package walnoot.dodgegame;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
public class Main{
public static void main(String[] args){
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.title = "DodgeGame";
... |
package com.vincent.algorithm.basic.array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* leetcode 15
* 给你一个包含 n 个整数的数组nums,判断nums中是否存在三个元素 a,b,c ,使得a + b + c = 0 ?请你找出所有和为 0 且不重复的三元组。
*
* 注意:答案中不可以包含重复的三元组。
*
*
*
* 示例 1:
*
* 输入:nums = [-1,0,1,2,-1,-4]
* 输出:[[-1,-1,2],[-... |
package star1;
public class Star2App {
static void main(String[] args) {
Marine m = new Marine();
Dragoon d = new Dragoon("µå¶ó±º1", 100, 20);
}
}
|
package com.example.demo.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.example.demo.myapplication.Components.Interf... |
package com.najasoftware.fdv.model;
import java.io.Serializable;
/**
* Created by Lemoel Marques - NajaSoftware on 17/03/2016.
* lemoel@gmail.com
*/
public class ConfigFtp implements Serializable {
private String login;
private String senha;
private String host;
private int porta;
public Conf... |
package BrazilCenter.DaoUtils.dao;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
import BrazilCenter.DaoUtils.Utils.LogUtils;
import BrazilCenter.DaoUtils.Utils.Utils;
import BrazilCenter.DaoUtils.model.FKT_DPS01_IIG_L31_STP;
import BrazilCenter.DaoUtils.model.SZT_ISM01_DNP_L... |
package com.example.service.impl;
import com.example.service.WeatherService;
import org.springframework.stereotype.Component;
/**
* Created by bartosz on 15.03.17.
*/
@Component
public class CuteWeatherServImpl implements WeatherService{
@Override
public String getWeather()
{
return "It's shiny ... |
package com.example.weatherforcastproject.repository.network;
import com.example.weatherforcastproject.pojo.forecast.ForecastFiveDays;
import com.example.weatherforcastproject.pojo.weather.WeatherPojo;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
// http://api.openweathermap.org/data... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.