text
stringlengths
10
2.72M
package io.netty.example.time.aio; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.nio.channels.AsynchronousSocketChannel; import java.nio.channels.CompletionHandler; import java.text.SimpleDateFormat; import java.util.Date; public class ReadCompletionH...
/* * Copyright (C) 2013 Square, 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 agree...
package pixel.bus.gui.renderer; import pixel.bus.model.Vehicle; import javax.swing.*; import javax.swing.table.TableCellRenderer; import java.awt.*; /** * Created by vanley on 18/06/2017. */ public class VehicleProgressCellRenderer extends JProgressBar implements TableCellRenderer { @Override public Comp...
package proCat.security; import io.jsonwebtoken.Claims; import org.springframework.security.core.Authentication; import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders...
package com.nuuedscore.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation...
public class Portfolio { private static int capital = 10000; private static double deltaThreshold = 1000; public static void main(String[] args) { //Initalize all stocks with volumes. Volumes are based on an equal distribution of capital Stock A = new Stock(); A.volume = (int) Math.floor(capital/5/A.getPrice...
package com.jp.notice.mapper; import java.util.List; import org.springframework.stereotype.Component; import com.jp.notice.po.NoticePo; @Component("noticeMapper") public interface NoticeMapper { public int addNoticePo(NoticePo po); public int deleteNoticeById(NoticePo po); public List<NoticePo> getNoticeLis...
package com.smxknife.java2.thread.interrupt; import java.util.concurrent.TimeUnit; /** * @author smxknife * 2019/9/19 */ public class ThreadInterruptBlockedDisable implements Runnable { @Override public void run() { while (!Thread.currentThread().isInterrupted()) { /** * 通过下面三组输出可以发现,调用interrupt之后,并没有改...
package android.com.provider.pushNotification; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.com.provider.activities.ActivityOpenApportunity; import android.com.provider.applicationUtils.App; import and...
package com.tencent.mm.plugin.wenote.model.a; import java.io.Serializable; public final class p implements Serializable { public boolean qpf = false; public long qpg = -1; public long qph = -1; public boolean qpi = false; public String qpj = ""; public String qpk = ""; public int qpl = 0; ...
package presentacion.controlador.command.CommandMaterial; import java.util.Collection; import negocio.factorias.FactorySA; import negocio.material.SAMaterial; import presentacion.contexto.Contexto; import presentacion.controlador.command.Command; import presentacion.eventos.EventosMaterial; import negocio.material.Tr...
package com.epam.restaurant.entity; import org.junit.Assert; import org.junit.Test; import java.util.Date; import static org.junit.Assert.*; /** * Created by Вероника on 16.03.2016. */ public class NewsTest { private News news = new News("name",new Date(),"content","image"); @Test public void testG...
package com.demo.domain; public class SpecialPower { private String description; private Rate rate; public SpecialPower() { } public SpecialPower(String desription, Rate rate) { this.setDescription(desription); this.setRate(rate); } public String getDescription() { return description; } public ...
package jdbc; import java.sql.*; import java.util.*; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; import jdbc.tempMemberVO; public class tempMemberDAO { private final String JDBC_DRIVER="oracle.jdbc.driver.OracleDriver"; private final String JDBC_URL...
package org.foobarspam.cotxox.conductores; import java.util.ArrayList; public class Conductor { //Propiedades private String nombre = " "; private String modelo = " "; private String matricula = " "; private double valoracionMedia = 0d; private ArrayList<Byte> valoraciones = new ArrayList<Byte>(); ...
package com.ck.hello.nestrefreshlib.View.RefreshViews.HeadWrap; import android.content.Context; import android.view.ViewGroup; import android.widget.LinearLayout; /** * Created by vange on 2017/9/1. */ public interface WrapInterface { LinearLayout getHeaderLayout(); LinearLayout getFootLayout(); Contex...
package com.example.spring; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) public @interface MySpringApplication { }
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.Collection; import java.util.HashSet; import org.junit.Test; public class StudentTests { @Test(timeout = 500) public void basicDisjointTestSameSet() { HashSet<String> set = new HashSet<String>()...
package com.example.emp.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.example.emp.entity.Employee; import com.example.emp.exceptions.EmployeeNotFoundException; import com.example.emp.repository.Employe...
package in.hocg.database; import org.springframework.stereotype.Component; /** * (๑`灬´๑) * Created by hocgin on 十一月28 028. * 数据库预处理器 */ @Component public interface Seeder { void run(); }
package org.dimigo.basic; public class Operator { public static void main(String[] args) { int S1a = 9, S1b = 10; double S1h = 5.8; int S2a = 9; double S2h = 5.4; double S1, S2; S1 = (S1a + S1b)*S1h/2; S2 = S2a*S2h; System.out.println("<< 도형 넓이 비교 >>"); System.out.print...
package com.example.myapplication; import android.annotation.SuppressLint; import android.app.Service; import android.content.Intent; import android.media.MediaPlayer; import android.os.Binder; import android.os.IBinder; import android.os.Message; import android.util.Log; import android.widget.Toast; import com.examp...
package com.lqs.hrm.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.lqs.hrm.entity.Roles; import com.lqs.hrm.entity.RolesExample; import com.lqs.hrm.mapper.RolesMapper; import com.lqs.hrm.service.RolesServic...
package com.rx.rxmvvmlib.core.audio; /** * Created by ZhouMeng on 2018/9/5. * 录音对象的状态 */ public enum AudioStatus { //未开始 STATUS_NO_READY, //预备 STATUS_READY, //录音 STATUS_START, //暂停 STATUS_PAUSE, //停止 STATUS_STOP }
package com.ekniernairb.dicejobsearcher.staticClasses; /** * Class to keep track of useful information project-wide. */ public class Api_Data { public static int mCurrentPage; public static int mFirstDocument; public static int mLastDocument; // total records in API query. public static int mCo...
package com.xvr.serviceBook.entity; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.RequiredArgsConstructor; import lombok.Setter; import javax.persistence.*; @Getter @Setter @RequiredArgsConstructor @Entity @Table(name = "equipment_type") public class TypeEquipment { @Id @Column(name =...
package com.uwetrottmann.trakt5.entities; import java.util.List; public class ListReorderResponse { public Integer updated; public List<Long> skipped_ids; }
package lab01.tdd; public class MultipleOfStrategy implements SelectStrategy{ final private int divisor; public MultipleOfStrategy(final int divisor) { this.divisor = divisor; } @Override public boolean apply(int element) { return element % divisor == 0; } }
package com.box.androidsdk.content.requests; import com.box.androidsdk.content.models.BoxObject; import java.io.Serializable; /** * This class acts as a wrapper for holding onto the response or exceptions returned from the result of a BoxRequest. * @param <E> The BoxObject that was generated from a response to a B...
import java.io.*; import java.net.URL; import javax.sound.sampled.*; class Sound { String[] FILES = {"sounds/Bottle.aiff", "sounds/Morse.aiff", "sounds/Pop.aiff", "sounds/Tink.aiff", "sounds/tap1.wav", "sounds/tap2.wav", "sounds/tap3.wav", "sounds/tap4.wav", "sounds/tap5.wav", "sounds/tap6...
package edu.mum.cs.cs544.exercises.b; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import edu.mum.cs.cs544.exercises.a.Product; @Entity public class Book extends Product { private String title ; public Book() { ...
package org.maven.ide.eclipse.swtvalidation; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.swt.custom.CCombo; import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Text; import org.eclipse.swt....
/* * Copyright 2006 Ameer Antar. * * 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...
import java.util.HashMap; import java.util.ArrayList; import java.util.List; import java.util.Collection; /** * Class Location - a Location in an adventure game. * * This class is part of the "SportyZombies" application. * "SportyZombies" is a very simple, text based adventure game. * * A "Location" represents...
package com.yuecheng.yue.provider; import android.content.Context; import android.text.Spannable; import android.view.View; import android.view.ViewGroup; import com.yuecheng.yue.message.AddFriendsMessage; import io.rong.imkit.model.ProviderTag; import io.rong.imkit.model.UIMessage; import io.rong.imkit.widget.provi...
package Database; public class Main { public static void main(String[] args) { Database bd = new Database();; try{ bd.add(new User("gg","easy")); bd.add(new User("", "rekt")); }catch(DatabaseCorruptedException e){ System.out.println(e.getMessage()); ...
package com.ttan.jdk8; /** * @Description: * @author ttan * @time 2019Äê12ÔÂ18ÈÕ ÏÂÎç3:57:05 */ public interface Interface1 extends Interface2,Interface3{ public void test1(); public static void staticFunc(){ System.out.println("Interface1"); } }
package com.codegym.repository.dichvu; import com.codegym.model.dichvu.DichVu; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; public interface DichVuRepository extends JpaRepository<DichVu,String> { Page<D...
package org.apache.commons.net.nntp; import java.util.Calendar; public final class NewGroupsOrNewsQuery { private final String __date; private final String __time; private StringBuffer __distributions; private StringBuffer __newsgroups; private final boolean __isGMT; public NewGroupsOrNewsQ...
package baway.com.liujianan20170227; import java.util.ArrayList; /** * Created by 刘嘉男 * on 2017/2/27 * 描述: */ public class Bean { public ArrayList<Data> data; }
package com.ibeiliao.pay.admin.controller.pay.form; import org.hibernate.validator.constraints.NotBlank; import java.io.Serializable; /** * 查询支付记录的条件 * @author linyi 2016/8/2. */ public class QueryPayRecordForm implements Serializable { private static final long serialVersionUID = 1L; /** * 买家帐号 ...
package sortomatic; import java.util.ArrayList; public class Estante { private double lenEstante; private ArrayList<Articulo> listaArticulos; public double getLenEstante() { return lenEstante; } public void setLenEstante(double lenEstante) { this.lenEstante = l...
package com.testing.class6; //判断String[] args默认参数大小 public class StringHomeWork { public static void main(String[] args) { try { String s1=args[0]; String s2=args[1]; try { int i1=Integer.parseInt(s1); int i2=Integer.parseInt(s2); ...
package com.example.demo.Result; import java.io.Serializable; public class ServerResult<T> implements Serializable { private static final long serialVersionUID = 7393154872520762719L; private T data; private String message; private int code; public ServerResult() { } public ServerResul...
package com.example.android.inventoryapp_stage1; import android.app.LoaderManager; import android.content.ContentUris; import android.content.ContentValues; import android.content.CursorLoader; import android.content.Intent; import android.content.Loader; import android.database.Cursor; import android.database.sqlite....
package de.fraunhofer.fokus.ants.jipfix; import de.fraunhofer.fokus.ants.jipfix.data.*; import com.thoughtworks.xstream.*; public class ExampleCollector implements IPFIXCollectorListener { XStream xstream=new XStream(); /** * called when a new source is detected * @param s source */ public void sourceColl...
package com.souptik.estore.orderservice.saga; import org.axonframework.commandhandling.CommandCallback; import org.axonframework.commandhandling.CommandMessage; import org.axonframework.commandhandling.CommandResultMessage; import org.axonframework.commandhandling.gateway.CommandGateway; import org.axonframework.model...
package com.tencent.mm.plugin.gallery.ui; import android.content.Intent; import com.tencent.mm.plugin.gallery.model.b.b; import com.tencent.mm.plugin.gallery.model.c; import com.tencent.mm.sdk.platformtools.ag; class ImagePreviewUI$11 implements b { final /* synthetic */ Intent heh; final /* synthetic */ Imag...
package rs.jug.rx.qconsf2014.netflix; import java.nio.charset.Charset; import java.util.HashMap; import java.util.List; import java.util.Map; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.reactivex.netty.protocol.http.server.HttpServerRequest; import io.reactivex.netty.protocol.http.serve...
package com.fleet.util; import com.google.zxing.*; import com.google.zxing.client.j2se.BufferedImageLuminanceSource; import com.google.zxing.client.j2se.MatrixToImageWriter; import com.google.zxing.common.BitMatrix; import com.google.zxing.common.HybridBinarizer; import com.google.zxing.qrcode.decoder.ErrorCorrectionL...
package com.tencent.mm.plugin.luckymoney.f2f.ui; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Rect; import android.util.AttributeSet; import android.util.DisplayMetrics...
package com.tyss.cg.methods; public class BasicArithematicOperation { public BasicArithematicOperation() { System.out.println("BasicArithematicConstructor const"); } /** * This method returns the sum of two given integers. * * @param i * @param j * @return int i + int j */ public static int add(in...
package luccaPiovezan.grupo.wl.domain.colaborador; import javax.persistence.Entity; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import luccaPiovezan.grupo.wl.domain.usuario.Usuario; @SuppressWarnings("serial") @Getter @Setter @EqualsAndHashCode(onlyExplicitlyIncluded = tr...
/* * Created on 27-nov-2004 * */ package es.ucm.fdi.si.dibujo; import java.util.List; import es.ucm.fdi.si.modelo.IModelo; import es.ucm.fdi.si.modelo.ListaElementosContenido; import es.ucm.fdi.si.modelo.ListaElementosDiseņo; import es.ucm.fdi.si.modelo.Nodo; import es.ucm.fdi.si.modelo.Punto; /** * @author Alej...
package com.tyjradio.jrdvoicerecorder.utils; import android.app.ActivityManager; import android.content.Context; import android.util.TypedValue; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.ArrayList; public class Utils { //dp转px public static int dip2px(Context context, float dpV...
package mailinator; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public class GetDataMailinator { public static void main(String[] args) throws InterruptedException { String dis...
package madotuki.comanda.server.controller; import madotuki.comanda.server.access.AccessUtils; import madotuki.comanda.shared.model.*; import madotuki.comanda.shared.remote.ISession; import madotuki.comanda.shared.remote.ISessionListener; import java.util.List; import java.util.Map; /** * Created by madotuki on 4/2...
package com.angelboxes.springboot.springbootapi.controller; import com.angelboxes.springboot.springbootapi.SpringbootapiApplication; import com.angelboxes.springboot.springbootapi.model.Question; import org.json.JSONException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.skysc...
package com.jayqqaa12.mobilesafe.domain; import java.io.Serializable; public class Sim implements Serializable { private static final long serialVersionUID = -8163128852079215563L; private int id; private String name; private String sim; public int getId() { return id; } public void setId(int id) { thi...
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GN...
package it.unical.asd.group6.computerSparePartsCompany.controller; import it.unical.asd.group6.computerSparePartsCompany.core.exception.customer.CustomerByUsernameNotFoundOnRetrieveException; import it.unical.asd.group6.computerSparePartsCompany.core.services.implemented.CustomerServiceImpl; import it.unical.asd.group...
package me.zhongmingmao.feign; import config.feign.UserProviderFeignConfig; import me.zhongmingmao.domain.User; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework....
package com.chuxin.family.views.chat; import com.chuxin.family.global.CxGlobalParams; import com.chuxin.family.libs.gpuimage.utils.PictureUtils; import com.chuxin.family.models.Message; import com.chuxin.family.models.TextMessage; import com.chuxin.family.resource.CxResourceDarwable; import com.chuxin.family.resource...
package com.waltonbd.WebTests; import org.testng.Assert; import org.testng.annotations.Test; import com.waltonbd.WebPages.ProductsPage; public class ProductsTest extends BaseTest{ public ProductsTest(String url) { super("https://waltonbd.com/"); } @Test (priority=1) public void openProductPage() { p...
/* * Copyright 2010-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
package com.nxtlife.mgs.dao.impl; import java.util.List; import org.springframework.stereotype.Repository; import com.nxtlife.mgs.dao.RoleAuthorityDao; import com.nxtlife.mgs.entity.common.RoleAuthorityKey; import com.nxtlife.mgs.entity.user.RoleAuthority; @Repository("roleAuthorityDaoImpl") public class RoleAuthor...
package models; import java.util.Date; import javax.annotation.Nullable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyTo...
package com.technology.share.service.impl; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.technology.share.service.BaseService; public class BaseServiceImpl<M extends BaseMapper<T>,T> extends ServiceImpl<M,T> implements BaseServic...
package com.zhouyi.business.core.vo.headvo; /** * @author 李秸康 * @ClassNmae: LedenCollectDNAHeaderVo * @Description: DNA头信息 * @date 2019/7/4 13:43 * @Version 1.0 **/ public class LedenCollectDNAHeaderVo extends HeaderVo { }
package Flags; import javafx.geometry.Pos; import javafx.scene.Node; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; public class Sweden extends Flag { @Override public String getName() { return "Sweden"; } @Override public Node ...
/** * @Title: OfficeService.java * @package com.rofour.baseball.service.officemanage * @Project: baseball-yeah * ────────────────────────────────── * Copyright (c) 2016, 指端科技. */ package com.rofour.baseball.service.officemanage; import com.rofour.baseball.controller.model.ResultInfo; import com.rofour.basebal...
/* * 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 pe.gob.onpe.adan.model.adan; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.ut...
/* * Copyright 2007 Jens Dietrich * 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 in wr...
package com.github.emailtohl.integration.web.service.chat; import java.io.Serializable; import java.util.Date; import java.util.Map; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonFormat; /** * 被websocket序列化的类 * @author HeLei */ public class Chat implement...
/* * FAGI core package */ package gr.athena.innovation.fagi.core;
package com.bierocratie.db.accounting; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Query; import com.bierocratie.db.persistence.PersistenceManager; import java.math.BigDecimal; import java.sql.SQLException; /** * Created with IntelliJ ...
package Aula09; public class Tenista extends JogDecorator{ Tenista(JogadorInterface i) { super(i); // TODO Auto-generated constructor stub } public void joga(){ super.joga(); System.out.print(" tenis "); } public void serve(){ System.out.println("--serve"); } }
import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JLabel; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.Color; public class MainMenu { static MainMenu window; protected JFrame frame; /** * Launch the application. */ ...
package edu.iss.caps.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import edu.iss.caps.model.User; public class LecturerCheckInterceptor extends HandlerInterceptorAdapter { ...
public class poolPuzzles { public static void main (String[] args) { puzzle1(); } public static void puzzle1() { int x = 0; while () { } } }
/* * Copyright (C) 2015 Miquel Sas * * This program 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 of the License, or (at your option) any later * version. * * This program is dis...
package q0124_hard; public class BinaryTreeMaximumPathSum { }
package org.murinrad.android.musicmultiply.devices.management; import android.content.Context; import android.content.SharedPreferences; import android.util.Log; import org.murinrad.android.musicmultiply.MainActivity; import org.murinrad.android.musicmultiply.datamodel.device.DeviceImpl; import org.murinrad.android.m...
/* * Created on Mar 30, 2007 * * To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */ package com.ibm.ive.tools.japt.reorderTest; import com.ibm.ive.tools.commandLine.FlagOption; import com.ibm.ive.tools.commandLine.Option; import co...
package com.tencent.mm.plugin.hp.b; import android.content.Context; import android.content.Intent; import com.tencent.map.lib.mapstructure.MapRouteSectionWithName; import com.tencent.mm.plugin.report.service.KVCommCrossProcessReceiver; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.plugin.sns.i$l...
package com.cybozu.kintone.client.module.record; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.HashMap; import java.util.Map.Entry; import java.util.Random; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import com.cybozu.kintone.client.TestConstants; impor...
package com.wuyan.masteryi.mall.service; /* *project:master-yi *file:CommentServiceImpl *@author:wsn *date:2021/7/13 14:32 */ import com.wuyan.masteryi.mall.entity.Comment; import com.wuyan.masteryi.mall.mapper.CommentMapper; import com.wuyan.masteryi.mall.utils.ResponseMsg; import org.springframework.beans.facto...
package com.duanxr.yith.midium; import java.util.Arrays; /** * @author Duanran 4/23/2020 */ public class FindFirstAndLastPositionOfElementInSortedArray { /** * Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. * * Your algorithm's r...
package com.tencent.mm.plugin.welab; import android.text.TextUtils; import com.tencent.mm.ak.a.a.c; import com.tencent.mm.plugin.welab.c.a; import com.tencent.mm.sdk.platformtools.x; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; public final class b { private st...
package com.company; public class Main { public static void main(String[] args) { double m = Double.parseDouble(args[0]); double umEuro = 0; double doisEuro = 0; double Cinqucent = 0; while (m != 0) { if (m >= 2) { m -= 2; doisEu...
package com.youthchina.domain.Qinghong; import java.sql.Timestamp; import java.util.Date; public class PreferSalary { private Integer pre_sala_id; private Integer pre_sala_cap; private Integer pre_sala_floor; private Integer pre_prof_code; private Integer stu_id; private Integer is_delete; ...
package fr.umlv.escape.editor; public class ShipEditor { public int health = 100; public String name = "default_ship"; public int x = 50; public int y = -20; public String trajectory = "DownMove"; @Override public String toString() { return name; } }
package pw.we.kd.wavelets; public class Daub { public static final double h0 = (1 + Math.sqrt(3)) / (4 * Math.sqrt(2)); public static final double h1 = (3 + Math.sqrt(3)) / (4 * Math.sqrt(2)); public static final double h2 = (3 - Math.sqrt(3)) / (4 * Math.sqrt(2)); public static final double h3 = (1 - Math...
package com.sysh.util; /** * ClassName: <br/> * Function: 身份证号工具类<br/> * date: 2018年06月13日 <br/> * * @author 苏积钰 * @since JDK 1.8 */ public class IDNumberUtil { /** * 截取身份证的性别 * @param s * @return */ public static String sex(String s) { String ss=s.substring(16,17); ...
package edu.imtl.BlueKare.Activity.Search; import android.content.Context; import android.location.Address; import android.location.Geocoder; import android.transition.AutoTransition; import android.transition.TransitionManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGrou...
package in.swapnilsingh; public class Main { public static void main(String[] args) { Printer printer = new Printer(30, 20, true); System.out.println("Is the printer a duplex printer: " + printer.isDuplexPrinter()); Printer printer1 = new Printer(25, 1, false); System.out.println(...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the ter...
package com.face.dao; import java.sql.ResultSet; import java.util.List; import javax.activation.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import com.face.model.Login; imp...
package com.medic.quotesbook.services; import android.app.IntentService; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.support.annotation.Nullable; import android.util.Log; import android.widget.RemoteViews...
package com.apress.books.dao; /* Descripcién: Interface DAO para el acceso a datos de la BD BOOKS. Autor: Carlos Ernesto Guevara Aguilar. F. Creacién: 25 de Noviembre de 2016. F. Cambio: 25 de Noviembre de 2016. */ import java.util.List; import com.apress.books.model.Book; import...