text stringlengths 10 2.72M |
|---|
/*
* Copyright (c) 2013-2014, Neuro4j.org
*
* 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... |
package dev.liambloom.softwareEngineering.chapter11.polygonComparable;
public class Square extends Rectangle {
// Constructors
public Square() {
super();
}
public Square(double s) {
super(s, s);
}
// Inherited
@Override
public String toString() {
return "Square... |
package com.cheese.radio.ui.media.anchor;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.cheese.radio.base.cycle.BaseActivity;
import static com.cheese.radio.inject.component.ActivityComponent.Router.author;
/**
* Created by 29283 on 2018/3/13.
*/
@Route(path = author)
public class AnchorAc... |
package Interfaces;
import Model.mTable; /*Untuk memanggil mTable.java dalam package Model*/
import java.util.List; /*Untuk memanggil package List pada java */
public interface InterfacesSewaBuku {
public List<mTable> GetAll();
}
|
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.*;
public class PrintFirstNonRepeatingChar {
// using integer array to print first non repeating character
public static char printFirstUniqChar(String str) {
if(str == null || str.length() == 0) {
return Character.MIN_... |
package com.si.ha.device.service;
import org.springframework.data.jpa.repository.JpaRepository;
import com.si.ha.device.Device;
public interface DeviceDao extends JpaRepository<Device, Long>{
}
|
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
public class MagicalThinking {
public static void main(String[] args) throws IOException {
BufferedReader f = new BufferedReader(new FileReader("C-small-test.in"));
PrintWriter out = new PrintWrit... |
package me.basiqueevangelist.datapackify.mixins;
import net.minecraft.village.TradeOffers;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(TradeOffers.SellSuspiciousStewFactory.class)
public interface SellSuspiciousStewFacto... |
/*
* Created on 22/08/2008
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.citibank.ods.persistence.pl.dao;
import com.citibank.ods.entity.pl.BaseTplProdAssetTypeEntity;
/**
* @author rcoelho
*
* To ch... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javafxtt.model;
/**
*
* @author LMI
*/
public class Player {
private int id;
private String name;
private String firstName;
private String team;
private String ranking;
public Player... |
/*
* 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 Interface;
import Exception.*;
import app.Sistema;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
*... |
package com.newlecture.web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ja... |
/*
* (C) Copyright IBM Corp. 2020.
*
* 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 agreed to in w... |
package com.ziaan.scorm;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class CalendarBean
{
public CalendarBean()
{
calendar = Calendar.getInstance();
calendar.set(5, 1);
}
p... |
package com.example.marta.zoo.animals;
/**
* Created by marta on 10/11/2017.
*/
public abstract class Animal {
private int cashValue;
private String name;
private int weight;
private int age;
public Animal(int cashValue, String name, int weight, int age) {
this.cashValue = cashValue;
... |
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.*;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.serv... |
package lxy.liying.circletodo.task;
import java.util.List;
import java.util.Set;
import lxy.liying.circletodo.domain.SelectedColor;
/**
* =======================================================
* 版权:©Copyright LiYing 2015-2016. All rights reserved.
* 作者:liying
* 日期:2016/8/15 12:54
* 版本:1.0
* 描述:统计... |
package scl.oms.outagemap;
import com.esri.core.geometry.Point;
import com.esri.core.geometry.Polygon;
/**
* This static class is used to house geometry operations not provided with
* Esri's Java API
*
* @author jstewart
*/
public class GeometryTool {
/**
* The following method was derived from the fol... |
import javax.servlet.*;
import java.io.*;
import java.sql.*;
public class FormServlet implements Servlet
{
@Override
public void init( ServletConfig con )
{
System.out.println( "init method called" );
}
@Override
public void service( ServletRequest req,ServletResponse res )
throws Servle... |
package com.git.cloud.iaas.firewall;
import com.git.cloud.iaas.firewall.service.FirewallNatService;
import com.git.cloud.iaas.firewall.service.FirewallPolicyService;
import com.git.cloud.iaas.firewall.service.FirewallServiceInsideHwImpl;
import com.git.cloud.iaas.firewall.service.FirewallServiceOutsideHsImpl;
... |
public class Student {
private String studentName;
private String studentProfession;
private int course;
private double gpa;
public Student(String studentName,String studentProfession,int course, double gpa){
this.course = course;
if(gpa<=5){
this.gpa = gpa;
}els... |
import java.io.File;
import java.util.Date;
import java.io.IOException;
public class IAndOFile {
public static void main(String[] args) {
// TODO Auto-generated method stub
File f = new File("d:/Java/test.exe");
System.out.println("now file is: " + f);
System.out.println("judge exist: " + f.exists());
... |
/*
* OpenCV for Android NDK
* Copyright (c) 2006-2009 SIProp Project http://www.siprop.org/
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package projecteuler;
import java.io.IOException;
/**
*
* @author Sachin tripathi
*/
public class CountingSundays {
public static void main(String args[]) throws IOException {
int count =... |
package com.alibaba.dubbo.rpc;
import com.alibaba.dubbo.common.Node;
//调用接口
public interface Invoker<T> extends Node {
//获取服务接口
Class<T> getInterface();
//方法调用
Result invoke(Invocation invocation) throws RpcException;
} |
package slimeknights.tconstruct.tools.common.entity;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.ItemStack;
import net.mi... |
package com.blurack.activities;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
im... |
/*
* 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.ufsc.ine5605.clavicularioeletronico.excecoes;
/**
*
* @author Flávio
*/
public class ParametroNuloException extends Ille... |
package com.yc.education.service.impl;
import com.yc.education.mapper.RolesMapper;
import com.yc.education.model.Roles;
import com.yc.education.service.RolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @ClassName ... |
package com.restAssured.com.restAssured.Deepak;
import java.util.List;
import org.testng.Assert;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import org.testng.asserts.SoftAssert;
import bin.BaseClass;
import bin.RestResponse;
import bin.Result;
import io.restassured.mapper.ObjectMap... |
package com.pisen.ott.launcher.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import com.pisen.ott.launcher.R;
/**
* 公... |
package gil.server.data;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PersonTest {
@Test
public void hasId() {
Integer id = 1;
Person programmer = new Person();
programmer.setId(id);
assertEquals(id, programmer.getId());
}
@Test
... |
package hwarang.artg.mapper;
import java.util.List;
import hwarang.artg.member.model.TasteVO;
public interface TasteMapper {
public int insertTaste(TasteVO t);
public int updateTaste(TasteVO t);
public int deleteTaste(String taste_name);
public TasteVO selectTaste(String taste_name);
public List<TasteVO> select... |
package Chinese.ChineseDecorator;
import Chinese.Chinese;
public class MagicMasala extends DishDecorator {
Chinese chinese;
public MagicMasala(Chinese chinese){
this.chinese = chinese;
}
@Override
public double cost() {
return 10.0 + chinese.cost();
}
@Override
publi... |
package project.test;
import org.junit.After;
import org.junit.Assert;
import org.junit.Test;
import org.junit.Before;
import project.core.groupPage.GroupCard;
import project.core.groupPage.GroupProfilePage;
import project.core.homePage.HomePage;
import project.core.loginPage.LoginPage;
import project.model.TestBot;
... |
/*
* Created on 2004-05-24
*/
package com.esum.ebms.v2.msh;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.Iterator;
import java.util.StringTokenizer;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.xml.soa... |
package com.hackthon.kisainsur.src.guest.interfaces;
import com.hackthon.kisainsur.src.guest.models.TravelResponse;
import com.hackthon.kisainsur.src.main.models.DefaultResponse;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
impo... |
//
// Decompiled by Procyon v0.5.36
//
package com.davivienda.sara.procesos.reintegros.notas.session;
import javax.xml.ws.WebServiceException;
import java.util.Date;
import com.davivienda.utilidades.conversion.FormatoFecha;
import com.davivienda.sara.constantes.TipoCuenta;
import java.math.BigDecimal;
import com.da... |
package com.example.front_end_of_clean_up_the_camera_app.MechantData;
public class MStoreManageUserComment {
private String userName;
private String commentDate;
private String commentContent;
private String commentGrade;
public MStoreManageUserComment(String userName,String commentGrade,Stri... |
package test;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import ... |
package com.example.bob.health_helper.Community.presenter;
import com.example.bob.health_helper.Base.BaseMvpPresenter;
import com.example.bob.health_helper.Community.contract.NewAnsweredQuestionContract;
import com.example.bob.health_helper.NetService.Api.AnswerService;
import io.reactivex.android.schedulers.AndroidS... |
package com.infiniteskills.mvc.controllers;
import com.infiniteskills.mvc.entity.Organization;
import com.infiniteskills.mvc.entity.Program;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
impo... |
package com.blog.Idao;
import java.util.List;
import com.blog.bean.DongTai;
import com.blog.util.DBUtil;
public interface IDongTaiDao {
/**
* 查询动态数量is_used=false
*/
public int getTotalCountfalse();
/**
* 查询动态is_used=false
*/
public List<DongTai> dongtaiByPagefalse(int currentPage, int pageSize);
/**
... |
/*
* 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 health.expert.system;
import com.jfoenix.controls.JFXButton;
import java.io.IOException;
import java.net.URL;
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 q2_2019;
/**
*
* @author keera
*/
public class Q2_2019 {
/**
* @param args the command line arguments
*/
... |
package com.example.nowdiary.Model;
import java.io.Serializable;
import java.util.Date;
public class HistoryDetail implements Serializable {
private String id;
private String content;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
pub... |
package com.sample.problem.writer;
public class WriterFactory {
public Writer getWriter(WriterType type) {
switch (type) {
case DB_WRITER:
return new DBWriter();
default:
return new ConsoleWriter();
}
}
}
|
package pushMessage;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonAppend;
import lombok.Data;
import lombok.ToString;
import java.util.Map;
/**
* @program: left-box
* @description:
* @author: Payton Wang
* @date: 2019-10-03 12:20
**/
@Data
@ToString
@JsonA... |
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
public class Handson3Reducer extends Reducer<Text, Text, Text, IntWritable> {
@Override
public void reduce(Text key, Iterable<Text> values, Context context) throw... |
package com.example.qunxin.erp.activity;
import android.app.Dialog;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;... |
package io.breen.socrates.model.event;
import io.breen.socrates.model.wrapper.SubmissionWrapperNode;
import io.breen.socrates.util.ObservableChangedEvent;
/**
* The event that is generated by a SubmissionWrapperNode when all of its children that are
* SubmittedFileWrapperNodes become completed (causing the Submissi... |
package ru.forpda.example.an21utools.widget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import ru.forpda.example.an21utools.util.LogHelper;
/*... |
package Beans;
import javax.persistence.Embeddable;
@Embeddable
public class Aliean_Name {
private String fname;
private String mlame;
public String getFname() {
return fname;
}
public void setFname(String fname) {
this.fname = fname;
}
public String getMlame() {
return mlame;
}
p... |
package com.examples;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.*;
public class Problem037Test {
private final... |
import com.google.gson.Gson;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import com.google.gson.Jso... |
package ben.tek.code.labcorp.model;
import org.springframework.stereotype.Component;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
@Component
public abstract class Employee {
public static final int WORK_DAY_MAX = 260;
protected String firstName;
protected String lastName;
protected String pho... |
package ua.epam.provider.encryptor;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Objects;
public class Encryptor {
public static String encrypt(String password, String email) {
String generatedPassword;
... |
package controlador;
public class GenerarTiempoLlegadaClientes {
}
|
package com.likewater.articleone.adapters;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.likewater.articleone.models.Rep;
import com.likewater.articleone.ui.RepDetailFragment;
import java.util.ArrayList;
public c... |
package me.lightlord323dev.cursedvaults.util;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Khalid on 2/2/2018.
*/
public class LocationUtils {
public static String serializeLocation(Location loc) {
return loc.getWorld().getNa... |
package de.fu_berlin.cdv.chasingpictures.location;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.util.HashMap;
impor... |
package hudson.plugins.parameterizedtrigger;
import hudson.model.Hudson;
import hudson.slaves.EnvironmentVariablesNodeProperty;
import hudson.slaves.NodeProperty;
import java.util.HashMap;
import java.util.Map;
public class GlobalNodeProperties {
private static final Map<String, String> NODE_PROPERTIES = new Ha... |
/**
* @Author: Joakim Olsson <lomo133>
* @Date: 2018-11-04T23:40:00+01:00
* @Last modified by: lomo133
* @Last modified time: 2018-11-04T23:40:25+01:00
*/
import java.util.Scanner;
import java.util.regex.*;
public class Solution
{
public static void main(String[] args){
Scanner in = new Scanner(Sys... |
public class DateTime
{
private int month;
private int day;
private int year;
private int daysPerMonth[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
private int hour;
private int minute;
private int second;
public DateTime(int theMonth, int theDay, int theYear, int theHour, int theMinute, int theS... |
package com.huadin.huadin;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterVi... |
package cn.hzw.graffiti;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
/**
* 来自 伍玉南 的装逼小尾巴 on 17/12/22.
* 生成马赛克底图的工具
*/
public class MosaicUtils {
/**
* 马赛克效果
*
* @param bitmap 原图
* @return 马赛克图片
*/
pub... |
package DOM_Difference;
import org.jsoup.nodes.Attribute;
public class AttributeInfo {
Attribute attr;
String differenceType;
int differenceCode;
public String getdifferenceType(int i)
{
String diffType="";
if(i == 12)
{
//System.out.println("***");
diffType="1.2.2 Index Chang... |
package com.revolut.moneytransfer.model;
public class AccountCreateRequest {
private String name;
public AccountCreateRequest() {
}
public AccountCreateRequest(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String nam... |
package com.example.student.laptrinhandroid_tuan02_bai01;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private... |
/*
* 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 jc.fog.presentation.commands;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
imp... |
package com.java.springboot.service.impl;
import com.java.springboot.entity.Dept;
import com.java.springboot.mapper.DeptMapper;
import com.java.springboot.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transa... |
package com.tyland.musicbox.data;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.provider.MediaStore;
import android.provider.MediaStore.Audio.ArtistColumns;
import com.tyland.musicbox.model.Artist;
import ja... |
/**
* Copyright 2005 Sean J. Barbeau
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 agreed to i... |
package com.grebnev.game.actors;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEve... |
package com.mobdeve.s11.g32.tindergree.Models;
import java.util.ArrayList;
public class Matches {
public String uid;
public ArrayList<String> uidMatches;
public ArrayList<String> uidMatchRequests;
public Matches(String uid) {
this.uid = uid;
}
public Matches(String uid, ArrayList<S... |
/*
* Name: Luis Gustavo Grubert Valensuela Z#:23351882 lvalensuela2015@fau.edu
* Course: JavaProgramming
* Professor: Dr. Mehrdad Nojoumian
* Due Date:04/12/2018 Due Time: 11:30PM
* Assignment Number: lab 08
* Last Changed: 03/29/2018
*
* Description:
* Program to show inheritanse throught out clas... |
package com.myvodafone.android.front.payment;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view... |
package hw9.task3;
public class Circle {
private static final double PI = 3.14;
private double radiuse;
public Circle(double radiuse) {
this.radiuse = radiuse;
}
public double getRadiuse() {
return radiuse;
}
public void setRadiuse(double radiuse) {
this.radiuse =... |
package com.dh.comunicacao.comunicaocombundle;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import com.dh.comunicacao.R;
public class MainActivity extends AppCompatActivity {
Fragment... |
package fr.cea.nabla.interpreter;
import java.io.File;
import java.io.IOException;
import org.graalvm.polyglot.Context;
import org.graalvm.polyglot.Source;
import org.graalvm.polyglot.Value;
class TestMeshWrapper {
public static void main(String[] args) throws IOException {
Context polyglot = Context.newBuilder... |
package sort;
import java.util.ArrayList;
import java.util.List;
/*
문제 설명
0 또는 양의 정수가 주어졌을 때, 정수를 이어 붙여 만들 수 있는 가장 큰 수를 알아내 주세요.
예를 들어, 주어진 정수가 [6, 10, 2]라면 [6102, 6210, 1062, 1026, 2610, 2106]를 만들 수 있고, 이중 가장 큰 수는 6210입니다.
0 또는 양의 정수가 담긴 배열 numbers가 매개변수로 주어질 때, 순서를 재배치하여 만들 수 있는 가장 큰 수를 문자열로 바꾸어 return 하도록 soluti... |
package com.miyatu.tianshixiaobai.activities.search;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.Vie... |
package ro.microservices.store.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstruc... |
package codePlus.AGBasic1.dp;
import java.util.Scanner;
/*
* 2021.01.12
* 11053번 - 가장 긴 증가하는 부분 수열
*/
public class DP_11053 {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int numbers[] = new int[n];
for(int i=0; i<numbers.length; i++) {
numbers[i]... |
package com.sirma.itt.javacourse.threads.task4.synchronizedthreads;
import com.sirma.itt.javacourse.InputUtils;
/**
* Runner class for synchronized counting.
*
* @author Simeon Iliev
*/
public class RunSyncThreads {
/**
* Main method.
*
* @param args
* arguments for the main method.
*/
p... |
package modul.systemu.asi.frontend.Controllers;
import modul.systemu.asi.backend.dao.CommentRepository;
import modul.systemu.asi.backend.dao.UserRepository;
import modul.systemu.asi.backend.services.NotificationService;
import modul.systemu.asi.backend.services.TaskService;
import modul.systemu.asi.frontend.model.Noti... |
package com.wxt.designpattern.command.test02.example3;
/*********************************
* @author weixiaotao1992@163.com
* @date 2018/12/1 22:40
* QQ:1021061446
* 命令接口,声明执行的操作
*********************************/
public interface Command {
/**
* 执行命令对应的操作
*/
void execute();
/**
* 设置命令的接... |
package com.health.system.feign.factory;
import com.health.system.domain.SysRole;
import com.health.system.feign.RemoteRoleService;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author zq
*/
@Slf4j
@Component
public class... |
package org.jaxws.stub2html.service;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.jaxws.stub2html.model.StubTypeTree;
/**
*
* @author chenjianjx
*
*/
public class StubTypeTreeRepository {
private Map<Class<?>, StubTypeTree> repository = new HashMap<Class<?>, StubType... |
package org.dimigo.vaiohazard.Object;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlo... |
package com.yufei.sys.query;
import com.yufei.base.BaseQuery;
import com.yufei.sys.model.SysUser;
import java.util.Calendar;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;
public class SysUser... |
package ru.job4j.array;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* re-sorting program
* @author Aliaksandr Kuzura (vorota-24@bk.ru)
* @version $Id$
* @since 0.1
*/
public class BubbleSortTest {
/**
* compares an array with a sorted a... |
package com.example.hante.newprojectsum.tablelayout.fragment;
import android.os.Bundle;
import com.example.hante.newprojectsum.R;
import com.example.hante.newprojectsum.tablelayout.LazyFragment;
/**
* Created by handan on 2016/10/25.
*/
public class EFragment extends LazyFragment {
public static final String... |
package com.mycontacts.localstorage;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.mycontact... |
import static org.junit.Assert.*;
import java.util.Iterator;
import org.junit.Before;
import org.junit.Test;
public class StackImplTest {
private StackImpl<Student> studentRecords;
@Before
public void setUp() throws Exception {
studentRecords = new StackImpl<Student>();
}
/**
* Should be able push into ... |
package com.heyskill.element_core.net.callback;
public interface IRequest {
void onRequestStart();
void onRequestEnd();
}
|
/**
* @Title: MergeWithBrandsService.java
* @Package com.beike.service.brand
* @Description: 品牌聚合业务逻辑接口
* @author Qingcun Guo guoqingcun@qianpin.com
* @date Aug 29, 2012 10:59:26 AM
* @version V1.0
*/
package com.beike.service.brand;
import com.beike.entity.brand.MergeWithBrands;
/**
* @ClassName:... |
package com.ykl.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ykl.entity.EasybuyProduct;
import com.ykl.pojo.RespBean;
import com.ykl.service.EasybuyProductCategoryService;
import com.ykl.service.EasybuyProductService;
import io.swagger.annotations.Api;
import i... |
package com.mountblue.kbrshoppingsite.service;
import com.mountblue.kbrshoppingsite.model.Product;
import com.mountblue.kbrshoppingsite.model.ProductImage;
import com.mountblue.kbrshoppingsite.repository.ProductImageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.s... |
package com.example.elearning.entities;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.util.List;
@Getter @Setter @NoArgsConstructor
@Entity
@DiscriminatorValue("A")
public class Apprenant extends Profile {
@ManyToMany(cascade = { Cascad... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.