text stringlengths 10 2.72M |
|---|
package com.mibo.modules.data.model;
import com.mibo.modules.data.base.BaseTagProduct;
import java.util.List;
@SuppressWarnings("serial")
public class TagProduct extends BaseTagProduct<TagProduct> {
/* 12 */ public static final TagProduct dao = (TagProduct) new TagProduct().dao();
public List<TagProduct> queryTagP... |
package util;
/**
* Created by yijigao on 2015/10/27.
*/
public interface HttpCallbackListener {
void onFinish(String response);
void onError(Exception e);
}
|
import java.util.Scanner;
/*
SOAL
Batas Bawah : 1
Batas Atas : 3
Iterasi Maks : 3
Hasil :
Akar diantara 1.6666666666666665 dan 2.333333333333333
Akar lebih dekat ke x[2] = 2.333333333333333
*/
public class MetodeTabel{
public static double y(float x) {
double hasil= Math.pow(x... |
package factory;
import enums.Color;
import piece.Pawn;
import piece.Piece;
import piece.Queen;
public class PieceFactory
{
public static Piece getPiece(String input) {
char color = input.charAt(0);
char pieceType = input.charAt(1);
Piece piece=null;
switch(pieceType) {
... |
package net.yustinus.crud.web.main;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
... |
/*
* 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 bmiserver;
import java.io.*;
import java.net.*;
import java.util.Date;
import javafx.application.Application;
import javafx.ap... |
package com.qx.wechat.tulin;
import com.github.dadiyang.httpinvoker.annotation.HttpApi;
import com.github.dadiyang.httpinvoker.annotation.HttpReq;
import com.github.dadiyang.httpinvoker.annotation.Param;
import com.github.dadiyang.httpinvoker.annotation.RetryPolicy;
import com.qx.wechat.tulin.request.TuLinRequest;
imp... |
package com.example.cs458project4.dto;
import com.example.cs458project4.Models.Suser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SuserDTO {
private String tcnumber;
... |
import java.awt.*;
import java.applet.*;
public class m3 extends Applet
{
Color ci;
Font f1;
int b;
public void paint(Graphics g)
{
f1=new Font("Arial",Font.BOLD,16);
g.setFont(f1);
ci=new Color(50,67,70);
setBackground(ci);
g.setColor(Color.RED);
g.drawString(" WELCOME ",40,40);
f1=new Font... |
package com.example.buildpc.Model;
public class Model_Item {
public String ImageItem;
public String NameItem;
public String Brand;
public int Price;
public Model_Item(String imageItem, String nameItem, String brand, int price) {
ImageItem = imageItem;
NameItem = nam... |
package com.madrun.springmongo.model;
import org.springframework.data.mongodb.core.mapping.Document;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@Document
@NoArgsConstructor
public class SocialMediaAccount {
String accountType;
int noOfFollowers;... |
package com.ifeng.recom.mixrecall.prerank;
import com.alibaba.fastjson.JSONObject;
import com.ifeng.recom.mixrecall.prerank.constant.CTRConstant;
import java.util.ArrayList;
import java.util.List;
import static com.ifeng.recom.mixrecall.common.model.JsonUtils.writeToJSON;
public class AdNatureEntity {
/... |
package ru.itmo.ctlab.sgmwcs;
public class TimeLimit {
private double tl;
private TimeLimit parent;
public TimeLimit(double tl) {
if (tl < 0) {
throw new IllegalArgumentException();
}
this.tl = tl;
}
private TimeLimit(TimeLimit parent, double fraction) {
... |
package mihau.eu.githubsearach;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import io.reactivex.observers.TestObserver;
import mihau.eu.githubsearch.api.GitHubRepository;
import mihau.eu.githubsearch.api.TestAPIService;
import mihau.eu.githubsearch.utils.provid... |
package Items;
public enum Armour {
HEAVY(10),
LIGHT(5),
SEXY(1);
private final int armourValue;
Armour(int armourValue) {
this.armourValue = armourValue;
}
public int getArmourValue() {
return armourValue;
}
}
|
package com.otherhshe.niceread.presenter;
import com.otherhshe.niceread.api.GankService;
import com.otherhshe.niceread.model.GankItemData;
import com.otherhshe.niceread.net.ApiService;
import com.otherhshe.niceread.rx.RxManager;
import com.otherhshe.niceread.rx.RxSubscriber;
import com.otherhshe.niceread.ui.view.GankI... |
/*
* (C) Copyright 2010 Marvell International Ltd.
* All Rights Reserved
*
* MARVELL CONFIDENTIAL
* Copyright 2008 ~ 2010 Marvell International Ltd All Rights Reserved.
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell International ... |
package br.com.amaro.demo.strategy;
import br.com.amaro.demo.forms.ProductRegisterForm;
import br.com.amaro.demo.forms.ProductRegisterListForm;
import br.com.amaro.demo.validators.RegisterFormErrors;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mo... |
package com.company;
class Book {
String code="000" ; //รหัสหนังสือ
String bookname="" ; //ชื่อหนังสือ
String status="" ; // สถานะ
String date =""; //วันเวลา
int group ; // หมวดหมู่ของหนังสือ
public Book() {
}
public String getCode() {
return code;
}
public void setC... |
/*
https://codeforces.com/problemset/problem/1283/E
=> min
=> max
=> independence => seperate two .
=> two sub-problems
#greedy
*/
import java.util.Scanner;
public class NewYearParties {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] ... |
import java.util.Scanner;
public class TextMenu {
private void printMenu()
{
System.out.println("==============================================");
System.out.println("Menu tekstowe dla listy 1");
System.out.println("==============================================");
System.out.println(" Aby wybrać zadanie wp... |
package StackCalculator;
import StackCalculator.Exceptions.*;
import org.junit.Test;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import static org.junit.Assert.*;
public class CalculatorTest {
double actual, expected;
double epsilon = 0.01;
@Test
public void Exe... |
package project;
/**************************************************************************************************
* Created by: Robert Darrow
* Date: 9/24/18
* Description: Interface which declares methods used by multimedia devices.
******************************************************************************... |
import java.io.*;
import java.lang.*;
import java.util.*;
// #!/usr/bin/python -O
// #include <stdio.h>
// #include <stdlib.h>
// #include <string.h>
// #include<stdbool.h>
// #include<limits.h>
// #include<iostream>
// #include<algorithm>
// #include<string>
// #include<vector>
//using namespace std;
/*
# Author ... |
package at.paulcosta.springmavenstarter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringMavenStarterApplication {
public static void main(String[] args) {
SpringApplication.run(SpringMavenStarterAppl... |
package info.finny.msvc.service;
import org.springframework.cloud.netflix.feign.FeignClient;
@FeignClient ("get-article")
public interface ArticleClient extends WordFeignClient {
}
|
package com.lanhuai.study.datastructure.list;
import java.util.Arrays;
/**
* @author lanhuai
*/
public class ArrayList<E> extends AbstractList<E> implements List<E> {
private static final int MAX_SIZE = 20;
private Object[] elements = new Object[MAX_SIZE];
private int size;
@Override
public ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.fastHotel.modeloTabla;
import java.util.ArrayList;
import javax.swing.table.AbstractTableModel;
/**
*
* @au... |
package utilities.unused;
public class CorrectSensorFile { //holds file to log sonars, not currently in use
private static SensorFile file;
public static SensorFile getInstance(){
if(file == null){
file = new SensorFile(1, "/home/lvuser/RecordSonar.csv");
System.out.println("Creating file");
}
return ... |
package kr.ac.kopo.day08;
public class CarMain {
public static void main(String[] args) {
Car c = new Car();
Car c2 = new Car("아반떼");
Car c3 = new Car(2223, "쿠페");
// c.Car();
c.car();
c2.car();
c3.car();
}
}
|
package com.lidaye.shopIndex.domain.entity;
import lombok.Data;
import java.io.Serializable;
@Data
public class Property implements Serializable {
private Integer propertyId;
private Integer categoryId;
private String propertyName;
}
|
package com.example.covid_19tracker;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
public class AboutActivity extends AppCompatActivity {
@Override
protec... |
package tm.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import tm.pojo.Touris... |
package com.redhat.service.bridge.executor;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import com.redhat.service.bridge.infra.models.filters.StringBeginsWith;
import com.redhat.service.bridge.infra.models.filters.StringContains;
import com.redhat.service.bridge.infra.models.filters.St... |
/**
* Copyright 2014 qixin Inc. All rights reserved.
* - Powered by Team GOF. -
*/
package com.igs.qhrzlc.exception;
/**
* @ClassName: NoUpdateException
* @Description: 用一句话描述该文件做什么
* @author jinsongliu
* @date 2014-5-17 下午2:28:28
*
*/
public class NoUpdateException extends Exception {
... |
package com.ngocdt.tttn.dto;
import com.ngocdt.tttn.entity.ReceiptionDetailKey;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ReceiptionDetailKeyDTO {
private int productID;
private int receiptionID;
public static ReceiptionDetailKey toEntity(ReceiptionDetailKeyDTO dto) {
... |
import java.util.Scanner;
public class TempToFarh {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
double cels,fahre;
System.out.print("Enter the temperature in celsius: ");
cels=in.nextDouble();
fahre=((cels*9)/5)+32;
System.out.println(cels+" celsius in Fahrenhit is: "+fahre... |
package com.pykj.annotation.projectdemo.entity;
import com.pykj.annotation.projectdemo.annntation.PYController;
/**
* @description: TODO
* @author: zhangpengxiang
* @time: 2020/4/13 17:58
*/
@PYController
public class PyController {
}
|
package com.egova.baselibrary.retrofit;
import com.egova.baselibrary.BuildConfig;
import com.egova.baselibrary.retrofit.interceptor.BaseInterceptor;
import com.egova.baselibrary.retrofit.interceptor.logging.Level;
import com.egova.baselibrary.retrofit.interceptor.logging.LoggingInterceptor;
import java.util.concurren... |
package com.gloomy;
import static com.gloomy.fileOperation.writeMessage;
/**
* return and save the error message
* @author liuzhen
* @date 2018-4-8
* @version 1.0
*/
public class errorOperation {
private String errorFile;
public errorOperation(String errorFile) {
this.errorFile = errorFile;
... |
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
public class Main {
public static void main(String[] args) {
String separator = "****************************";
ArrayList<String> mylist = new ArrayList<String>() {{
add("A1");
add("B")... |
package com.dbs.portal.ui.component.view;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.dbs.portal.ui.component.application.IApplication;
import com.dbs.portal.ui.layout.HTMLGridLayout;
i... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Cricket_score.input;
/**
*
* @author Pankajan
*/
public interface Input {
public String getInput();
}
|
package com.datagraph.core;
import com.datagraph.common.exception.JobException;
import com.datagraph.common.Context;
import com.datagraph.core.common.ContextImpl;
import com.datagraph.common.cons.DBType;
import com.datagraph.core.db.datasource.DBDetail;
import com.datagraph.core.db.datasource.DatabaseManager;
import c... |
package sort;
public class HeapSort {
public static void main(String[] args){
// String[] input = { "s", "o", "r", "t", "e", "x", "a", "m", "p", "l" , "e"};
Integer[] input = new Integer[100];
for(int i=0;i<input.length;i++){
input[i] = (int) (100*Math.random());
}
HeapSort.sort(input);
Sort.show(i... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.stdext.attr;
import java.util.Collections;
import java.util.List;
import pl.edu.icm.unity.types.basic.Attribute;
import pl.edu.icm.unity.types.basic.AttributeVisibil... |
package com.androidsample.wearableapp;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android... |
package com.example.workstudy.jdk;
import java.util.ArrayList;
public class MemoryLeak {
/**
* 内存溢出
* Java 垃圾自动回收机制
* GC Roots 到对象的引用链存在,不进行回收,不存在回收,用图论说法就是不可达
* 1.静态字段内存泄漏,静态字段的生命周期和应用程序的生命周期一致
* 2.equals 和hashmap方法实现不当,或者未实现,进行hashmap.put 操作相同对象不应该新增占用内存
* 3.资源关闭,比如数据库连接,输入输出流,会话对... |
package Variables_and_DataTypes;
public class Constants {
public static void main(String[] args) {
/* ================ Constants ================
* Для указания константы используется служебное слово `final'.
* Имя констант пишется большими буквами.
*/
final double PI = 3... |
package com.StepDefinition;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import org.junit.Assert;
import com.Base.BaseClass;
import com.UsingPojoClasses.PutUsing_PutPojo;
import com.Utility.Api_Resources;
import io.cucumber.java.en.Given;
import ... |
package mb.tianxundai.com.toptoken.base;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphi... |
package com.shichuang.mobileworkingticket.adapter;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.ForegroundColorSpan;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shichuang.mobileworkingticket.R;
im... |
package com.aof.component.prm.expense;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/** @author Hibernate CodeGenerator */
public class ProjectCostType implements Seria... |
package Other;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import Catalogue.*;
import Clients.*;
import Middle.*;
import Processing.*;
/**
* A very simple test of the system
* @author Michael Alexander Smith
* @version 2... |
public class Main {
public static void main(String[] args) {
double miles = SpeedConversion.toMilesPerHour(10.5);
System.out.println(miles + "miles");
}
}
|
/*
* 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 asteroidy.challenges;
/**
*
* @author Basic
*/
public class ChallengeZnicMeteority extends ChallengesZniceneMeteority imple... |
package com.show.comm.utils.ext;
import java.lang.reflect.Type;
import java.util.EventObject;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.regex.Matcher;
im... |
/**
* Copyright (C) 2013 by Raphael Michel under the MIT license:
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to ... |
package entity;
public class Animal {
private String Dono;
private int id;
private String nome;
private int idade;
private static int gerarCodigo=100;
static int _id=0;
public static enum Categoria {
CACHORRO,GATO,REPTIL,ROEDOR;
}
private Categoria ca... |
package sign.com.biz.sign.mapper;
import java.util.List;
import java.util.Map;
import sign.com.biz.sign.dto.SignInfoDto;
import sign.com.biz.sign.dto.SignTranctionDto;
import sign.com.common.PageDto;
import tk.mybatis.mapper.common.Mapper;
public interface SignMapper extends Mapper<SignInfoDto>{
SignInfoDt... |
package lol;
public class SampleServiceTest2 {
//
// @Test
// public void testLol() {
// EnumBuster<SampleEnum> buster = new EnumBuster<SampleEnum>(SampleEnum.class, SampleService.class);
// SampleService service = new SampleService();
//
// SampleEnum THREE = buster.make("THREE", 2);
// ... |
/**
* Copyright (c) 2012 Vasile Popescu (elisescu@gmail.com)
*
* This source file CANNOT be distributed and/or modified
* without prior written consent of the author.
**/
package com.hmc.project.hmc.devices.implementations;
import java.util.HashMap;
import android.os.RemoteException;
import android.util.Log;
impo... |
package patterns.creational.absFactory;
/**
* @author:lanmengxi@viomi.com.cn
* @createtime :
* @description
* @since version 初始于版本
*/
public class HpKeyboard implements Keyboard {
@Override
public void enter() {
System.out.println(" HpKeyboard enter ! ");
}
}
|
package xqj;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.xml.xquery.XQConnection;
import javax.xml.xquery.XQDataSource;
import javax.xml.xquery.XQException;
import javax.xml.xquery.XQPreparedExpress... |
import java.util.Stack;
/*
public class SubsetGeneration {
public generateSubset(int[] arr, int idx, Stack op){
//Stack<String> stack = new Stack<>();
if(idx == arr.length){
op.print();
return;
}
}
}
*/ |
package com.forfinance.service;
import com.forfinance.dao.CustomerDAO;
import com.forfinance.domain.Customer;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
impo... |
package com.kheirallah.inc.goldman;
public class UglyNumbers {
/*
Time complexity: O(n^2)
Space complexity: O(1)
*/
private static int getNthUglyNo(int n) {
int i = 1;
//ugly number count
int count = 1;
while (n > count) {
i++;
if (isUgly(... |
package com.it306.test;
/**
* This is the class that contains the information of the player
* @author Amith Kini
*
*/
//import com.it306.test.UI.*;
import java.util.ArrayList;
import javax.swing.JLabel;
public class Player {
public JLabel lbl;
private String name;
private int index;
privat... |
class ejercicio06
{
public static void main (String[] args) {
System.out.println("Bienvenido al mundo de Java \nPodrás dar solución a muchos problemas");
}
} |
/**
*게이트시스템의 문의하기 빈
*<p> 제목:CpContactBean.java</p>
*<p> 설명:문의하기 빈</p>
*<p> Copyright: Copright(c)2004</p>
*<p> Company: VLC</p>
*@author 이창훈
*@version 1.0
*/
package com.ziaan.cp;
import java.util.ArrayList;
import com.ziaan.library.ConfigSet;
import com.ziaan.library.DBConnectionManager;
import com.ziaan.library... |
package com.online.spring.core;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class ImpCompany {
static ApplicationContext context;
static{
context=new ClassPathXmlApplicationContext("company.xml");
}
public static void ... |
package com.crackerjack.notificationcenter.webService;
/**
* Created by pratik on 05/06/16.
*/
public class QuickstartPreferences {
public static final String SENT_TOKEN_TO_SERVER = "sentTokenToServer";
public static final String REGISTRATION_COMPLETE = "registrationComplete";
}
|
// Generated code from Butter Knife. Do not modify!
package com.zhicai.byteera.activity.community.dynamic.activity;
import android.view.View;
import butterknife.ButterKnife.Finder;
import butterknife.ButterKnife.ViewBinder;
public class AddtionFocusOrganizationFragment$$ViewBinder<T extends com.zhicai.byteera.activit... |
/*
* Copyright 2012-2015 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Lice... |
package com.gateway.client;
public class WebhookNotification {
long timestamp;
String orderId;
String transactionId;
String orderStatus;
String amount;
public WebhookNotification() {
}
public WebhookNotification(String orderId, String transactionId, String orderStatus, String amount)... |
/**
* Copyright 2014 David Pettersson
*
* 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... |
package arrival.util;
import org.apache.commons.lang.ArrayUtils;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
import static arrival.util.TimeUtil.ONE_DAY;
import static arrival.util.TimeUtil.ONE_HOUR;
import static arrival.util.TimeUtil.getTime;
/**
* 账户,代表一个用户在... |
package cn.itcast.bookstore.cart.wev.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import cn.itcast.bookstore.book.domain.Book;
import cn.itcast.bookstore.book.service.BookService;
import cn.itc... |
package com.team9.spda_team9.forum;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.... |
package idea.spark.in.vehicleowner;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
im... |
package com.company;
public class Main {
public static void main(String[] args) {
// write your code here
int[] operand1 = {76, 90, 4, 87, 70, 57, 48, 70, 31, 69, 18, 40, 76};
int[] operand2 = {76, 50, 36, 77, 87, 28, 98, 20, 20, 52, 86, 34, 34};
int[] expectedResults = {152, 140, 40, 16... |
package com.epam.cdp.java_testng.tetiana_melnychuk.hw2;
import java.util.Scanner;
abstract public class Flower implements IFlower{
String name;
String size;
String color;
Integer quantity;
public Flower(String name, String size, String color, Integer quantity) {
this.name = name;
... |
package com.yidatec.weixin.security;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annota... |
package com.crawler.tentacle.html.analyse;
public interface IHtmlAnalyse {
boolean Analyse(String html);
String[] Links();
String[] Contents();
}
|
package com.example.chordnote.data.network.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
public class CommentsResponse extends CommonResponse {
public CommentsResponse() {
}
@Expose
@SerializedN... |
package com.legaoyi.common.gps.util;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
public class GeoHash implements Serializable {
private static final long serialVersionUID = 7584031649203542603L;
public static final int MAX_PRECISION = 52;
private static final long FIRST... |
package application.address.business;
import application.address.util.RepositoryUser;
public class BusinessTCP {
// RepositoryUser
}
|
package com.getkhaki.api.bff.domain.services;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
public class DayTimeBlockGenerator extends BaseTimeBlockGenerator {
@Override
public Instant addUnit(Instant start) {
return start.plus(1, ChronoUnit.DAYS);
}
@Override
public Ins... |
package edu.gcccd.csis;
public class Organization{
//instance variables
private String orgName;
private int numberOfEmployees;
public Organization(String orgName, int numberOfEmployees){
this.orgName=orgName;
this.numberOfEmployees=numberOfEmployees;
}
... |
package dk.webbies.tscreate.paser.AST;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
import dk.webbies.tscreate.paser.ExpressionVisitor;
import java.util.List;
/**
* Created by Erik Krogh Kristensen on 04-09-2015.
*/
public class CallExpression extends Expression {
private final Expressi... |
package org.child.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.child.entity.URole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Walle
* @since 2019-01-24
*/
@Mapper
public interface URoleMapper extends BaseMapper<UR... |
/*
* 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 front;
import java.io.File;
import javax.swing.filechooser.FileFilter;
/**
*
* @author Szlatyka
*/
public cl... |
class State
{
void display1()
{
System.out.println("Language spoken: ");
}
}
class Gujarat extends State
{
void display2()
{
System.out.println("Gujarati");
}
}
class Rajasthan extends State
{
void display()
{
System.out.println("Rajasthani");
}
public static void main(String[] args)
{
Gujarat... |
package be.darkshark.parkshark.domain.repository;
import be.darkshark.parkshark.domain.entity.parkinglot.ParkingLot;
import org.springframework.data.repository.CrudRepository;
import java.util.Collection;
public interface ParkingLotRepository extends CrudRepository<ParkingLot, Long> {
@Override
Collection<Pa... |
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
public class A6LineNumberReadertest {
public static void main(String[] args)
{
LineNumberReader lineread=null;
try {
lineread = new LineNumberReader(new FileReader("member.txt"))... |
package telas;
import java.awt.EventQueue;
import javax.swing.JFrame;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Font;
import javax.swing.SwingConstants;
import projeto.model.bean.Fornecedor... |
package crushstudio.crush_studio.DTO;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
@Getter
@Setter
@AllArgsConstructor
public class AdminDTO {
private String name;
private Long id;
private String... |
/*
* @(#){{ table.nameNoPrefix | pascalcase }}UpdateResponse.java
*
* Copyright (c) 2014-2017 {{ setting.companyName }} 版权所有
* {{ setting.companyCode}}. All rights reserved.
*
* This software is the confidential and proprietary
* information of {{ setting.companyCode}}.
* ("Confidential Information"). You sha... |
package run.entity;
public class FestivalDTO {
String ID;
String name;
String genre;
String description;
public FestivalDTO() {
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
publi... |
package Lesson5;
import Lesson5.Bus.Bus;
import Lesson5.Passenger.Dog;
import Lesson5.Passenger.Human;
import Lesson5.Passenger.Passenger;
import Lesson5.Route.BusStation;
import Lesson5.Route.Route;
import java.util.ArrayList;
public class Main {
Route route = new Route(initStation());
Bus bus = new Bus(ro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.