text
stringlengths
10
2.72M
package cn.canlnac.onlinecourse.presentation.internal.di.components; import cn.canlnac.onlinecourse.presentation.internal.di.PerActivity; import cn.canlnac.onlinecourse.presentation.internal.di.modules.ActivityModule; import cn.canlnac.onlinecourse.presentation.internal.di.modules.FollowUserModule; import cn.canlnac.o...
package com.chenzexuan.xmlcustomviewlib; /** * Created by chenzexuan on 2017/3/21. */ public interface FlatXmlView { void setOnDisableStateClickListener(FlatXmlViewHelper.OnDisableStateClickListener listener); }
package com.goodhealth.design.demo.StrategyPattern; public class Client { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("猎人上山了,遇到了羊群"); IStrategy sheep=new MeetSheep(); Context hunter=new Context(sheep); hunter.action(); System.out.println("继续前进,遇到了孤狼");...
package com.trust.demo.ui.cardrotation; import android.os.Build; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager; import android.widget.ImageView; import com.trust.demo.R; import com.trust.demo.ui.cardrotation.tool.swipeb...
package org.webmaple.admin.service; import org.webmaple.admin.model.Message; import org.webmaple.common.model.Result; import java.util.List; /** * @author lyifee * on 2021/5/3 */ public interface MessageService { /** * 举报用户 * @param accuseId 被举报用户id * @param accuseReason 被举报理由 * @param use...
import java.io.IOException; import java.net.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class TCPListenerThread extends Thread { List<Thread> threadList = new ArrayList<>(); ServerSocket tcpListener; SocketAddress socketAddress; MsgHandler msg; int numThr...
package go.nvhieucs.notins.model.photo; import org.springframework.data.cassandra.repository.CassandraRepository; import org.springframework.data.repository.NoRepositoryBean; import java.util.UUID; @NoRepositoryBean public interface PhotoRepository extends CassandraRepository<Photo, UUID> { }
/** * */ package com.everis.service.business.impl; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Trans...
package com.tencent.mm.plugin.ipcall.a.d; import com.tencent.mm.ab.b; import com.tencent.mm.ab.b.a; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.network.k; import com.tencent.mm.network.q; import com.tencent.mm.protocal.c.ble; import com.tencent.mm.protocal.c.blf; import com.tencent.mm...
package com.mx.profuturo.bolsa.model.recruitment.dto.form; public class ESStageForm extends BasicForm{ }
package com.tencent.tencentmap.mapsdk.a; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpPost; final class do { HttpResponse a = null; HttpPost b = null; public do(HttpResponse httpResponse, HttpPost httpPost) { this.a = httpResponse; this.b = httpPost; ...
/** * */ package com.shubhendu.javaworld; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Queue; import java.util.Set; /** * @author ssingh * */ public class ValidParentheses { public List<String> removeInvalidParentheses(String s) { ...
package proj.logAnalyze.cdh.logClean; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import java.io.IOException; public class logMapper extends Mapper<LongWritable, Text, NullWritable, Text> { // 通过调...
package com.example.windows10now.muathe24h.util; import android.content.Context; import com.example.windows10now.muathe24h.model.JsonResult; import com.example.windows10now.muathe24h.model.RegisterMDResult; import com.google.gson.Gson; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONExceptio...
package com.shady.popularmovies; import com.google.gson.annotations.Expose; import java.util.List; /** * Created by Shady on 9/6/2017. */ public class VideosClass { @Expose public Integer id; @Expose public List<VideoClass> results = null; }
package testRouleTaBoule.game; import javax.swing.ImageIcon; import javax.swing.JLabel; import testRouleTaBoule.elements.Coordonnees; import testRouleTaBoule.elements.ElementBoule; import testRouleTaBoule.graphics.ImagesSprites; import testRouleTaBoule.sound.Sound; import testRouleTaBoule.window.GenerateurCoordCarte;...
package com.smxknife.shardingsphere.jdbc; import io.shardingsphere.core.api.ShardingDataSourceFactory; import io.shardingsphere.core.api.config.ShardingRuleConfiguration; import io.shardingsphere.core.api.config.TableRuleConfiguration; import io.shardingsphere.core.api.config.strategy.InlineShardingStrategyConfigurati...
package agha.digitalconverter; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.text.Editable; import android.text.TextWatcher; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget....
package com.ibeiliao.pay.impl.entity; import java.io.Serializable; import java.util.Date; /** * 支付方式 * <p> * <pre> * 自动生成代码: 表名 t_pay_type, 日期: 2016-10-08 * pay_code <PK> tinyint(4) * name varchar(20) * logo varchar(255) * mark varchar(20) * d...
package com.dns.feedbox.repo; import com.dns.feedbox.entity.Feed; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; /** * Created by dinusha on 11/12/16. */ @Repository public interface FeedRepo extends MongoRepository<Feed,String>{ }
package com.ricex.cartracker.android.service; import com.github.pires.obd.commands.ObdCommand; /** * Created by Mitchell on 2/12/2016. */ public class OBDCommandJob { private ObdCommand command; private OBDCommandStatus status; private boolean hasData; public OBDCommandJob(ObdCommand command) { ...
package com.yuqi.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.context.annotation.ComponentScan; import org.springframework.data.jpa.repository.co...
package entities; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persisten...
public interface MeleeAtacker { void meleeAtk(Character character); double getMeleeAtkPower(); void setMeleeAtkPower(double atk); }
package com.ssdi.project.bookExchange; import com.ssdi.project.bookExchange.model.User; import com.ssdi.project.bookExchange.repository.RoleRepository; import com.ssdi.project.bookExchange.repository.UserRepository; import com.ssdi.project.bookExchange.service.UserService; import org.junit.Before; import org.junit.Tes...
package com.detectify.codingchallenge.webdriverservice.listener.impl; import com.detectify.codingchallenge.webdriverservice.dto.ScreenShotDto; import com.detectify.codingchallenge.webdriverservice.listener.Listener; import com.detectify.codingchallenge.webdriverservice.service.WebDriverService; import lombok.AllArgsCo...
class Solution { String digitWordArray[] = {"", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"}; String tensWordArray[] = {"", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"}; String tenSpecialArray[] = {"Ten", "Eleven", "Twelve", "Thirteen", "Fourte...
package zm.gov.moh.common.submodule.form.widget; import zm.gov.moh.core.repository.database.entity.domain.ObsEntity; public interface Retainable { void onLastObsRetrieved(ObsEntity... obs); String getUuid(); }
/* * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved. * * 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 * * Unles...
package com.ajonx.game; public class Time { public static final long SECOND = 1000000000L; private static double delta; public static long getTime() { return System.nanoTime(); } public static void setDelta(double d) { delta = d; } // Returns the time between frames in seconds public static double get...
package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.widget.verticalviewpager.a; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView.k; import com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.ad...
package fileWriter; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.List; public class CSVFileWriter { public <T> void write (String outputhPath, List<T> list){ StringBuffer valueBuilder = new StringBuffer(); String coordinatesLine = new Str...
package com.example.stirdiary; import android.content.Intent; import android.os.StrictMode; import android.view.View; import android.view.Window; import android.widget.ImageView; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import pl.com.salsoft.sqlitestudioremote.SQLiteStudioService; i...
package com.news.knews.repo; import com.news.knews.domain.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; @RepositoryRestResource public interface UserRepository extends JpaRepository<User,String>{ User findUserByIdAn...
package com.tencent.mm.ui.conversation; class ConversationWithAppBrandListView$21 implements Runnable { final /* synthetic */ ConversationWithAppBrandListView upB; ConversationWithAppBrandListView$21(ConversationWithAppBrandListView conversationWithAppBrandListView) { this.upB = conversationWithAppBra...
package com.tencent.mm.plugin.webview.modeltools; import com.tencent.mm.g.a.k; import com.tencent.mm.plugin.webview.ui.tools.bag.j; import com.tencent.mm.sdk.b.b; import com.tencent.mm.sdk.b.c; import com.tencent.mm.sdk.platformtools.x; class e$3 extends c<k> { final /* synthetic */ e pUl; e$3(e eVar) { ...
/* * Copyright (C) 2017 Tao Lu (Tao.CCC.Coach <at> gmail.com) - All Rights Reserved * * Unauthorized copying of this file is strictly prohibited. * */ package ca.cccboost.recursion; import java.util.Arrays; import java.util.Calendar; /** * Class ca.cccboost.recursion.Finonacci * * Fib(n) = Fib...
package algorithm.swea.D4; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; // N! , 2거듭제곱 값을 미리 계산해 놓고 재사용 public class _3234_준환이의양팔저울_DP풀이 { static int answer; static int N; static int[] scales; static boolean[] selected; ...
package br.com.smarthouse.controledeluzes.business.impl; import java.util.List; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import br.com.smarthouse.controledeluzes.business.ComponentesService; import br.com.smarthouse.controlede...
package com.basejava; import cn.hutool.core.util.IdUtil; public class UUIDUtils { public static void main(String[] args) { String randomUUID = IdUtil.randomUUID(); String simpleUUID = IdUtil.simpleUUID(); System.out.println(randomUUID); System.out.println(simpleUUID); } }
package dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import model.BenefitReport; import model.Benefit_Plan; import model.VacationCondition; import utils.DBConne...
package com.raczy.ds; import java.util.ArrayList; /** * Binary search tree implementation. * Average case complexity of operations (find, insert, delete): O(log(n)) * Worst case complexity of operations (find, insert, delete): O(n) * @param <T> */ public class BinarySearchTree<T extends Comparable<T>> implements...
package SystemSTL.AlgorithmSTL; import SystemSTL.TrafficComputation.Lane.LaneInfo; public class AlgorithmLaneInfo { private int cars_count; private double distance_from_crossroad; private double speed_limit; private double avg_car_length; //converting from LaneInfo to AlgorithmLaneInfo publi...
package com.pzhu.topicsys.common.mybatis.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.pzhu.topicsys.common.mybatis.entity.SystemConfig; import com.pzhu.topicsys.modules.comm.model.Dict; public interface SystemConfigMapper { int deleteByPrimaryKey(Integer configId); ...
package com.mc.mimo.moviechallenge.pojo.movielist; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class MovieList { @SerializedName("results") @Expose public List<Result> results = null; @SerializedName("page") @Expose...
package com.gyk.s2h.varmisin; /** * Created by HULYA on 16.08.2017. */ import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePa...
package uk.gov.hmcts.befta.util; import org.apache.commons.lang3.Validate; public class EnvironmentVariableUtils { public static String resolvePossibleVariable(String key) { if (key.startsWith("[[$")) { String envKey = key.substring(3, key.length() - 2); String envValue = getRequi...
package leetcode.construct_binary_tree; import leetcode.common.ListNode; import leetcode.common.TreeNode; import java.util.LinkedList; import java.util.Queue; /** * Created by user on 2017/5/11. */ public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { int len = preorder....
package com.tencent.mm.plugin.music.model.b; public interface a$b { void tE(int i); }
package org.pranavan.hibernate.controller; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import org.pranavan.hibernate.model.UserDetails; public class CacheExample { public static void main(String[] args) { SessionFactory ses...
package COM.JambPracPortal.BEAN; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; @ManagedBean public class SelectBooleanView { private boolean UseOfEnglish; private boolean Mathematics; private boolean Physiscs; ...
package kh.cocoa.service; import kh.cocoa.dao.MessageDAO; import kh.cocoa.dto.MessageDTO; import kh.cocoa.dto.MessageViewDTO; import kh.cocoa.statics.Configurator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public clas...
import java.util.*; class main { public static String func(String input) { Stack<Integer> st=new Stack<>(); StringBuilder temp=new StringBuilder(input); for(int i=0;i<temp.length();i++) { if(temp.charAt(i)=='(') { st.push(i); ...
package com.tencent.mm.ui; import android.os.Looper; import android.os.Message; import com.tencent.mm.sdk.platformtools.ag; class h$1 extends ag { final /* synthetic */ h tiG; h$1(h hVar, Looper looper) { this.tiG = hVar; super(looper); } public final void handleMessage(Message messa...
package com.prokarma.reference.architecture.di; public class Injection { private static Injection instance; private AppComponent appComponent; // creating dagger component private Injection(){ appComponent = DaggerAppComponent.builder().build(); } public static Injection create(){ ...
package Lesson2.Command; public class CarApp { public static void main(String[] args) { Car mustang = new Car(); Driver driver = new Driver(new Gaz(mustang), new Break(mustang), new Transmission(mustang), new Parking(mustang)); driver.start(); driver.transmission(); ...
package com.example.jkl.mapper; import com.example.jkl.pojo.UserCarShip; import org.apache.ibatis.annotations.Mapper; @Mapper public interface UserCarShipMapper extends CommonMapper<UserCarShip> { }
package com.cg.springcore.a5; import javax.annotation.Resource; import org.springframework.beans.factory.annotation.Required; @SuppressWarnings("deprecation") public class Book { private String bookName; private int price; @Resource private Author author; public Author getAuthor() { return author; } p...
/** * */ package com.di.annotation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * @author Ashutosh Bane * */ @Component public class SavingAccount implements IAccount { private InterestService interestService; @Autowired public Savin...
package lesson3; public interface MansClothes { void toDressMan(); }
package com.example.bragalund.taxiorder; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class StartScreenActivityUnitTest { @Before public void setUp() { } ...
package com.udogan.magazayonetimi.models.enums; public enum Bedenler { XS, S, M, L, XL, XXL, XXXL, XXXXL, XXXXXL; }
package jc.sugar.JiaHui.service.impl; import com.fasterxml.jackson.databind.ObjectMapper; import jc.sugar.JiaHui.entity.SugarJMeterSamplerResult; import jc.sugar.JiaHui.exception.SugarJMeterException; import jc.sugar.JiaHui.service.SugarJMeterSampleEventWebSocketService; import org.apache.log4j.LogManager; import org....
package com.tencent.mm.sdk.platformtools; public final class bj { private static boolean sJH = false; private static String sJI = null; private static boolean sJJ = false; public static void lj(boolean z) { sJJ = z; } public static boolean chn() { return sJJ; } public...
package Einkaufszettel.backend.datatypes; import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; /** * Object that contains the validation result of a remote validator. */ @XmlRootElement public class ValidationResult { @XmlElement pro...
package ua.babiy.online_store.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import ua.babiy.online_store.entity.Order; import ua.babiy.online_store.entity.OrderedProduct; import java.util.Set; @Repository public interface OrderedProductRep...
import java.io.*; import java.util.ArrayList; public class App { public static void main(String[] args) { ArrayList<String> list = new ArrayList<String>(); try { // input stream InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new...
import org.openqa.selenium.*; import org.openqa.selenium.support.ui.ExpectedCondition; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import java.util.List; import java.util.concurrent.TimeUnit; public class UsefulWaits { public static final int MAX...
import java.io.IOException; import java.util.logging.*; /** * The class implements fuctions to log various progress of the execution of the comparator */ public class StatusLogger { private final static Logger loggerExecution = Logger.getLogger("EXEC"); private final static Logger loggerDebug = Logger.getLo...
package io.x666c.glib4j.components; import java.awt.Color; import javax.swing.JButton; public class GButton { private JButton btn; public GButton(String label, Color color, Runnable action) { btn = new JButton(label); btn.addActionListener(action != null ? a -> action.run() : (a)->{return;}); btn.setBack...
package pl.edu.agh.internetshop; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static pl.edu.agh.internetshop.util.CustomAssertions.assertBigDecimalCompareValue; import java.math.BigDecimal; public class ProductTest { private static final String NAME ...
package com.senter.demo.hf.commons.nfc; import java.util.HashMap; import com.senter.demo.hf.commons.SQLites; import android.content.Context; import android.graphics.Color; /** * NFC 私有工具 * * @author neo * */ public class PrivateUtils { public static SQLites SQLS; private static final int DB_VERSION = 1; ...
package com.vilio.plms.dao; import com.vilio.plms.pojo.PlmsPropertyInvestigation; /** * Created by dell on 2017/8/11. */ public interface PlmsPropertyInvestigationDao { int savePlmsPropertyInvestigationInfo(PlmsPropertyInvestigation propertyInvestigation) ; }
package WebComponent; import java.util.ArrayList; public class RadioButton extends WebComponentSelect{ public RadioButton() { super(); } public RadioButton(RadioButton rb) { // TODO Auto-generated constructor stub super(rb); } @Override public ArrayList<String> testAction() { ArrayList<String> strin...
package ru.biv.utils; public class TimeHelper { public static void sleep(long milis) { try { Thread.sleep(milis); } catch (InterruptedException e) { e.printStackTrace(); } } }
package com.tencent.mm.plugin.gif; class c$5 implements Runnable { final /* synthetic */ c kie; c$5(c cVar) { this.kie = cVar; } public final void run() { MMGIFJNI.saveRemainder(c.d(this.kie)); } }
package com.ericazevedo.bookstoremanager.dto; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; //Cria os GETTER e SETTERS @...
package org.browsexml.aop; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.browsexml.timesheetjob.dao.hibernate.HoursWorkedDaoHibernate; public class PerformanceInterc...
package sample; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.TextField; import javafx.scene.layout.Border; import javafx.scene.layout.BorderPane; import javafx.scene.layout.VB...
package net.fexcraft.lib.tmt; public class EmptyModelBase extends ModelBase { @Override public void render(){ // } @Override public void translateAll(float x, float y, float z){ // } @Override public void rotateAll(float x, float y, float z){ // } }
package com.adactin.helper; import java.io.File; import java.io.FileInputStream; import java.util.Properties; public class ConfigurationReader { Properties p = new Properties(); public ConfigurationReader() throws Throwable { File f = new File( "C:\\Users\\MR.PRADEEP\\eclipse-workspace\\MavenProject\\src\\te...
package com.daheka.nl.social.shadowfish.restserver.controller; import ch.qos.logback.classic.Logger; import com.daheka.nl.social.shadowfish.dao.*; import com.daheka.nl.social.shadowfish.restserver.repository.AppUserRepository; import com.daheka.nl.social.shadowfish.restserver.repository.PersonRepository; import com.da...
package com.shopping.DAO; import java.sql.SQLException; import java.util.List; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanListHandler; import com.shopping.models.addr; import com.shopping.utils.JDBCUtils; public class AddrDAO{ public List<addr> seleAll(String sq...
package linkedList; //jian pan 5728309 public class linkedList { private node head; public linkedList(){ this.head = null; } public boolean isEmpty(){ return head == null; } public boolean insert(int data){ node newnode = new node(data); if(isEmpty()){ ...
package com.mac.dubbo.erp.baby.customer; import com.mac.dubbo.erp.baby.model.comm.MsgRequest; import com.mac.dubbo.erp.baby.model.comm.MsgResponse; import com.mac.dubbo.erp.baby.model.customer.Customer; import com.mac.dubbo.erp.baby.model.order.Order; import com.mac.dubbo.erp.baby.service.customer.CustomerService; imp...
import java.util.Arrays; public class BinarySearchgeneric<T extends Comparable<T>> { public int BinarySearch(T[] arr, T key) { int low = 0; int high = arr.length - 1; while (low <= high) { int mid = (low + high) / 2; if (arr[mid].compareTo(key) == 0) { ...
package com.cm4j.thread; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.atomic.AtomicInteger; /** * 线程池拒绝策略 * <pre> * 前10次触发拒绝都上报 * 以后每100次上报一次 * </pre> * * @auth...
import java.util.ArrayList; import java.util.stream.Collectors; import java.util.stream.Stream; public class Chromosome { // parametry chromosomu - inicjalizacja / deklaracja static final String SOLUTION = "1 1 1 1 1 1 1 1 1 1 1 1 1 1 1"; int minValueOfGene = 0; int maxValueOfGene = 10; ArrayList<...
package Assignment_1; public class QuadMain { public static void main(String[] args) { Quadrilateral q[] = new Quadrilateral[4]; q[0] = new Rectangle(10,30,10,20,10,20,0,20); q[1] = new Square(10,30,20,0,10,10,20,20); q[2] = new Parallelogram(10,30,20,0,10,10,20,20,6); q[3] = new Trapezoid(10,10,30,10,2...
package trie; import java.util.TreeMap; /** * 字典树基本实现 */ public class Trie { public class Node { boolean isWord; // 当前节点是否是一个单词 //数据量级较小可以是使用数组,HashMap会更快速 TreeMap<Character,Node> next; // 当前节点为前缀的下一层节点映射 public Node(boolean isWord) { this.isWord = isWord; ...
package com.infytel.dto; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import com.infytel.domain.SimDetails; public class SimDetailsDTO { int simId; @Min(value=1000000000,message= "Service number should be 10-digit numeric value") @Max(value=9999999999L,message= "S...
package com.tt.miniapp.titlemenu.item; import android.app.Activity; import android.app.Application; import android.content.Context; import android.graphics.drawable.Drawable; import android.view.View; import com.tt.miniapp.AppbrandApplicationImpl; import com.tt.miniapp.feedback.FeedbackLogHandler; import com....
package com.wangyi.wangyi_yanxuan.controller; import com.wangyi.wangyi_yanxuan.domain.Order; import com.wangyi.wangyi_yanxuan.service.OrderService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.R...
package com.phone4s.www.model; public class CommunityCart { private String totalNumber; private String community; private String totalPrice; private String goodsName; private String totalUser; public CommunityCart(String totalNumber, String community, String totalPrice, String goodsName, String totalUser) { ...
package com.lec.ex7_Timer; import java.util.Timer; public class TimerMain { public static void main(String[] args) throws InterruptedException { System.out.println("시작"); Timer timer = new Timer(true); // true: 프로그램 종료되면 timer 종료 // 작업객체 Task TimerTaskEx01 task1 = new TimerTaskEx01(); TimerTaskEx02 task2 ...
package com.bowlong.sql.builder.jdbc.mysql; import java.io.IOException; import java.sql.Connection; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Vector; import com.bowlong.Toolkit; impor...
package org.yipuran.gsonhelper.serialize; import java.lang.reflect.Field; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.StringTokenizer; import org.yipuran.gsonhelper.Exclude; import org.yip...
package com.yy.lite.brpc.protocol.codec; import com.baidu.brpc.RpcMethodInfo; import com.google.common.collect.Maps; import com.yy.anka.io.rpc.parse.*; import org.apache.commons.lang3.tuple.Pair; import java.util.Map; /** * @author donghonghua * @date 2019/7/26 */ public class BrpcMetaService { private stati...
package icu.fordring.voter.beans; import javax.persistence.*; import java.util.HashSet; import java.util.Set; @Table @Entity public class ImageBean { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column private String path; @Column private String name; @Colu...
/** * @Author: Mr.M * @Date: 2019-03-27 21:06 * @Description: **/ class test11 { public static void main(String[] args) { OK: for(int i = 0; i < 10; i++){ for(int j = 0; j < 10; j++){ System.out.println(j); if(j == 5) break OK; } } } } class test22 { public static void main(String[] ...