text stringlengths 10 2.72M |
|---|
/**
* All rights Reserved, Designed By www.gitcloud.com.cn
* @Title: XssFilter.java
* @Package com.git.cloud.common.xss
* @Description: TODO(用一句话描述该文件做什么)
* @author: chengbin
* @date: 2018年8月14日 下午4:19:52
* @version V1.0
* @Copyright: 2018 www.gitcloud.com.cn Inc. All rights reserved.
... |
import java.util.ArrayList;
import java.util.List;
/*
* @lc app=leetcode.cn id=57 lang=java
*
* [57] 插入区间
*/
// @lc code=start
class Solution {
public int[][] insert(int[][] intervals, int[] newInterval) {
List<int[]> result = new ArrayList<>();
int i=0;
//左半部分 无交集
while(i < ... |
public class ConnectingCars {
public long minimizeCost(int[] positions, int[] lengths) {
int[][] sorted = new int[positions.length][2];
for(int i = 0; i < sorted.length; ++i) {
int min = Integer.MAX_VALUE;
int index = -1;
for(int j = 0; j < positions.length; ++j)... |
package swea.d3;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
public class Solution_2806_NQueen {
static int N;
static int[] arr;
static int ans;
public static void main(String[] args) throws Exception {
System.setIn(new FileInputStream("input.txt"));
Buffe... |
package online.lahloba.www.lahloba.ui.delivery_supervisor.bootom_sheet;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
... |
package com.sise.internsystem.action;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.opensymphony.xwork2.ActionContext;
import com.sise.internsyst... |
package com.sezioo.permission.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.sezioo.permission.model.SysDept;
public interface SysDeptMapper {
int deleteByPrimaryKey(Integer id);
int insert(SysDept record);
int insertSelective(SysDept record);
SysDept selectByP... |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.benchmarks;
import java.util.function.Consumer;
import java.util... |
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
public class SearchMinimunLoss {
static long minimumLoss(long[] price) {
long [] SortedArr=Arrays.copyOf(price, price.length);
List<Long> priceList=Arrays.stream(price)... |
package x20171025;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;
/**
*
* @author Schwarczenberger Ferenc
*/
public class vissza {
public static void main(String[] args)throws Exception {
File theFile = new File("vissza.txt");
... |
package com.applitools.hackathon.VisualAIRockStar.pages;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.Reporter;
im... |
package com.example.dialogfragmentrecyclerview;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.viewpager.widget.PagerAdapter;
import java.util.List;
public class ViewPagerAdapter extends PagerAdapter {
private List<View> viewList;//数据源
public V... |
package leetCode.链表;
/**
* Definition for singly-linked list.
*/
class ListNode {
int val;
ListNode next;
ListNode(int x) {
val = x;
}
}
public class Solution {
public static void main(String[] args) {
Solution solution = new Solution();
ListNode l1 = new ListNode(4);
l1.next = new ListNode(8);
l1.n... |
package me.ewriter.lambdasample;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import com.android.internal.util.Predicate;
public class MainActivity extends AppCompatActivity {
TextView textView;
private static final Strin... |
package tests;
import core.CustomTestListener;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Listeners;
@Listeners({CustomTestListener.class})
public abstract class BaseTest {
@BeforeTest
public void openSite() {
}
}
|
package org.softRoad.security;
import io.quarkus.elytron.security.common.BcryptUtil;
import io.smallrye.jwt.build.Jwt;
import org.eclipse.microprofile.config.ConfigProvider;
import org.eclipse.microprofile.jwt.Claims;
import org.softRoad.models.User;
public class SecurityUtils {
public static String createJwtToke... |
package com.webrob.distributedmutex.model;
/**
* Created by Robert on 2015-01-05.
*/
public interface TimeoutListener
{
void timeout();
void sendOkToAllQueuedNodes();
}
|
package com.esum.comp.dbm.util.sql;
import com.esum.framework.common.sql.Record;
/**
* Copyright(c) eSum Technologies., inc. All rights reserved.
*/
public abstract class MethodParser
{
private Record record;
public MethodParser(Record record){
this.record = record;
}
protected String getValue(String fie... |
package Emma;
/**
* Created by rodrique on 3/16/2018.
*/
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class Test
{
public class TestMethods {
HisenseTv tv;
LCD lcd;
public TestMethods() {
}
@Before
public void ... |
package net.droidlabs.viking.bindings.map.bindings;
import androidx.databinding.BindingAdapter;
import com.google.maps.android.clustering.Cluster;
import com.google.maps.android.clustering.ClusterItem;
import com.google.maps.android.clustering.ClusterManager;
import com.google.maps.android.clustering.algo.Algorithm;
... |
/*
* 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 hoangduc.daos;
import hoangduc.connection.MyConnection;
import hoangduc.dtos.ServiceDTO;
import java.io.Serializable;
import j... |
package com.softeem.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
impo... |
package com.n26.atrposki.utils.time;
import org.springframework.stereotype.Component;
/*
* @author aleksandartrposki@gmail.com
* @since 05.05.18
*
*
*/
@Component
public class TimeServiceImpl implements ITimeService{
@Override
public long getUtcNow() {
return System.currentTimeMillis();
}
}
|
package com.cht.training;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.util.Scanner;
public class Main69 {
public static void main(String[] args) {
System.out.println("Input int");
Scanner scanner =new Scanner(System.in);
// scanner.close();
... |
package org.carlook.gui.views;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.server.VaadinSession;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.ui.*;
import com.vaadin.ui.renderers.ButtonRenderer;
import org.carlook.gui.components.TopPanel;
import org... |
package trungph.com;
public class ObjClass {
String Class_id;
String Class_name;
String School_Year;
public ObjClass(String ID, String NAME, String YEAR) {
super();
Class_id = ID;
Class_name = NAME;
School_Year = YEAR;
}
public ObjClass() {
}
@Override
public String toString(... |
package com.foodaholic.interfaces;
public interface ClickListener {
void onClick(int position);
} |
package com.newbig.im.app.controller.admin;
import com.newbig.im.app.AppApplication;
import com.newbig.im.common.constant.AppConstant;
import com.newbig.im.common.utils.JwtUtil;
import com.newbig.im.service.GreetingService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.spr... |
/**
* Leetcode做题-阶乘尾数 https://leetcode-cn.com/problems/factorial-zeros-lcci/
*/
public class 阶乘尾数 {
public int trailingZeroes(int n) {
int count=0;
while (n>=5){
n=n/5;
count+=n;
}
return count;
}
}
|
package sch.frog.calculator.util;
public interface IComparator<T> {
public static final IComparator<String> STRING_DEFAULT_COMPARATOR = (a, b) -> a.compareTo(b);
int compare(T a, T b);
}
|
//Print the following pattern for the given N number of rows.
//Pattern for N = 4
//1
//11
//111
//1111
package Pattern;
import java.util.Scanner;
public class Pattern3 extends Pattern2 {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
int rows = s.nextInt();
in... |
package com.mingrisoft;
public class PNGSaver implements ImageSaver {
@Override
public void save() {
System.out.println("将图片保存成PNG格式");
}
}
|
package com.zhongyp.advanced.sync;
/**
* project: demo
* author: zhongyp
* date: 2018/3/20
* mail: zhongyp001@163.com
*/
public class SynchronizedDemo {
public static void main(String[] args){
}
}
|
package com.ibisek.outlanded.net;
public interface HttpResponseHandler {
/**
* @param httpResponse
* @return possible return value or simply null
*/
public Object handleResponse(ParsedHttpResponse httpResponse);
}
|
package br.com.marciojose.bibliotecasjava;
import br.com.marciojose.bibliotecasjava.Programa.BarraDeProgresso;
import br.com.marciojose.bibliotecasjava.Programa.CopiadorDeArquivos;
import br.com.marciojose.bibliotecasjava.Programa.FazerDeposito;
import br.com.marciojose.bibliotecasjava.modelo.Conta;
public class Main... |
package com.cos.blog.web;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impor... |
package com.example.km.genericapp.network;
import com.example.km.genericapp.constants.Urls;
import com.example.km.genericapp.models.posts.BlogData;
import com.example.km.genericapp.models.posts.BlogItem;
import com.example.km.genericapp.models.posts.Comment;
import com.example.km.genericapp.models.posts.Post;
import c... |
package com.oaec.model;
/*
* javaBean
*/
public class Student {
public Student() {
super();
}
private String sid;
private String sname;
private int sage;
private char ssex;
public Student(String sid, String sname, int sage, char ssex, String sphone) {
super();
this.sid = sid;
this.sname = sname;
th... |
package L1_EstruturaSequencial;
import java.util.Scanner;
public class Ex16_L1 {
public static void main(String[] args) {int metrosLitros = 3;
int lataLitros = 18;//3m - 1l
float valorLata = 80f;// 9m - 3l
int latasC = 1;
System.out.println("Quantos metros quadrados deseja pintar?... |
/**
*
*/
package de.weathermodule.weather.client.presenter;
import de.smartmirror.smf.client.presenter.AbstractPresenter;
import de.weathermodule.weather.client.model.WeatherModel;
import de.weathermodule.weather.client.view.WeatherView;
/**
* @author julianschultehullern
*
*/
public class WeatherPresenter exte... |
package prog2.examen.entities;
public class Adulto extends Persona {
public Adulto(long cedula) {
super(cedula);
}
}
|
package com.seva.Persistence;
import com.seva.models.LoginDTO;
public interface UserDAO {
/**
*
* @param loginId String
* @return loginVO
*/
LoginDTO fetchLoginCredentialsByLoginId(String loginId);
}
|
package com.taurus.openbravo.integracionPOS.main;
import com.taurus.openbravo.soapclient.entities.files.FileContainer;
//Debe conectarse (o usar las clases que se conectan) con los webservices (SAP y OB),
public class GT_CLS_MainServiceTemp {
public String obtenerXML(String tipo, FileContainer file) {
/*... |
package com.gobicloo;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.TextView;
import c... |
package com.citibank.ods.modules.product.player.functionality.valueobject;
import com.citibank.ods.entity.pl.TplPlayerMovEntity;
/**
* @author atilio.l.araujo
*
*/
public class PlayerMovementDetailFncVO extends BasePlayerDetailFncVO
{
public PlayerMovementDetailFncVO()
{
m_baseTplPlayerEn... |
package pdp.uz.payload;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
@Getter
@Setter
public class PackageDto implements Serializable {
@NotNull
private String name;
@NotNull
private String key;
@Not... |
package us.gibb.dev.gwt.demo.client;
import us.gibb.dev.gwt.command.CommandEventBus;
import us.gibb.dev.gwt.view.AbstractWidgetView;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.... |
import Mixer.Randomizer;
import Sorters.*;
public class Tester {
public static void main(String[] args) {
Randomizer randomizer = new Randomizer(10000);
int[] array = randomizer.getRandomArray();
// int[] array = {5, 4, 3, 2, 1};
// new BubbleSort(array.clone());
// new Com... |
package training.gamelessormore;
import junit.framework.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class ModelTest {
private static Model model;
@Before
public void setUp() {
model = new Model(-20,20);
}
@After
public void tearDown() {
... |
package com.hackathon.edxchange.userservice.repository;
import com.hackathon.edxchange.userservice.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UsersRepository extends JpaRepository<UserEntity,Long> {
}
|
package amery.spring.scheduler.timer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestTimer {
public static void main(String[] args) {
System.out.println("Test start.");
ApplicationContext context =... |
package com.cheese.radio.base.arouter;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.callback.NavigationCallback;
import com.alibaba.android.arouter.launcher.ARouter;
import com.binding.mo... |
package ru.buryachenko.moviedescription.database;
import androidx.room.Database;
import androidx.room.RoomDatabase;
@Database(entities = {MovieRecord.class, TagRecord.class},
version = 1,
exportSchema = false)
public abstract class MovieDatabase extends RoomDatabase {
public abstract MovieDao mov... |
package servlets;
import dao.UserDAO;
import models.Password;
import models.User;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
import java.io.File;
import java.io... |
package com.dbsys.rs.service.impl;
import java.sql.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.dbsys.rs.lib.DateUtil;
import com.dbsys.rs.lib.entity.Operator;
import com... |
package com.sbs.sbsattend.model;
public class Person{
private String name;
private int permission;
private int ID;
private double quotan;
public double getQuotan() {
return quotan;
}
public void setQuotan(double quotan) {
this.quotan = quotan;
}
public Person(String name, int permission, int iD, double ... |
package org.maxhoffmann.dev.Chain;
import java.util.ArrayList;
import org.apache.log4j.Logger;
public class ProcessChainTimeOperations {
private static final Logger LOGGER = Logger.getLogger(ProcessChainTimeOperations.class);
public ProcessChainTimeOperations() {
}
public void chainTimeOperations(ArrayList... |
/*
* File: Logger.java
* Author: David Green DGreen@uab.edu
* Assignment: 2018-1FallP1-3 - EE333 Fall 2018
* Vers: 1.0.0 09/02/2018 dgg - initial coding
*/
/**
* Abstract Super Class for loggers
*
* @author David Green dgreen@uab.edu
*/
public abstract class Logger{
// Some useful definitions
/**
... |
/*
* 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 br.edu.ifrs.mostra.services;
import br.edu.ifrs.mostra.daos.InstituicaoDao;
import br.edu.ifrs.mostra.models.Instituicao;
impo... |
package net.lantrack.framework.sysbase.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamW... |
import java.io.*;
class PalindromeInt{
public static void main(String args[]) throws IOException{
int num,rem=0,rev=0;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the number");
num=Integer.parseInt(br.readLine());
int ori=num;
while(num!=0... |
package hr.apps.cookies.mcpare.dialogs;
import android.app.AlertDialog;
import android.content.Context;
/**
* Created by lmita_000 on 4.8.2015..
*/
public class NoticeDialog extends AlertDialog {
protected NoticeDialog(Context context) {
super(context);
}
@Override
public void setMessage(... |
package br.com.fiap.bean;
import java.io.InputStream;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.servlet.http.Part;
import br.com.fiap.dao.GenericDao;
import br.com.fiap.entity.Livro;
@ManagedBean(name="bLivro")
@RequestScoped
public... |
/**
* Spring Security configuration.
*/
package com.eikesi.im.message.security;
|
package com.Premium.service;
import com.Premium.bean.Project;
public interface ProjectService {
public void addProject(Project project);
public Project getProjectDetails();
}
|
package com.buddybank.mdw.dataobject.util;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.imageio.ImageIO;
import org.apache.commons.cod... |
package cz.muni.fi.pa165.monsterslayers.tests;
import cz.muni.fi.pa165.monsterslayers.dao.UserRepository;
import cz.muni.fi.pa165.monsterslayers.entities.User;
import cz.muni.fi.pa165.monsterslayers.enums.HeroStatus;
import cz.muni.fi.pa165.monsterslayers.enums.RightsLevel;
import org.junit.Assert;
import org.junit.Be... |
package visitor;
import aquarium.jellies.Jelly;
public class AquariumVisitor {
public void admire(Jelly jelly) { }
}
|
package com.advancementbureau.encrypt;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class DecryptOne {
public static void main(String args[]) throws FileNotFoundException {
File inputFile = new File("output.txt");
Scanner in = n... |
package com.example.model;
import java.sql.Time;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormatter {
public static final void convertToDate(Date date){
SimpleDateFormat ft = new SimpleDateFormat ("yyyy.MM.dd");
ft.format(date);
}
public static final void convertToTime(Time t... |
/*
* Parts of code created by 2011-2014, Peter Abeles
*/
package imagestitcher;
/**
*
* @author cjhay
*/
import boofcv.abst.feature.associate.AssociateDescription;
import boofcv.abst.feature.associate.ScoreAssociation;
import boofcv.abst.feature.detdesc.DetectDescribePoint;
import boofcv.abst.feature.detect.inter... |
package buttley.nyc.esteban.magicbeans.model.boards.gamelevels;
import buttley.nyc.esteban.magicbeans.model.boards.Board;
import buttley.nyc.esteban.magicbeans.model.boards.BoardTypeEnum;
import buttley.nyc.esteban.magicbeans.model.boards.widgets.WidgetPool;
/**
* Created by Spoooon on 1/18/2015.
*/
public class G... |
package com.karya.bean;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class BudgetMonthlyDistributionBean {
private int bmdId;
@NotNull
@NotEmpty(message = "Please enter monthly distribution code")
private String distName;
@NotNull
@NotEmpty(me... |
package tasks;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.concurrent.ExecutionException;
import org.apache.commons.cli.BasicParser;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.Options;
im... |
package com.mobiwise.challangeapp.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
@Entity
@Table(nam... |
package edu.mit.cci.simulation.web;
import edu.mit.cci.simulation.model.CompositeSimulation;
import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import... |
package com.base.widget;
import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
i... |
package com.deepak.order.model;
/**
* Deepak Singhvi
*/
public class User {
private String emailId;
private String userFirstName;
private String userLastName;
public User() {
}
public User(String userId, String firstName, String lastName) {
this.emailId = userId;
this.userFirstName = firstName;... |
package com.sunny.concurrent.hashmap;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
/**
* <Description> HashMap的死循环, JDK1.8不会出现该问题<br>
*
* @author Sunny<br>
* @version 1.0<br>
* @taskId: <br>
* @createDate 2018/10/22 10:59 <br>
* @see com.sunny.concurrent.hashmap <br>
... |
package org.uth.jdgtest1;
import org.uth.jdgtest1.listeners.ExpirationEventLogListener;
import java.util.concurrent.TimeUnit;
import org.infinispan.client.hotrod.*;
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
import org.infinispan.client.hotrod.impl.ConfigurationProperties;
public class Re... |
package org.point85.domain.collector;
import java.util.Objects;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persist... |
package cz.muni.fi.pa165.monsterslayers.service;
import org.dozer.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* Implementation of bea... |
package com.test.base;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashSet;
/**
* 测试,打印图出来
* @author YLine
*
* 2019年12月6日 上午10:37:22
*/
public class NodeUtil
{
public static void print(Node node)
{
if (null == node)
{
System.out.println("node = null")... |
package test;
import javafx.geometry.Point2D;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Created by dimaf on 27.02.2018.
*/
public class Main {
public static void main(String[] args) {
System.out.println(" Hello world ");
try {
// Properties pro... |
package com.infohold.bdrp.authority.manager.impl;
import java.util.List;
import org.apache.shiro.config.Ini;
import org.apache.shiro.config.Ini.Section;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.Autowired;... |
package com.despegar.university.exercises.concurrence.domain.utils;
import static org.testng.Assert.assertEquals;
import org.joda.time.LocalDateTime;
import org.testng.annotations.Test;
@Test
public class DateUtilsTest {
public void toStringTest() {
String expected = "2015-01-10";
LocalDateTime... |
package mx.santander.listener.dao;
import mx.santander.listener.model.TycsServiceMessage;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface TycsServiceMessageDao extends CrudRepository<TycsServiceMessage, Long> {
TycsServiceM... |
package Stream_Concept;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class map_for_stream {
public static void main(String[] args) {
/*
Stream map() method is useful to map or transform an input collection into a new outp... |
package com.atomix.synctask;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.a... |
package demo;
import lombok.Data;
@Data
public class Feed {
private String query;
private double bid;
private int campaignID;
private int queryGroupID;
public Feed(String query, double bid, int campaignID, int queryGroupID) {
this.query = query;
this.bid = bid;
this.campai... |
/*
* Copyright (c) 2020. The Kathra 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 applicable law ... |
/*******************************************************************************
* 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 digit;
import java.util.Scanner;
public class StringExam {
public static void main(String []args){
// String outS = new String();
// String passwd = getRandString(90000);
// crackPasswd(passwd, outS, 0);
// crackPasswd(passwd, outS);
}
/**
* 循环方式
* @para... |
public class Cercle extends Figure {
int rayon;
Cercle (int r){
super("Cercle");
this.rayon = r;
}
public double aire() {
return 3.14 * this.rayon * this.rayon;
}
public String toString() {
return "je suis un cercle d'aire" + this.aire();
}
} |
package mtuci.nikitakutselay.mobileapplicationprogrammingcourse;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MenuInflater;
import android.app.DialogFragme... |
/*******************************************************************************
* Copyright 2013 SecureKey Technologies Inc.
*
* 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
*
* ht... |
/*
* 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 telas;
import dao.UsuarioDAO;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
... |
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.29.0.4181.a593105a9 modeling language!*/
package ca.mcgill.ecse223.kingdomino.controller;
// line 9 "../../../../../TransferObjects.ump"
public class TODomino
{
//------------------------
// MEMBER VARIABLES
//------------------------... |
package me.darkeet.android.demo.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import me.darkeet.android.base.DRBaseStackFragment;
import me.darkeet.android.demo.R;
import me.darkeet.android.demo.constant.IntentConstants;
import me.darke... |
/*
// Definition for a Node.
class Node {
int val;
Node next;
Node random;
public Node(int val) {
this.val = val;
this.next = null;
this.random = null;
}
}
*/
class Solution {
public Node copyRandomList(Node head) {
//Edge case
if(head == null) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.