text
stringlengths
10
2.72M
/* * Copyright 2008, Myron Marston <myron DOT marston AT gmail DOT com> * * This file is part of Fractal Composer. * * Fractal Composer is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 o...
package pl.manufacturer.object.util; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; public class ArgumentTypeUtil { private ArgumentTypeUtil() { } public static boolean isBaseType(Type type) { return type.equals(String.class) || ...
package com.huotn.bootjsp.bootjsp.controller; /** * @Description: WeixinController * * @Auther: leichengyang * @Date: 2019/4/29 0029 * @Version 1.0 */ import com.huotn.bootjsp.bootjsp.common.MenuMain; import com.huotn.bootjsp.bootjsp.config.weixin.mp.WeChatUtil; import com.huotn.bootjsp.bootjsp.pojo.AccessToken...
package com.article.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories; @SpringBootAppl...
package guis; import java.util.ArrayList; import org.lwjgl.input.Mouse; import engineTester.MainGameLoop; public class Menu { public ArrayList<GuiButton> buttons = new ArrayList<GuiButton>(); public GuiTexture background; public Menu(GuiTexture background, GuiButton... button){ for(GuiButton b : button){ ...
package commands; import com.jagrosh.jdautilities.command.Command; import com.jagrosh.jdautilities.command.CommandEvent; public class Log extends Command { private static String logChannel; private static boolean logChannelCheck; public Log() { super.name = "log"; super.aliases = new String[] {...
package mx.infotec.inflector.engine; import java.io.BufferedReader; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import mx.infotec.inflector.engine.Dictionary.Analysis; /** * * @author Roberto Villarejo Martinez <roberto.villarejo@infotec.mx> * */ public class SpanishInfl...
//подсчет сколько каких буков во введеных строчках package Tasks; import java.io.*; import java.util.*; public class Task53 { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); // Алфавит List<Character>...
package com.example.netflix_project.src.main.home; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.anno...
package kr.co.wisenut.editor.dao.impl; import java.util.List; import kr.co.wisenut.editor.dao.EditorDao; import kr.co.wisenut.db.*; import kr.co.wisenut.editor.model.Country; import kr.co.wisenut.editor.model.FormVO; import kr.co.wisenut.editor.model.Period; import kr.co.wisenut.editor.model.ScenePersonMapping; impor...
package com.zemoso.training.service; import com.zemoso.training.entity.User; import com.zemoso.training.exception.ResourceNotFoundException; import com.zemoso.training.exception.ValidationException; import com.zemoso.training.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; imp...
package hiring.service; import com.google.gson.Gson; import hiring.daointerface.DataBaseDaoImpl; import hiring.database.DataBaseException; import hiring.dto.ErrorDto; import java.io.File; abstract public class ServerService { private static DataBaseDaoImpl dataBaseDao = new DataBaseDaoImpl(); public static S...
package ProjectStarterCode.model; public class Food { /** * Produces the food that the snake will eat, which * will be in one of the tiles of the board. */ public Tile location; public Board board; /** * Produces a food object which will be placed on a tile of the board * ...
/* * Copyright (c) MyScript. All rights reserved. */ package com.myscript.iink.samples.search; import com.google.gson.annotations.SerializedName; import java.util.List; public class JiixRawContent { @SerializedName("type") public String type; @SerializedName("elements") public List<Element> eleme...
package statealarma; import java.util.Scanner; public class pruebaEstado { public static void main(String...args){ Alarma alarma = new Alarma(); Activa activa= new Activa(); mantenimenito mantenimineto = new mantenimenito(); int opcion = 0 ; @SuppressWarnings("resource") Scanner sc= ne...
package pp.model.comparators; import pp.model.xml.CGlad; import java.util.Comparator; /** * Created by alsa on 25.06.2016. */ public class GladAgeComparator implements Comparator<CGlad> { @Override public int compare(CGlad o1, CGlad o2) { return Long.valueOf(o1.getAge()).compareTo(o2.getAge()); ...
package cn.ccuwxy.service; import cn.ccuwxy.dao.UserInfoDao; import cn.ccuwxy.dao.UserInfoImpl; import cn.ccuwxy.model.UserInfo; public class UserInfoServiceImpl implements UserInfoService { private UserInfoDao userInfoDao = new UserInfoImpl(); @Override public boolean intoUserInfo(UserInfo userInfo) { ...
package raft.server; public interface TimeoutManager extends LifeCycle { boolean isElectionTimeout(); long getElectionTimeoutTicks(); void resetElectionTimeoutTicks(); void clearAllTimeoutMark(); void clearElectionTickCounter(); void clearAllTickCounters(); long getLastClearTimeoutAt(...
package io; import java.util.Scanner; public class ScannerDemo { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("What is your name? "); String name = scanner.nextLine(); System.out.print("How old are you? "); int age = scanner.nextInt(); System.out.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 morfologia; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Luciano */ publ...
package com.zc.base.sys.modules.user.entity; public class Reply { private String account; private String ipAddr; private String replyCreateTime; public Reply(String account, String ipAddr, String replyCreateTime) { this.account = account; this.ipAddr = ipAddr; ...
package com.jerry.cyclicbarrier; /** * Date: 17/9/7 18:36 * * @author jerry.R */ public class ArriveTask implements Runnable { @Override public void run() { System.out.println("inside CyclicBarrier..."); } }
package net.awesomekorean.podo.lesson.lessonVideo; import net.awesomekorean.podo.R; public class LessonVideoHangul implements Video { String title = "Hangul"; int[] videoImage = { R.drawable.hangul00, R.drawable.hangul01, R.drawable.hangul02, R.drawable.hangul03, R.drawable.hangul04, ...
package ch3; import java.util.Scanner; public class ex_C2F { public static void main(String[] args) { // TODO Auto-generated method stub //f = c * 9/5 +32 Scanner scn = new Scanner(System.in); double f; double c; double m = 9/5; int cons = 32; System.out.print("input> "...
/* * 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.gaoshin.onsalelocal.osl.entity; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class NotificationList { private List<Notification> items = new ArrayList<Notification>(); public List<Notification> getItems() { return items...
package com.gateway.client; import com.gateway.app.Config; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; import java.net.MalformedURLException; import java.net.U...
/* ==================================================================== * * Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights reserved. * * ==================================================================== * */ package com.aof.webapp.action.party; import java.io.IOException; import java.sql.SQLExcept...
package com.example.lamelameo.picturepuzzle; import android.content.ActivityNotFoundException; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Matrix; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import an...
import java.util.*; public class RepublicDay { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n1=sc.nextInt(); int n2=sc.nextInt(); int p=0; for(int i=1;i<n1 && i<=n2;i++) { if(n1%i==0 && n2%i==0) p=i; } System.out.println(p); }...
package aplicacionmovil.com.aplicacion; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; import java.util.Timer; import java.util.TimerTask; public class Juego extends AppCompatActivity { int numSec = 57; @Override protected void onCreate(Bundle s...
/** * Sencha GXT 3.0.1 - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.explorer.client.tabs; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.event.logical.shared.ValueChangeEvent; import c...
package com.brainacademy.factory; public class ShapeFactory { public Shape createShape(ShapeType type) { switch (type) { case CIRCLE: return new Circle(); case RECTANGLE: return new Rectangle(); default: throw new RuntimeE...
package com.codingchili.instance.model.questing; import java.util.*; import com.codingchili.core.storage.Storable; /** * @author Robin Duda * <p> * A quest object as defined in configuration. */ public class Quest implements Storable { private List<QuestStage> stage = new ArrayList<>(); public String id;...
package com.itheima.day_01.homework.phone; public class PhoneDemo { /* 分析以下需求,并用代码实现 要求:完成代码(按照标准格式写),然后在测试类中测试。 1.手机类Phone 属性:品牌brand,价格price 无参构造,有参构造 行为:打电话call,发短信sendMessage,玩游戏,playGame 2.测试类 创建Phone类对象,调用Phone类中的方法 思考:假设所有的手机都有属性屏幕的尺寸(int size), 而且假设所有手机的屏幕尺寸为6,应该如何实现? */ pu...
/* * Copyright (C) 2009, backport-android-bluetooth - http://code.google.com/p/backport-android-bluetooth/ * * 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.apa...
package com.epic.MIS; import com.epic.MIS.model.Bank; import com.epic.MIS.model.Employee; import com.epic.MIS.repository.BankRepository; import com.epic.MIS.repository.EmployeeRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.spring...
package cn.itcast.bookstore.search.dao; import java.sql.SQLException; import java.util.List; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanListHandler; import cn.itcast.bookstore.book.domain.Book; import cn.itcast.jdbc.TxQueryRunner; public class SearchDao { private ...
package com.s1mple.service; import com.s1mple.entity.DormRepair; import com.s1mple.entity.PageInfo; import java.util.List; /** * @author s1mple * @create 2020/4/6-16:39 */ public interface DormRepairService { /** * 分页查询 * @param d_id * @param d_dormbuilding * @param pageIndex * @para...
package com.utils; public class ZJ_NumberUtils { public static Integer getInteger(String str) { try { if (null == str || "".equals(str)) { return null; } else { return Double.valueOf(str).intValue(); } } catch (Exception e) { return null; } } public static Double getDouble(String str) { ...
package cn.novelweb.tool.upload.fastdfs.exception; /** * <p>非FastDFS本身的错误码抛出的异常,socket连不上时抛出的异常</p> * <p>2020-02-03 16:18</p> * * @author LiZW **/ public class FastDfsConnectException extends FastDfsUnavailableException { public FastDfsConnectException(String message, Throwable t) { super(message, t);...
package org.dbdoclet.tidbit.perspective.docbook.html; import javax.swing.JCheckBox; import org.dbdoclet.Identifier; import org.dbdoclet.jive.widget.GridPanel; import org.dbdoclet.tidbit.common.Constants; import org.dbdoclet.tidbit.perspective.panel.docbook.IndexPanel; import org.dbdoclet.tidbit.project.Project; impor...
package com.javainuse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Required; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import javax.persistence.Entity; import javax.persistence.Id; @Comp...
package express.product.pt.cn.fishepress.callbacklistener; /** * httpUtils的回调监听接口 */ public interface HttpCallBackListener { void onFinish(String result); void onError(Exception error); }
package com.grocery.codenicely.vegworld_new.home.provider; import com.grocery.codenicely.vegworld_new.helper.Urls; import com.grocery.codenicely.vegworld_new.home.OnHomeDataRequest; import com.grocery.codenicely.vegworld_new.home.api.HomeDetailsRequestInterface; import com.grocery.codenicely.vegworld_new.home.mod...
package com.larryhsiao.nyx.core.tags; import com.silverhetch.clotho.Action; import com.silverhetch.clotho.Source; import java.sql.Connection; import java.sql.PreparedStatement; /** * Action to update a Tag. */ public class UpdateTag implements Action { private final Source<Connection> db; private final Tag...
package edu.mum.sonet; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @Disabled @SpringBootTest class SonetApplicationTests { @Test void contextLoads() { } }
package com.csair.datatrs.common; /** * 处理器接口 * Created by cloudoo on 2015/5/4. * 是否考虑使用责任链模式 * */ public interface Processor<T> { public T doit(); }
package web.command.impl; import classes.util.Resultado; import dominio.evento.IDominio; import web.command.AbsCommand; public class AlterarCommand extends AbsCommand { @Override public Resultado execute(IDominio entidade) { return fachada.alterar(entidade); } }
package com.memory.platform.core.springmvc; import javax.servlet.http.HttpServletRequest; import org.springframework.context.ApplicationContext; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web....
package ru.malichenko.market; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @ActiveProfiles("test") public class FullServerRunTest { // @Autowired // private TestRes...
package test.AbstractFactory.factory.inter; import test.AbstractFactory.button.inter.Button; import test.AbstractFactory.textField.inter.TextField; /** * 界面皮肤工厂接口:抽象工厂 * @author lho * */ public interface SkinFactory { public Button createButton(); public TextField createTextField(); }
package com.clickbus.placesmanager.services; import com.clickbus.placesmanager.dto.request.StateRequestModel; import com.clickbus.placesmanager.dto.response.StateResponseModel; import com.clickbus.placesmanager.entities.State; import com.clickbus.placesmanager.exception.ResourceNotFoundException; import com.clickbus.p...
package com.zhicai.byteera.activity.product.entity; import android.os.Parcel; import android.os.Parcelable; /** Created by bing on 2015/6/2. */ @SuppressWarnings("unused") public class ProductEntity implements Parcelable { private String productId; private String smallImage; //头像 private String produ...
package com.example.demo; import javax.persistence.*; @Entity public class Person { @Id @GeneratedValue(strategy = GenerationType.AUTO) private int id; private String name; private String birthday; @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name="passport_id") private Passport pa...
import org.apache.camel.CamelContext; import org.apache.camel.ProducerTemplate; import org.apache.camel.impl.DefaultProducerTemplate; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * User: i54327 * Date: 5/2/14 * Time: 12:54 PM ...
package com.egame.app.uis; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Timer; import java.util.TimerTask; import android.app.NotificationManager; import android.app.TabActivity; import android.content.Context; import android.content.Intent; import android.content.IntentFil...
package com.driva.drivaapi.config; import io.swagger.v3.oas.models.security.SecurityScheme; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.builders.PathSelecto...
package twice.pbdtest; import android.content.SharedPreferences; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.Fragm...
public class SantaClaus { private final int NumberOfReindeers = 2; public final int NumberOfLaps = 5; private int reindeersHungry = NumberOfReindeers; private boolean raceStarted = false; private boolean raceOver = false; private int notYetReadyForGoingHome = NumberOfReindeers; protected Reindeer theReindeers[]...
package com.corycharlton.bittrexapi.model; import com.google.gson.annotations.SerializedName; @SuppressWarnings("unused") public class Ticker { @SerializedName("Ask") private double _ask; @SerializedName("Bid") private double _bid; @SerializedName("Last") private double _last; private Ticker() {...
package com.lesports.albatross.activity.mine; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.text.format.DateUtils; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget...
package org.dreamer.expression.calc; /** * TypedToken class keeps token type, depending on token value. * It allows us to compare enum values instead of strings. */ public class TypedToken { public enum Type { VALUE, OPEN_BRACKET, CLOSE_BRACKET, OP_ADD, OP_SUB, OP_MUL, OP_DIV, FUNC, CONST } public TypedT...
package com.xiaoniu.NetReptile; import java.io.IOException; import java.net.URL; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import org.junit.Before; import org.junit.Test; public class TestJsoup { static Document doc =null;...
package gromcode.main.lesson19.homework19_1; public class Controller { public File put(Storage storage, File file) throws Exception{ storage.checkPutFile(file); storage.addFile(file); return file; } public void delete(Storage storage, File file) throws Exception{ if(storag...
package threadtest; public class ThreadTestJoin { public static void main( String[] args ) throws InterruptedException { MyThread2 t = new MyThread2(); t.start(); t.interrupt();; System.out.println("Main thread end"); } } class MyThread extends Thread { publi...
package com.yutianhao.movie.domain.query; /** * * @ClassName: MovieQuery * @Description: Movie视图类,VO类 * @author thyu * @date 2020年3月23日 * */ public class MovieQuery { private String name; private String director; private Integer legend; private String startTime; private Str...
/** * Copyright (C) 2008 Atlassian * * 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 t...
// Name: Nanako Chung // Date: Feb 21st, 2017 // Description: this program eliminates duplicates in an array and returns the clean array to the user import java.util.Arrays; public class DupeEliminator { // main method public static void main(String[] args) { // input array int[] array = {4,5,5,5,2,3,1}; //...
package com.nfet.icare.util; public class GlobalConstants { public final static String ERROR_CODE_SUCCESS = "0"; public final static String ERROR_CODE_FAIL = "1"; public final static String ERROR_CODE_UNKNOWN = "2"; }
package com.pwc.brains.dictionary; import java.io.Serializable; public class Letter implements Serializable { private char name; public Letter(char name) { this.name = name; } public char name() { return name; } @Override public boolean equals(Object o) { if (o =...
package blackbird.core; /** * Enum indicating the reasons a connection has been closed for. */ public enum CloseReason { /** * Indicates the connection was closed by the other side. */ BY_OTHER_SIDE, /** * Indicates the connection was closed intentionally from this side. */ INTE...
package com.edasaki.rpg.dungeons; import java.util.ArrayList; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.entity.ArmorStand; import org.bukkit.entity.EnderCrystal; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; import com.edasaki.core.utils.RMath; import com.edas...
package com.eomcs.basic.ex06; public class Exam0423 { public static void main(String[] args) { //String[] name = new String[4]; String name[] = {"가나","다라","마바","사아","자"}; for (String ambles : name) { System.out.println(ambles); } } }
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; /* # Autho...
/* * File: Heater.java * Author: David Green DGreen@uab.edu * Assignment: Fall2018P1toP3 - EE333 Fall 2018 * Vers: 1.1.2 10/11/2018 alf - added default constructor * Vers: 1.1.1 09/25/2018 dgg - update documentation for toString * Vers: 1.1.0 09/02/2018 dgg - changes for P2 * Vers: 1.0.0 08/18/2018 dgg - initia...
package com.example.rihaf.diabetesdietexpert; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem...
package com.strings; public class MinWindow { public static void main(String[] args) { MinWindow mw = new MinWindow(); String s = "ADOBECODEBANC"; String t = "ABC"; System.out.println(mw.minWindow(s, t)); } /** * needs a map and two pointers left and right * compare the value and see if its greater ...
package com.qx.wechat.comm.sdk.request.msg; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; /** * 音乐消息 * @author Macky(liuyunsh@cn.ibm.com) * * @date: Apr 12, 2020 1:28:33 PM * * @since: 1.0.0 * */ public class PassiveMusicSendMsg extends PassiveMsg{ private static final long seria...
package com.ms.ms1; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class GuestProfileServiceImpl { @Autowired private MS2FeignClient client; public GuestProfileDTO getGuestProfile(String id) { GuestAddressDTO guestAddress = client....
public class MergeSortedArray { public void merge(int[] nums1,int m ,int[] nums2, int n){ int i=m-1,j=n-1,z=m+n-1; while(i>=0 && j>=0){ if(nums1[i] > nums2[j]){ nums1[z] = nums1[i]; i--; z--; }else{ nums1[z] = nums2[j]; j--; z--; } } for(int k=i;k>=0;k--){ nums1[z] = nums1[...
import java.util.Vector; public class B3Vectortest { public static void main(String[] args) { Vector v=new Vector(); v.add("aaa"); v.add("bbb"); v.add("ccc"); v.add("ddd"); v.add("eeee"); for (int i = 0; i < v.size(); i++) { System.out.println(v.get(i));//결과를 보면 같은 v참조변수에 중복값을 가져오는걸 볼 수 있다. ...
package live.citang.onema.service; import live.citang.onema.mbg.model.PmsBrand; import java.util.List; /** * @Author: citang * @Date: 2020-05-04 07:41 * @Description: description what the main function of this file */ public interface PmsBrandService { List<PmsBrand> listAllBrand(); int createBrand(Pm...
package kr.or.ddit.service.adminmypage; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; import java.util.List; import kr.or.ddit.dao.adminmypage.ImemberInfodao; import kr.or.ddit.dao.adminmypage.memberInfoDaoImpl; import kr.or.ddit.vo.MemberInfoVO; public class memberInfoServiceImpl ext...
package com.hb.framework.system.service; import java.io.InputStream; import java.util.Collection; import java.util.List; import java.util.Map; import javax.servlet.ServletOutputStream; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframe...
package BatailleNavale; import java.awt.event.*; public class ControlButtonGame extends Control implements ActionListener { public ControlButtonGame(Model model, Vue vue) { super(model, vue); vue.setButtonsControlGame(this); } public void actionPerformed(ActionEvent e) { ...
/* * @lc app=leetcode.cn id=75 lang=java * * [75] 颜色分类 */ // @lc code=start class Solution { public void sortColors(int[] nums) { int[] count = new int[3]; for (int i = 0; i < nums.length; i++) { switch (nums[i]) { case 0: count[0]++; ...
package me.jcomo.slimtwitter.models; import android.os.Parcel; import android.os.Parcelable; import com.activeandroid.ActiveAndroid; import com.activeandroid.Model; import com.activeandroid.annotation.Column; import com.activeandroid.annotation.Table; import com.activeandroid.query.Delete; import com.activeandroid.q...
package Provedor_Consumidor; /** * * @author Garcia Garcia Jose Angel */ public class Principal { public static void main(String[] args) { Drop drop = new Drop();; new Thread(new Produccer(drop)).start(); new Thread(new Consumer(drop)).start(); } }
package com.example.stepdefinitions; import com.example.pageobjects.*; import com.example.utils.Constants; import io.cucumber.java.en.And; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; import org.testng.Assert; public class UserHomeStepDefinitions { private fi...
package com.lasform.core.model.dto; import com.lasform.core.C; import lombok.Data; import java.util.List; @Data public class GeoAreaDto { private long id; private String name; private String description; private C.GEO_AREA_TYPE type; private String areaString; private List<LatLng> areaList; ...
package solution; import java.util.Scanner; public class LoopQ2 { public static void main(String[] args) { int sum=0,r,s=0,n; System.out.println("enter a no:"); Scanner scanner = new Scanner(System.in); n=scanner.nextInt(); do{ r=n%10; s=s+r; ...
import org.junit.*; import play.test.*; import play.mvc.*; import play.mvc.Http.*; import models.*; public class HomePageTests extends FunctionalTest { @Test public void testThatIndexPageWorks() { Response response = GET("/"); assertIsOk(response); assertContentType("text/html", resp...
package com.web.common.user; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.ArrayList; import java.util.List; import java.util.Vector; import cis.internal.util.EncryptUtil; import com.web.framework.configuration.Configuration; import com.web.framework.conf...
package Section2; public class Code17 { public static void main(String[] args) { // TODO Auto-generated method stub for (int n=2; n<=100000; n++){ if(isPrime(n) == true){ System.out.println(n); } } } static boolean isPrime(int k){ if(k<2){ return false; } for(int i...
package io.jrevolt.sysmon.model; /** * @author <a href="mailto:patrikbeno@gmail.com">Patrik Beno</a> */ public enum EndpointStatus { UNKNOWN, OK, UNAVAILABLE, ERROR, }
package com.stackroute; import com.mongodb.*; import java.net.UnknownHostException; public class MongodbDemo { public static void main(String[] args) { try { MongoOperations mongoOperations = new MongoOperations(); mongoOperations.createDocument(); mongoOperations.upda...
package com.example.demo.moduls.redis.config; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisStandaloneConfiguration; import org.springframe...
package com.ipincloud.iotbj.srv.domain; import java.io.Serializable; import java.math.BigDecimal; import java.sql.Time; import java.sql.Date; import java.sql.Timestamp; import com.alibaba.fastjson.annotation.JSONField; //(AlgorithmPush)算法推送人员 //generate by redcloud,2020-07-24 19:59:20 public class AlgorithmPush imple...
package oops; import java.util.Scanner; public class Operators { public static void main(String[] args) { // TODO Auto-generated method stub Scanner s = new Scanner(System.in); System.out.println("Enter 2 numbers"); int a = s.nextInt(); int b = s.nextInt(); System.out.printf("1)add\n2)sub\n3)mul...