text stringlengths 10 2.72M |
|---|
package Lab02.Zad4;
public class English implements Language {
@Override
public void showLanguage() {
System.out.println("english language");
}
}
|
class Main {
public static void main(String[] args) {
class LyyraCard {
private double balance;
private String cardOwner;
public LyyraCard(double balance, String cardOwner) {
this.balance = balance;
this.cardOwner = cardOwner;
... |
package com.paleimitations.schoolsofmagic.client.screen;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import com.paleimitations.schoolsofmagic.References;
import com.paleimitations.schoolsofmagic.common.containers.MortarContainer;
import net.minecraft.client.gui.screen.... |
package com.takshine.wxcrm.base.util;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import org.apache.poi.poifs.filesystem.DirectoryEntry;
import org.apache.poi.poifs.filesystem.DocumentEntry;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
p... |
/*
* 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.DAO;
import Connection.ConnectionFactory;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql... |
package testhybrid;
import java.io.IOException;
import java.util.List;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import keyword.ex1.Action;
import keyword.ex1.KeyDrivenExcelUtils;
import keyword.e... |
public class IntDoubleDivision {
public static void main(String[] args)
{
//int division
//double division
System.out.println(5 / 3);
System.out.println(5.0 / 3);
//System.out.println(5 / 0); //error
System.out.println(5 / 0.0);
System.out.println(0.0... |
package com.tencent.mm.plugin.account.ui;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
class LoginUI$6 implements OnClickListener {
final /* synthetic */ LoginUI eSk;
LoginUI$6(LoginUI loginUI) {
this.eSk = loginUI;
}
public final void on... |
package zm.hashcode.design.test.softwaredesignprinciples.ocp.correction;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import zm.hashcode.design.conf... |
package your package here;
import com.google.common.base.Preconditions;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.entity.Player;
import javax.annotation.Nonnull;
public class MessageUtil {
/** You can delete this 'test' method, this is for showing how... |
/**
*
*/
package com.yougou.merchant.api.supplier.service;
import com.yougou.merchant.api.common.PageFinder;
import com.yougou.merchant.api.common.Query;
import com.yougou.merchant.api.supplier.vo.ContactsVo;
import com.yougou.merchant.api.supplier.vo.ContractVo;
/**
* 招商联系人和合同
*
* @author huang.tao
*
*/
p... |
package me.ljseokd.basicboard.infra;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.transaction.annotation.Transactional;
import java.lang.annotation.Retention;
import java.lang.annotation.Tar... |
package com.mx.profuturo.bolsa.service.desk;
import com.mx.profuturo.bolsa.model.desk.data.DatosGrafica;
public class ObserverCorpDeskResponse {
private KPIEscritorio vacantesObservadas;
private KPIEscritorio candidatosPrimerasEntrevistas;
private KPIEscritorio entrevistasHoy;
private DatosGrafica candidatosPro... |
package proparaproj1;
class userEmptyException extends Exception{
public userEmptyException(){
System.out.println("Customer's order is empty, cannot be rollback\n");
}
}
class userException extends Exception{
public userException(String message){
System.out.println(message);
}
}
|
public class Circle extends Shape {
public static final double PI=3.14159265358979323846;
private double radius;
public Circle(double radius) {
this.radius = radius;
}
@Override
public double area() {
return PI * radius * radius;
}
@Override
public double circumference() {
return 2 * PI * radius;
... |
package com.jackie.classbook.dao;
import com.jackie.classbook.entity.TeacherClassMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* Description:
*
* @author xujj
* @date 2018/6/28
*/
public interface TeacherClassMapperDao {
int insert(TeacherClass... |
package com.nikogalla.tripbook.data;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import android.provider.BaseColumns;
import android.text.format.Time;
import com.nikogalla.tripbook.models.Comm... |
package com.proquest.interview.phonebook;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class PhoneBookImplTest {
PhoneBook objectUnderTest;
@Before
public void setUp() {
objectUnderTest = new PhoneBookImpl();
}
@Test(expected=IllegalArgumentException.class)
public void sh... |
public class InsertionSortGeneric<T extends Comparable<T>> {
public void insertionsort_asc(T[] arr) {
for (int i = 1; i < arr.length; i++) {
T temp = arr[i];
int j = i - 1;
while (j >= 0 && arr[j].compareTo(temp) > 0) {
arr[j + 1] = arr[j];
... |
package com.g53mdp.cw1_3.recipebook;
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 static android.R.attr.name;
/**
* Created by rrs2... |
package com.leetcode.easy.array;
/**
* Created by Sam Li on 9/11/2017.
*
* Merge two sorted linked lists and return it as a new list.
* The new list should be made by splicing together the nodes of the first two lists
*/
public class MergeTwoSortedListsSolution {
public ListNode mergeTwoLists(ListNode l1, Li... |
package com.oocl.ita.yapo.day3.exercise3;
public class Gerbil extends Rodent {
public void eats() {
System.out.println("Gerbil eats vegetables!");
}
public Gerbil() {
// TODO Auto-generated constructor stub
}
}
|
package jeonhwan.data;
public class BinaryTree {
Node root;
public void addNode(int key, String name) {
Node newNode = new Node(key, name);
if (root == null) {
root = newNode;
} else {
Node focusNode = root;
Node parent;
while (true) {
... |
package org.android.olp.foursquare.communicate;
import java.io.IOException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.imp... |
package com.slort.model.security;
// Application imports
// Java imports
import java.util.Iterator;
import java.util.Set;
import java.util.Hashtable;
import org.apache.struts.action.ActionError;
import com.bdb.model.security.User;
import com.slort.model.security.Grupo;
import com.slort.model.security.Users;
import ... |
package com.tencent.mm.plugin.talkroom.ui;
import com.tencent.mm.sdk.platformtools.al.a;
import com.tencent.mm.sdk.platformtools.x;
class TalkRoomUI$1 implements a {
final /* synthetic */ TalkRoomUI oxW;
TalkRoomUI$1(TalkRoomUI talkRoomUI) {
this.oxW = talkRoomUI;
}
public final boolean vD()... |
package com.example.ahmed.octopusmart.RecyclerAdapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.T... |
package com.tmtmmobile.tmtm.remote;
import com.tmtmmobile.tmtm.dto.JSONMessage;
import com.tmtmmobile.tmtm.dto.TmtmTaskDto;
import com.tmtmmobile.tmtm.dto.UserSignUp;
import java.util.ArrayList;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
/**
* Created by nour on 04-Jun-17.
*/
... |
package ru.android.messenger.model;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.File;
import java.util.concurrent.TimeUnit;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.OkHttpClient;
import okhttp3.RequestBody;
import okhttp3.logging.HttpLoggingIntercepto... |
package com.techlab.srp;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class InvoiceTest {
@Test
void testInvoice() {
// Arrange
int expectedid = 101;
String expectedname = "Sonam";
double expectedamount = 500.0;
float expecteddiscount = 25.0f;
// Act
Invoice ... |
package it.polimi.ingsw.GC_21.fx;
import java.io.IOException;
import java.rmi.RemoteException;
import it.polimi.ingsw.GC_21.CLIENT.CheckColorMessage;
import it.polimi.ingsw.GC_21.CLIENT.Connections;
import it.polimi.ingsw.GC_21.CLIENT.MessageToClient;
import it.polimi.ingsw.GC_21.CLIENT.ReadyMessage;
import it.polimi... |
package com.mysql.cj.jdbc.util;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
public class ResultSetUtil {
public static void resultSetToMap(Map<Object, Object> mappedValues, ResultSet rs) throws SQLException {
while ... |
package com.base;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.CharBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import java.nio.ShortBuffer;
/**
* 测试nio的缓冲
*
* @author xuxinbin
* @version $$Id: nettyJoin, v 0.1 ... |
package cn.edu.zucc.music.dao;
import cn.edu.zucc.music.model.Follow;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface FollowMapper {
int deleteByPrimaryKey(Integer followId);
int insert(Follow record);
int insertSelective(Follow record);
Follow selectByPrimaryKey(Integer foll... |
package com.rc.portal.dao.impl;
import java.sql.SQLException;
import java.util.List;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.rc.app.framework.webapp.model.page.PageManager;
import com.rc.app.framework.webapp.model.page.PageWraper;
import com.rc.portal.dao.TMemberMessageDAO;
import com.rc.portal.vo.TM... |
package com.tiandi.logistics.controller.exception;
import com.tiandi.logistics.entity.result.ResultMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... |
package Building;
import Forms.MainForm;
import Building.dwelling.Dwelling;
import Building.dwelling.DwellingFloor;
import java.io.*;
import threads.Cleaner;
import threads.FloorSynchronizer;
import threads.Repairer;
import threads.SequentalCleaner;
import threads.SequentalRepairer;
import Building.dwelling.Flat;
imp... |
public class playgraound {
int revNumber(int number){
int remainder = 0, revNum = 0;
while(number != 0){
remainder = number%10;
revNum = revNum*10 + remainder;
number -= remainder;
number /= 10;
}
return revNum;
}
public st... |
package com.example.demo.mlp;
import com.example.demo.entities.Produto;
import com.example.demo.entities.Usuario;
import java.util.*;
import java.util.function.Consumer;
public class Java8 {
public static void main(String[] args) {
//1 - Default methods in interfaces
//2 - new methods in popular... |
package com.changhui.demo1;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;
public class NotSafeDemo {
public static void main(String[] args) {
listNotSafe();
}
private static ... |
package com.example;
public class StackImpl implements Stack {
private String value;
@Override
public void put(String value) {
if(value.length() > 3) {
throw new IllegalArgumentException("Too long");
}
this.value = value;
}
@Override
public String get() {
... |
import processing.core.*;
import g4p_controls.*;
import java.io.File;
import java.util.Random;
import java.util.Scanner;
//change name of class:
public class RIPVine extends PApplet {
int screen = 0;
PImage titlescrn, img, goright, goleft, cutsceneimg, spngbobback, mspuff, boat, spngbobcutscene,... |
package com.isystk.sample.domain.dao;
import org.seasar.doma.boot.ConfigAutowireable;
import java.util.List;
import org.seasar.doma.jdbc.SelectOptions;
import java.util.Optional;
import java.util.stream.Collector;
import com.isystk.sample.domain.entity.TPost;
import org.seasar.doma.Dao;
import org.seasar.doma.Delete... |
package org.fuserleer.serialization;
import org.fuserleer.serialization.DsonOutput.Output;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
/**
* Serialization policy that returns a set of classes and field names for
* a specified {@link DsonOutput.Output} mode.
*/
pub... |
package verify.exam00;
<<<<<<< HEAD
//인터페이스 Runnable 구현클래스로 생성
//작성위치
public class MyRun {
=======
public class MyRun implements Runnable {
//Runnable 인터페이스를 구현 클래스로 생성
@Override
public void run() {
for(int i=0;i<500;i++) {
System.out.print("S");
}
}
>>>>>>> refs/remotes/origin/master
}
|
package com.icesoft.gettumblr.models;
import com.icesoft.gettumblr.Utils.MimeTypeUtils;
import com.icesoft.gettumblr.Utils.TumblrUtils;
import com.tumblr.jumblr.types.Blog;
import com.tumblr.jumblr.types.Video;
import java.io.File;
public class VideoDetail extends BaseDetail
{
public static final int TYPE = 1;
... |
package com.tencent.mm.plugin.appbrand.jsapi.coverview;
import android.content.Context;
import android.view.MotionEvent;
import android.widget.ScrollView;
import com.tencent.mm.sdk.platformtools.x;
class WxaScrollView$1 extends ScrollView {
final /* synthetic */ WxaScrollView fPW;
WxaScrollView$1(WxaScrollVi... |
package app.entity;
import java.math.BigDecimal;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.persistence.Query;
/**
* DOMAIN Logika...CRUD save, ... |
public class PolygoneRegulier extends Polygone{
public PolygoneRegulier(APoint centre, APoint unSommet, int nCotes){
super();
centre.shift(centre);
unSommet.shift(centre);
APoint [] somm = new APoint[nCotes];
double r = centre.distance(unSommet);
double beta = Math.at... |
package com.yicheng.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Log... |
package com.example.event;
import java.util.Map;
import com.aqi00.lib.dialog.FileSaveFragment;
import com.aqi00.lib.dialog.FileSelectFragment;
import com.aqi00.lib.dialog.FileSaveFragment.FileSaveCallbacks;
import com.aqi00.lib.dialog.FileSelectFragment.FileSelectCallbacks;
import com.example.event.util.BitmapUtil;
i... |
package ewaMemory.flagService;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for flagRequest complex type.
*
* <p>The following schema fragment specifies the expected content contained within this c... |
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
import org.apache.catalina.Session;
import javax.s... |
package com.osce.entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* 基础_多媒体
*
* @author author
*/
@Setter
@Getter
@ToString
public class BasMedia implements Serializable {
private static final long serialVersionUID = 153890007... |
package it.polimi.ingsw.GC_21.fx;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class FXMLLobby extends Application {
@Override
public void start(Stage stage) {
... |
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
package com.accenture.flowershop.be.business.user;
import com.accenture.flowershop.be.access.user.UserAccess;
import com.accenture.flowershop.be.entity.user.User;
import com.accenture.flowershop.be.utils.config.SecurityConfig;
import com.accenture.flowershop.fe.dto.UserDTO;
import org.slf4j.Logger;
import org.slf4j.Lo... |
package com.emn.common;
public enum RestMethod {
//이렇게 하면 이것 이외에 들어오지 않게.
GET, POST, PUT, DELETE
}
|
package productsSystem.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import productsSystem.models.Product;
import productsSystem.repositories.ProductRepository;
import java.util.List;
@Service
public class ProductService {
private ProductR... |
package functions;
import dataStructures.Pair;
public class Griewank extends Function {
public Griewank() {
super();
this.name = "Griewank";
}
@Override
public Double output(Pair pair) {
Double x1, x2;
x1 = pair.x1;
x2 = pair.x2;
return (Math.pow(x1, 2)+Math.pow(x2, 2))/4000.0d -
Math.cos(x1)*Mat... |
/*
* (C) Copyright 2016 Richard Ballard.
*
* 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 conversion;
/**
*
* @author Ahmed El-Torky
*/
public interface ConvertibleToOctal {
final int BASE = 8;
public abstract String convertToOctal();
}
|
package com.microservices.notesservice.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.microservices.notesservice.model.CollaboratorDetailsModel;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
@Repositor... |
package com.tencent.mm.ui.transmit;
import java.util.List;
final class MsgRetransmitUI$b {
boolean bJm;
public List<String> uEd;
private MsgRetransmitUI$b() {
this.uEd = null;
this.bJm = true;
}
/* synthetic */ MsgRetransmitUI$b(byte b) {
this();
}
}
|
/*
* Copyright (C) 2009 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 app... |
package test.main;
import java.io.File;
public class MainClass08 {
public static void main(String[] args) {
File myFile=new File("c:/");
File[] files=myFile.listFiles();
//반복문 돌면서 하나씩 참조해서 작업해 보기
for(File tmp:files) {
if(tmp.isDirectory()) { //만일 디렉토리라면
System.out.println("[ "+tmp.getName()+" ]");
... |
package collectionpro.set;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import java.util.Iterator;
public class SimpleSetTest {
@Test
public void whenAddedTwoDublicates() {
SimpleSet<Integer> ss = new SimpleSet<>();
ss.add(1);
... |
package spi.movieorganizer.display.view.detail;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.util.Locale;
import javax.swing.BorderFac... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.BeschichtungChargeListeType;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
public class Beschic... |
package com.appscode.ci.plugins.blueprint;
import hudson.Extension;
import hudson.Plugin;
import hudson.model.Items;
/**
* @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
*/
@Extension
public class BlueprintPlugin extends Plugin {
}
|
package Exercicio04;
public class Televisao {
private int volume;
private int canal;
private boolean ligado;
public Televisao(int volume, int canal, boolean ligado) {
this.volume = volume;
this.canal = canal;
this.ligado = ligado;
}
public int getVolume() {
ret... |
package LeetCode.sortingAndSearching;
import java.util.HashMap;
public class ValidAnagram {
public boolean isAnagram(String s, String t) {
int[] count = new int[26];
int m = s.length();
int n = t.length();
if(m != n)
return false;
for (char c :s.toCharArray()) {
count[c - 'a']++;
... |
package com.china.rescue.framework.redis.config;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.cache.a... |
package br.org.funcate.glue.model.request;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;
import javax.imageio.ImageIO;
import org.jdom2.JDOMException;
import br.org.funcate.glue.model.Box;
import br.org.func... |
package com.willpower.lib;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.widget.LinearLay... |
package com.drzewo97.ballotbox.core.model.role;
import org.springframework.data.repository.CrudRepository;
import java.util.Optional;
public interface RoleRepository extends CrudRepository<Role, Integer> {
Optional<Role> findByName(String name);
}
|
package napi.commands.node;
import napi.commands.exception.ArgumentParseException;
import napi.commands.parsed.CommandArguments;
import napi.commands.parsed.CommandSender;
import java.util.List;
public class NodeChoice extends CommandNode {
private final List<String> values;
public NodeChoice(String key, L... |
package kr.ac.kopo.service;
import kr.ac.kopo.model.User;
public interface UserService {
void addUser(User user);
int isExist(String inputType, String inputValue);
}
|
package com.hsnam.spring.file.service.imple;
import com.hsnam.spring.file.model.FileModel;
import com.hsnam.spring.file.service.FileService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.springframework.beans.factory.annotation.Value;
i... |
package work.allwens.unionbbs.unionbbs.dao;
import java.sql.PreparedStatement;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.jdbc.support.KeyHolder;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import java.sq... |
package com.zhouyi.business.controller;
import com.zhouyi.business.core.common.ReturnCode;
import com.zhouyi.business.core.model.PageData;
import com.zhouyi.business.core.model.Response;
import com.zhouyi.business.core.model.SysUserTransfer;
import com.zhouyi.business.core.service.SysUserTransferService;
import com.zh... |
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class LocalDateTimeDemo
{
public static void main(String[] args)
{
/*
* Parameters:
*
* text - the text to parse such as "2007-12-03T10:15:30", not
* null
*
* Returns:the parsed local date-time, not null
*/
... |
package com.cm4j.grpc.client;
import com.cm4j.grpc.config.GrpcConfig;
import com.cm4j.grpc.proto.MsMethodServiceGrpc;
import com.google.common.collect.Maps;
import io.grpc.Channel;
import io.grpc.Deadline;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.stub.AbstractBlockingStub;
im... |
package com.tencent.xweb.c;
import com.tencent.xweb.c.a.b;
public class a$a {
public b vCo = new b();
public String vCp;
public String vCq;
public String vCr;
}
|
package com.mrice.txl.appthree.ui.login;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.mrice.txl.appthree.R;
import com.mrice.txl.appthree.app.Constant... |
public class Area {
private int x;
private int y;
private int h;
private int w;
Area (int nx, int ny, int nh, int nw)
{
x = nx;
y = ny;
h = nh;
w = nw;
}
public int getX()
{
return x;
}
public int getY()
{
return y;
}
public int getHeight()
{
return h;
}
public int getWidth()
{
r... |
package com.lspring.JDKaop;
public interface IPersonDao {
void save(Person person);
void update(Long id,Person person);
void delete(Long id);
//...
}
|
/**
* Copyright 2013 Cloudera 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
package com.yixin.kepler.v1.common.core.bankReq;
import com.yixin.kepler.dto.BaseMsgDTO;
import com.yixin.kepler.enity.OsbFileLog;
import com.yixin.kepler.v1.datapackage.dto.BankRespResultHandleDTO;
import com.yixin.kepler.v1.datapackage.entity.AssetBankRequest;
/**
* 银行响应结果任务处理
* Package : com.yixin.kepler.v1.job
... |
package jp.aoyama.a5817028.sampleactivity1_2;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
/** Logcatのタグに含める文字列. */
private static final String TAG = " SampleActivity1_2";
@Override
protected v... |
package com.itsdf07.utils;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import com.... |
package jsp.demo.servlet;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impor... |
package analysis.stock.com;
import java.io.*;
public class StandNode {
public String day;
public Float high;
public Float low;
public int index;
public int i;
public StandNode ( int p_index, Float p_high, Float p_low ) {
high = p_high;
low = p_low;
index = p_index;
}
pu... |
package ru.otus.homework.services;
import java.util.List;
public interface PublishersService extends RepositoryService
{
List<String[]> findByPublisher(String publisher);
long insert(String publisher);
long update(long id, String publisher);
}
|
package com.dennistjahyadigotama.soaya;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;
... |
package kh.picsell.dto;
import java.sql.Date;
import java.sql.Timestamp;
public class PointDTO {
private int point_seq;
private String nickname;
private String deal_sort;
private String point_date;
private int point;
private String money_sort;
public int getPoint_seq() {
return point_seq;
}
public void set... |
// ================================
// POO JAVA - IMAC 2 - ANIK Myriam
// TP 2 - Exo 03
// Pour (dé)commenter un bloc : Cmd+Shift+/ ou Ctrl + Shift + /
// ================================
import java.util.regex.*;
public class Regex
{
public static void main(String[] args)
{
// 01. A quoi servent la classe jav... |
package com.Oovever.easyHttp.exception;
import java.io.UnsupportedEncodingException;
/**
* @author OovEver
* 2018/7/1 22:54
*/
public class HttpException extends RuntimeException {
public HttpException(Throwable e) {
super(e.getMessage(), e);
}
public HttpException(String message) {
su... |
package com.znamenacek.jakub.spring_boot_security_test.security.jwt;
import lombok.Getter;
import lombok.Setter;
@Getter @Setter
public class JwtUsernamePassword {
private String username;
private String password;
}
|
package com.tencent.mm.plugin.freewifi.ui;
import android.os.Message;
import com.tencent.mm.sdk.platformtools.ag;
class FreeWifiNetCheckUI$1 extends ag {
int i = 0;
final /* synthetic */ FreeWifiNetCheckUI jnK;
FreeWifiNetCheckUI$1(FreeWifiNetCheckUI freeWifiNetCheckUI) {
this.jnK = freeWifiNetCh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.