text stringlengths 10 2.72M |
|---|
package com.snxy.pay.serviceImpl;
import com.snxy.pay.config.BusinessTypeEnum;
import com.snxy.pay.dao.mapper.TradeResultMapper;
import com.snxy.pay.domain.TradeResult;
import com.snxy.pay.service.TradeResultService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springfram... |
/*
* Copyright 2002-2022 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.raghu.alogirthms.sequencesandnumbers;
import java.util.Scanner;
/**
* Generate and print Fibonacci number by both recursion and iterative approaches.
* Fibonacci number is sum of previous two Fibonacci numbers fn= fn-1+ fn-2
* first 10 Fibonacci numbers are 1, 1, 2, 3, 5, 8, 13, 21, 34, 55
*
* @author... |
package com.wadi.set.logic;
import com.wadi.set.exceptions.WrongCardsAddedException;
import java.util.ArrayList;
import java.util.Collections;
public class CardState extends ArrayList<Card> {
public CardState() {
}
public void addCards(Card ... cards) throws WrongCardsAddedException {
if (car... |
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.io.PrintStream;
import static java.lang.System.out;
public class writer {
Date today;
String pattern;
SimpleDateFormat Pattern;
PrintStream x;
PrintStream console;
p... |
package com.deepakm.ui;
import com.deepakm.impl.Key;
import com.deepakm.impl.instrument.guitar.FretPosition;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;
import java.awt.Color;
import java.awt.Component;
/**
* Created by dmarathe ... |
/*
* Copyright 2015-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package org.bnguyen.cc.graph;
/**
* Created by Binh Van Nguyen (binhnv80@gmail.com)
*/
public interface EdgeContainer<V, E> {
boolean addEdge(E e);
boolean containsEdge(E e);
E getEdge(V source, V target);
void removeEdge(E e);
int size();
}
|
public class SumOddRange {
public static boolean isOdd(int number){
if(number<0)
return false;
else return number % 2 != 0;
}
public static int sumOdd(int start,int end){
if(end<=0 || start <= 0) {
return -1;
}
if(end<start)
return -1;
... |
/** #dynamic-programming */
import java.util.Scanner;
class IngenuousCubrency {
public static long calculate(int amounts, int[] elements) {
int len = elements.length;
long[] result = new long[amounts + 1];
result[0] = 1;
for (int i = 0; i < len; i++) {
for (int j = elements[i]; j <= amounts; j... |
package com.layduo.framework.config;
/**
* 日期时间格式化、适用于jdk1.8日期类型LocalDate 和 LocalDateTime
* @author layduo
* @createTime 2019年12月10日 下午5:25:00
* @learn to : https://blog.csdn.net/Linchack/article/details/88791785
*/
import java.time.format.DateTimeFormatter;
import org.springframework.boot.autoconfigure.jackson.Jack... |
package com.zyxo.hubformatapp.base.services;
import com.zyxo.hubformatapp.base.domain.Extent;
import com.zyxo.hubformatapp.base.domain.Hbdf;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook... |
package controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.Actio... |
package com.alibaba.druid.bvt.sql;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.druid.sql.ast.SQLDataTypeImpl;
import com.alibaba.druid.sql.ast.expr.SQLCastExpr;
import com.alibaba.druid.sql.dialect.oracle.parser.OracleExprParser;
public class EqualTest_cast extends TestCase {
pu... |
package com.codetop.dp;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
@Slf4j
public class MaxProfit {
/**
* j->0,表示当前不持股
* j->1,表示当前持股
* dp[i][j] 表示i这一天结束的时候,手上持股状态为j时,我们持有的现金数
* basecase:
* dp[i][0] i这天,不持股
* 1.昨天不持股,今天什么都不做
* 2.昨天持股,今天卖出股票(... |
package Repository;
import Model.ProgramState.ProgramState;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.LinkedList;
import java.util.List;
public class Repository implements IRepository {
private String logFilePath;
privat... |
package com.jgw.supercodeplatform.project.zaoyangpeach.service;
public class DataSyncService {
}
|
package com.cpro.rxjavaretrofit.entity;
/**
* Created by lx on 2016/5/23.
*/
public class FilterEntity {
private int id;
private String name;
public FilterEntity(int id, String name){
this.id = id;
this.name = name;
}
public int getId() {
return id;
}
public voi... |
public class Chocolate{
public static int breakChocolate(int n, int m) {
int breaks=0;
if(n<=0&&m<=0){
return breaks;
}else{
int chocolates=n*m;
while(chocolates%2==0){
breaks++;
}
return breaks;
}
} |
package swsk.cn.rgyxtq.subs.user.V;
/**
* Created by apple on 16/3/11.
*/
public interface MultiItemTypeSupport<T>{
int getLayoutId(int position,T t);
int getViewTypeCount();
int getItemViewType(int position,T t);
}
|
package com.core;
public class MovementSystem {
private boolean canMove;
private float moveSpeed;
private boolean left;
private boolean right;
private boolean up;
private boolean down;
private GameObject go;
public MovementSystem(GameObject go) {
this.go = go;
moveSpeed = 3;
}
public bo... |
package ch.ethz.geco.t4j.internal;
import ch.ethz.geco.t4j.obj.ITournament;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;
import org.apache.http.message.BasicNameValuePair;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
public class Feature... |
package pl.globallogic.qaa_academy.coreclasses;
public class StringBuildersExamples {
public static void main(String[] args) {
//StringBuffer for multi thread environment object
//StringBuilder One object to work on
StringBuilder sb1 = new StringBuilder();
StringBuilder sb2 = new... |
package org.aksw.autosparql.client;
import com.extjs.gxt.ui.client.event.EventType;
public class AppEvents {
public static final EventType NavHome = new EventType();
public static final EventType NavQuery = new EventType();
public static final EventType NavLoadedQuery = new EventType();
public static fina... |
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class oos {
public static void main(String[] args) ... |
package com.test.linklist;
import static org.junit.Assert.assertArrayEquals;
import java.util.Arrays;
import com.test.base.LinkGraph;
import junit.framework.TestCase;
/**
* .链表实现的图
* @author YLine
*
* 2019年3月22日 下午4:23:46
*/
public class LinkSample extends TestCase
{
private LinkSolution solution;
... |
package com.example.dictionary.web.controller;
import com.example.dictionary.web.YandexTranslate.Languages;
import com.example.dictionary.web.YandexTranslate.YandexTranslateApi;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils;
import org.json.JS... |
package tech.liujin.wuxio.animatedrawable;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import a... |
package CookieDemo;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWr... |
/*******************************************************************************
* Copyright (c) 2021 Composent Inc., and others.
*
* 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
*
* ... |
package org.example.data.service.department;
import org.example.data.model.department.Department;
import org.example.data.repository.department.DepartmentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Pag... |
package exercicio01;
public class Aluno extends Pessoa {
public Double bolsa;
public String serie;
public Aluno(String id, String nome, Double bolsa, String serie) {
super(id, nome);
this.bolsa = bolsa;
this.serie = serie;
}
@Override
public String toString() {
return "Aluno: " + "\nid:... |
package com.asky.backend.entity;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import javax.persistence.*;
import java.io.Seriali... |
package vision.model;
import java.util.List;
import vision.model.xml.Hole;
import vision.model.xml.Wall;
import com.jme3.math.Vector2f;
import com.jme3.math.Vector3f;
public class WallAdapter {
private final Wall wall;
/**
* Contructs a WallAdapter.
* @param wall
*/
public WallAdapter(Wall wall) {
thi... |
package com.example.seanreddy.movieinfo.network;
import com.example.seanreddy.movieinfo.models.MovieDataBase;
import retrofit2.Call;
import retrofit2.http.GET;
/* Retrofit interface to get calls */
public interface MovieDataBaseService {
String SERVICE_ENDPOINT = "https://api.themoviedb.org";
@GET("3/search/m... |
package com.citibank.ods.modules.product.prodsubfamlprvt.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.ods.common.form.BaseForm;
import com.c... |
package com.example.demo.processor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.item.ItemWriter;
import java.util.List;
@Slf4j
public class DemoWriter implements ItemWriter<String> {
@Override
public void write(List<? extends String> items) {
items.forEach(this::write);
}
... |
package com.example.vplayer.fragment.event;
public class UpdateAdapterEvent {
}
|
public class Productoscongelados extends Productos{
private String tc;
public Productoscongelados(String fc,String nl,String tc){
this.fc=fc;
this.nl=nl;
this.tc=tc;
}
public void muestracongelados(){
System.out.println("La fecha de caducidad es: "+fc);
System.out.println("El numero del lote es:... |
package net.tecgurus.exception;
import java.util.Date;
import java.util.List;
public class ExceptionRespuesta {
private Date timestamp;
private List<MensajeError> mensajesError;
private String MensajeGeneral;
private String detallesGenerales;
public ExceptionRespuesta() {
super();
}
public Exceptio... |
import sun.audio.*;
import java.io.*;
public class PoskanzerAudioClip { // implements AudioClip
AudioData data;
InputStream stream;
public PoskanzerAudioClip(byte[] ssamps) {
data = new AudioData( ssamps );
}
private static final int[] expLut = {
0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3... |
package StackAndQueue;
import StackAndQueue.dog_and_cat_Queue.Cat;
import StackAndQueue.dog_and_cat_Queue.Dog;
import StackAndQueue.dog_and_cat_Queue.DogAndCatQueue;
import org.junit.Test;
/**
* Created by zjbao on 2018/11/22.
*/
public class DogAndCatQueueTest {
@Test
public void add() throws Exception {
... |
import java.io.*;
import java.util.*;
public class Main {
static class Edge {
int src;
int nbr;
int wt;
Edge(int src, int nbr, int wt) {
this.src = src;
this.nbr = nbr;
this.wt = wt;
}
}
public static void main(String[] args) throws Exception {
... |
package com.fm.scheduling.ui.appointment;
import com.fm.scheduling.domain.Appointment;
import com.fm.scheduling.exception.SchedulingException;
import com.fm.scheduling.service.SchedulingService;
import com.fm.scheduling.ui.util.UtilUI;
import com.fm.scheduling.util.UtilMessages;
import javafx.event.ActionEvent;
import... |
package com.bcreagh.data;
public class BinaryNode implements BdbNode {
private String key;
private String value;
private NodeInfo leftNodeInfo;
private NodeInfo rightNodeInfo;
@Override
public String getKey() {
return key;
}
@Override
public String getValue() {
r... |
package com.nevin.coffeeMachine.dunzo.assigment;
import org.springframework.boot.SpringApplication;
public class NevinDunzoCoffeeMachineApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(NevinDunzoCoffeeMachineApplication.class, args);
}
}
|
package org.peterkwan.udacity.mysupermarket.ui;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView... |
package com.corejava.basic;
import com.corejava.basic.Outer.Inner;
public class NestedInnerClassTest {
public static void main(String[] args) {
//invoke Inner class method
Outer.Inner inner=new Outer().new Inner();
inner.show();
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package josteo.infrastructure.RepositoryFramework;
import josteo.infrastructure.DomainBase.IEntity;
/**
*
* @author cristiano
*/
public interface IUnitOfWorkRepository {
void PersistNewItem(IEntity item);
... |
package edu.upenn.cis350.androidapp.DataInteraction.Management.MessageManagement;
import android.util.Log;
import java.net.URL;
import java.text.ParseException;
import java.util.*;
import java.text.SimpleDateFormat;
import org.json.simple.JSONObject;
import org.json.simple.JSONArray;
import org.json.simple.parser.... |
package ee.eerikmagi.testtasks.arvato.invoice_system.rest.json;
import javax.validation.constraints.NotNull;
/**
* Request object for the Add Parking REST API request.
*/
public class AddParkingRequest {
@NotNull
private Long customerID;
@NotNull
private Long parkingHouseID;
@NotNull
private DateObj start;
@... |
/*******************************************************************************
* Copyright (c) 2011 The University of York.
* 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 distribution, and is avail... |
package br.com.clean.arch.controller.rest;
import br.com.clean.arch.domain.dto.GivenParamDTO;
import br.com.clean.arch.domain.entity.ResultHistoryEntity;
import io.micronaut.http.HttpResponse;
public interface SumController {
HttpResponse<ResultHistoryEntity> calculateSum(
GivenParamDTO firstParam, GivenPara... |
package dfs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class C40 {
public static void main(String[] args) {
int[] candidates = { 10, 1, 2, 7, 6, 1, 1, 5 };
int target = 8;
Solution_1 solution = new Solution_1();
List<List<Integer>> res = solution.combinati... |
package com.infoworks.lab.rest.breaker;
import com.infoworks.lab.exceptions.HttpInvocationException;
import com.infoworks.lab.rest.template.Invocation;
import com.it.soul.lab.sql.entity.EntityInterface;
import java.net.HttpURLConnection;
import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.... |
package DAO;
import model.Card;
import java.util.List;
public interface CardDao {
public boolean addCard(Card card);
public boolean deleteCard(Card card);
public boolean updateCard(Card card);
public List<Card> getAllCard();
public Card getCardById(Long id);
}
|
package com.sample_mod.sample_package;
import java.util.HashMap;
import com.zhekasmirnov.horizon.runtime.logger.Logger;
public class Boot {
public static void boot(HashMap<String, String> sources) {
Logger.debug("TEST_MOD", "Hello from Java");
}
}
|
package Entyties.Responses;
import Entyties.Entity;
import Entyties.Project.Project;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
public class OpenProjectResponse extends Entity {
@JsonProperty("Project")
private Project project;
p... |
package com.cheese.radio.ui.home.page;
import com.cheese.radio.base.cycle.BaseFragment;
/**
* Created by 29283 on 2018/3/3.
*/
public class HomePageFragment extends BaseFragment<HomePageModel> {
}
|
package view;
import app.DSManager;
import app.Node;
import app.UDPDSManager;
import app.WebServiceDSManager;
import javafx.application.Platform;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.Observabl... |
package com.dirmod.cotizacionrestapi.service.impl;
import com.dirmod.cotizacionrestapi.domain.Cotizador;
import com.dirmod.cotizacionrestapi.service.CotizadorService;
import org.springframework.stereotype.Service;
@Service
public class CotizadorServiceImpl implements CotizadorService
{
@Override
public Cotizador g... |
package com.hardcoded.plugin.json;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
public class JsonParser {
public static JsonObject parseFromFile(File file) throws IOException {
FileInputStream stream = new FileInputStream(file);
byte[] bytes = stream.readAllBytes();
... |
package com.cinema.biz.model.base;
import java.util.Date;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name="sim_dependency")
public class TSimDependency {
@Id
private String dependencyId;
private String name;
private Integer runOrder;
private Date createTime;
private ... |
/*
* Copyright 2018-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package com.example.htw.currencyconverter.network.ConnectivityCheckerUtil;
import com.example.htw.currencyconverter.callback.OnlineChecker;
import java.io.IOException;
public class ExperimentalOnlineChecker implements OnlineChecker {
private final Runtime runtime;
public ExperimentalOnlineChecker(Runtime r... |
package sr.hakrinbank.intranet.api.service.bean;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PostFilter;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
imp... |
package org.vpontus.vuejs.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
imp... |
// import java.io.*;
// import java.util.*;
// class Pair {
// int i;
// int j;
// int val;
// Pair(int i, int j, int val) {
// this.i = i;
// this.j = j;
// this.val = val;
// }
// }
// class baek__2470 {
// public static void main(String[] args) throws IOException {
// BufferedReader br = new BufferedReader(new I... |
package com.hello.suripu.service.resources;
import com.google.common.base.Optional;
import com.google.protobuf.InvalidProtocolBufferException;
import com.hello.suripu.api.ble.SenseCommandProtos;
import com.hello.suripu.core.configuration.QueueName;
import com.hello.suripu.core.db.KeyStoreDynamoDB;
import com.hello.sur... |
package slimeknights.tconstruct.shared.block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.NonNullList;
impor... |
package com.esum.router.logger;
import java.io.File;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.commons.lang.StringUtils;
import org.slf4j.LoggerFactory;
import com.esum.framework.common.util.DateUtil;
import com.esum.fram... |
/*
* 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... |
package algo3.fiuba.modelo.cartas.moldes_cartas.cartas_magicas;
import algo3.fiuba.modelo.jugador.Jugador;
import algo3.fiuba.modelo.cartas.Magica;
import algo3.fiuba.modelo.cartas.efectos.EfectoAgujeroNegro;
import algo3.fiuba.modelo.cartas.efectos.EfectoNulo;
public class AgujeroNegro extends Magica {
public Ag... |
package com.wirelesscar.dynafleet.api;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import ja... |
package com.snowinpluto.tools.analysis;
import com.google.inject.Singleton;
import java.lang.reflect.Field;
import static com.google.common.base.Preconditions.checkNotNull;
@Singleton
public class FieldAnalyst {
public ColumnType analyst(Field f) {
checkNotNull(f);
Class typeClass = f.getType(... |
package by.belotserkovsky.pojos.constants;
/**
* Created by K.Belotserkovsky
*/
public enum Role {
USER("USER"),
ADMIN("ADMIN");
private final String type;
Role(String type){
this.type = type;
}
public String getType(){
return type;
}
}
|
package cn.rongcapital.mc2.me.ewq.app;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import cn.rongcapital.mc2.me.commons.infrastructure.ignite.IgniteServiceDeployment;
import cn.rong... |
package com.davivienda.utilidades.ws.cliente.consultaTotalesMultifuncional;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for consultaTotalesMultifuncionalDto complex type.
*
* <p>The following sche... |
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
/*
* 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 brunosousa
*/
public class fill... |
package com.test;
/**
*
* For strings S and T, we say "T divides S" if and only
* if S = T + ... + T (T concatenated with itself 1 or more times)
*
* S/T = 某个整数
*
* Return the largest string X such that X divides str1 and X divides str2.
* 求X1、X2的共同值
*
* 可以直接由长度,求的最大公约数,若最大公约数,不满足,则直接返回0
*
* 方案:逐个遍历
... |
package com.example.bottomnavigationtest.ui;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import co... |
package dao;
import models.User;
import java.util.List;
public interface UserDAO {
User getByLogin(String login);
User getByAuth(String password, String login);
void save(User user);
void update(User user);
void delete(User user);
}
|
package com.stackroute.pe2;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
public class FrequencyOfWordsCheckerTest {
FrequencyOfWordsChecker frequencyOfWordsChecker;
@Before
public void setUp() ... |
package com.flyingh.moguard.service;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import android.app.ActivityManager;
import android.app.ActivityManager.MemoryInfo;
import android.app.PendingIntent;
import android.app.Servi... |
package com.sample.web.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HealthInfoDTO {
private Long height;
private Long weight;
}
|
package com.galaksiya.education.rss.common;
public class Info {
public static final String RSS_FILE = "/home/galaksiya/Desktop/RSSfile.csv";
public static final String SERVLET_URL = "http://localhost:8080/feeds";
}
|
package sample;
import javafx.scene.image.Image;
import javafx.scene.paint.ImagePattern;
import javafx.scene.shape.Rectangle;
import java.io.Serializable;
import java.util.Random;
public class Choco implements Serializable {
public Rectangle choco;
public double x;
public double y;
pub... |
package com.online.model;
public class EmpAndAddr {
int eno;
String ename;
String edesignation;
String egender;
double esalary;
String eusername;
String epassword;
int eaid;
int aid;
String street;
String city;
String state;
int pincode;
String contact;
String email;
public EmpAndAddr() {
}
public... |
// Copyright (C) 2016 The Android Open Source Project
//
// 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 ... |
package com.jeeconf.kafka.sample.configs;
public class QueueTestConfiguration implements RouteConfiguration {
@Override
public String helloTopicEndpoint() {
return "seda:helloTopic";
}
}
|
/*
* 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 Model;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;... |
package ca.jbrains.pos;
public class Sale {
private Display display;
private Catalog catalog;
public Sale(Display display, Catalog catalog) {
this.display = display;
this.catalog = catalog;
}
public void onBarcode(String barcode) {
if ("".equals(barcode))
disp... |
public class ConsoleScreen implements IHorseScreen {
@Override
public void print(HorseBase horseBase) {
System.out.print(horseBase.getHorseName() + " , " +horseBase.getHorseScore().getValue() + "\n");
}
}
|
package io.github.joaomlneto.travis_ci_tutorial_java;
public class Driver {
public static void main(String[] args) {
int i = 17;
SimpleCalculator simplecalc = new SimpleCalculator();
int result = simplecalc.add(i, 25);
System.out.println("Simple Calculator\n Result: " + result + "\n");
}
} |
package com.invillia.acme.persistence.util;
import org.springframework.beans.factory.annotation.Value;
import javax.inject.Named;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
@Named
@Converter
public class CreditCardScramblePersistenceConverter implements AttributeConverter<String... |
package com.mx.cdmx.cacho.partnersample;
import java.util.Objects;
public class Equals {
public static void main(String[] args) {
Person joe = new Person("Joe", "Montana");
Object mrJoe = new Person("Joe", "Montana");
boolean equal = joe.equals(mrJoe);
System.out.println(equal);
}
public static clas... |
package ru.job4j.iterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
... |
package com.bs.guestbook.dao;
import com.bs.guestbook.entity.ProductPosition;
import java.sql.SQLException;
import java.util.List;
public interface ProductPositionDao {
void addProductPosition(ProductPosition productPosition) throws SQLException;
List getAllProductPositions() throws SQLException;
List... |
package com.bramgussekloo.projectb.Activities.EditProduct;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Bu... |
package com.androidcorpo.lindapp;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.