text stringlengths 10 2.72M |
|---|
package dynamicapp.ii;
import android.content.Context;
/**
* Created by ${zhaoyanjun} on 2017/3/6.
*/
public interface IDynamic {
public abstract void methodWithCallBack(YKCallBack paramYKCallBack);
public abstract void showPluginWindow(Context paramContext);
public abstract void startPluginActivity(Co... |
package Grid;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.Test;
import com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException;
public class GridConnect {
WebDriver driver;
@Test(priority=1)
void setU... |
package Environment;
public class HeaterOnCommand implements Command{
Heater heater;
public HeaterOnCommand(Heater heater) {
this.heater = heater;
}
public void execute() {
heater.on();
}
public void undo() {
heater.off();
}
}
|
package ch.doppio.sample.base.mvp;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
public class PresenterHolder<T extends Presenter> extends Fragment {
private static final String TAG = "PRESENTER_HOLDER";
private T mPresenter;
static <T extends ... |
package demo.ksq.com.garnisherdemo.pants;
import demo.ksq.com.garnisherdemo.Avatar;
import demo.ksq.com.garnisherdemo.bedeck.AvatarDecorator;
/**
* Created by 黑白 on 2017/11/20.
*/
public class WhitePants extends AvatarDecorator {
public WhitePants(Avatar avatar) {
super(avatar);
}
@Override
... |
package com.enat.sharemanagement.security.user;
import com.enat.sharemanagement.security.role.RoleDTO;
import com.enat.sharemanagement.validation.ValidPassword;
import lombok.Data;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Lis... |
package org.webmaple.admin.aop;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @author lyifee
* on 2021/2/2
*/
@Configuration
public class Ses... |
package com.yixin.kepler.common;/**
* Created by liushuai2 on 2018/6/6.
*/
/**
* Package : com.yixin.kepler.depends
*
* @author YixinCapital -- liushuai2
* 2018年06月06日 17:14
*/
public class SerialNumberUtil {
/**
* 生成序列号
* @return
*/
public synchronized static String generate(){... |
public class BubbleSort {
public static void main(String[] args) {
int array[] = { 12, 8, 3, 20, 4, 16, 2, 10, 19, 6, 7, 14, 15, 1, 17, 9,
5, 11, 13, 18 };
System.out.print("[Numeros desordenados] ");
for (int a = 0; a < array.length; a++) {
System.out.print(array[a] + " ");
}
System.out.println();... |
package scripts;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import generic.Auto_constant;
import generic.Excel;
import pom.Homepage;
import pom.Loginpage;
public class Searchproducts implements Auto_constant {
static{
System.setProperty(key, value);
}
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 muestreo;
import GUI.JFrameImagen;
import io.ImageManager;
import java.awt.Color;
import java.awt.Image;
import java.awt.image... |
package decay_lda;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map.Entry;
import lda.Topic;
import ... |
package com.entity;
import java.io.Serializable;
import java.util.Date;
public class Txsq
implements Serializable
{
private Long txsqid;
private String txsqname;
private Date txsqtime;
private String txmethod;
private String wxmethod;
private String reason;
private String status;
private String moni... |
package com.qihoo.finance.chronus.storage.h2.plugin.dao.impl;
import com.qihoo.finance.chronus.metadata.api.common.PageResult;
import com.qihoo.finance.chronus.metadata.api.system.dao.SystemGroupDao;
import com.qihoo.finance.chronus.metadata.api.system.entity.SystemGroupEntity;
import com.qihoo.finance.chronus.storage... |
package com.mobilephone.foodpai.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.cardview.widget.CardView;
import ... |
package com.eres.waiter.waiter.server;
import com.eres.waiter.waiter.viewpager.helper.ObservableCollection;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
public class RequestData {
@SerializedName("Notes")
public ObservableCollection<NotificationData> data;
public Observ... |
package Compact;
/**
* Created by anthony on 27.01.17.
*/
public class CompactSORSolver {
public float[] solve() {
//better use JAMA
return null;
}
}
|
package com.tt.miniapp.component.nativeview.picker.wheel;
import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.tt.miniapp.component.nativeview.picker.framework.popup.Con... |
package com.ims.dto;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name =... |
package com.example.firebaselogin;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
... |
package ch.ubx.startlist.client.admin;
import java.util.Set;
import ch.ubx.startlist.client.AirfieldService;
import ch.ubx.startlist.client.AirfieldServiceAsync;
import ch.ubx.startlist.client.admin.ui.AdminGUI;
import ch.ubx.startlist.shared.Airfield;
import com.google.gwt.core.client.GWT;
import com.goog... |
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.jupiter.api.Test;
public class Bird {
private int xPosition;
private int YPosition;
private int health;
//file location of the bird's image
private String sprite;
public Bird() {
// TODO Auto-generated constructor stub
}... |
package com.douane.dpworld.service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.spr... |
package duke.task;
public class Event extends Task {
private static String at;
public Event(String description, String at, Boolean isDone) {
super(description);
this.at = at;
this.isDone = isDone;
}
public static String getAt() {
return at;
}
}
|
package Sem1.labs.labs6;
public class ThrowsDemo {
public void getDetails(String key) {
if(key == null) { throw new NullPointerException( "null key in getDetails" );
}
// do something with the key
}
} |
package com.spring.dto;
public class SizeDTO {
private String code;
private String size;
private String qty;
public SizeDTO() {}
public SizeDTO(String code, String size, String qty) {
super();
this.code = code;
this.size = size;
this.qty = qty;
}
public String getCode() {
return code;
}
public ... |
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Create by 欧阳荣
* 2018/4/12 8:46
*/
public class XXXServlet extends HttpServlet{
@Override
protected voi... |
public class Laptop extends Resource
{
private String manufacturer;
private String model;
private String OS;
public Laptop(String title, int year, String manufacturer, String model, String OS, int loanDuration)
{
super(title, year, loanDuration);
this.manufacturer = manufacturer;
... |
package com.tencent.mm.ui.chatting.b;
import com.tencent.mm.ui.chatting.b.b.g;
import com.tencent.mm.ui.chatting.b.b.o;
class ah$10 implements Runnable {
final /* synthetic */ ah tSj;
final /* synthetic */ g tSv;
final /* synthetic */ int tSw;
ah$10(ah ahVar, int i, g gVar) {
this.tSj = ahVar... |
/*
* Copyright: 2020 forchange Inc. All rights reserved.
*/
package com.research.api.datasteam;
import org.apache.flink.api.common.functions.IterationRuntimeContext;
import org.apache.flink.api.common.functions.RuntimeContext;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.streaming.ap... |
/** ****************************************************************************
* Copyright (c) The Spray Project.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... |
//Prototype implementation of Car Control
//Mandatory assignment
//Course 02158 Concurrent Programming, DTU, Fall 2017
//Hans Henrik Lovengreen Oct 9, 2017
import java.awt.Color;
class Gate {
Semaphore g = new Semaphore(0);
Semaphore e = new Semaphore(1);
boolean isopen = false;
public void pas... |
package permafrost.core.plugin;
import org.bukkit.plugin.PluginLoadOrder;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Part of the plugin annotations framework.
* <p>
* Represents the optional load order of the plugin.
*/
@Target(ElementType.TYPE)
public @interface LoadOn
{... |
package com.tencent.mm.plugin.address.model;
import com.tencent.mm.ab.b;
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.sb;
import com.tencent.mm.protocal.c.sc;
import com.tencent.mm.sdk.platformtools.x;
public... |
package com.seemoreinteractive.seemoreinteractive.library;
import java.util.List;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.Expan... |
package paqueteproyectores;
import java.util.ArrayList;
public class GestorDePaquetesDeProyectores {
private ArrayList<PaqueteProyectores> paquetes = new ArrayList<>();
private String nombreEmpresa;
public GestorDePaquetesDeProyectores(String nombreEmpresa) {
this.nombreEmpresa = nombreE... |
package entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class Persona implements Serializable {
private String usuario;
private String clave;
private String nombre;
private String apellido;
private String email;
private String celular;
private Stri... |
package org.jboss.perf.test.server.dao.impl;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import org.jboss.perf.test.server.dao.ProjectDao;
import org.jboss.perf.test.server.model.Project;
@Stateless
public class ProjectDaoImpl implements Pr... |
package com.programacion.movil.estemanp.androidmvcapplication.View.Adaptes;
/**
* Created by wpena on 17/09/2017.
*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
impo... |
package com.example.todolist.Di.Modules;
import android.content.Context;
import com.example.todolist.Utils.ScheduleNotification;
import com.example.todolist.Utils.SharedPreference;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
@Module
public class SharedPreferenceModule {
@Single... |
package org.rebioma.client.gxt.treegrid;
import java.util.LinkedList;
import java.util.List;
import org.rebioma.client.bean.StatisticModel;
import org.rebioma.client.bean.StatisticModel.StatisticsModelProperties;
import org.rebioma.client.services.StatisticsService;
import org.rebioma.client.services.Statisti... |
package com.lyj.project;
public class WeatherVO {
//pm10 : 미세먼지 pm2.5 : 초미세먼지 no2 : 이산화질소 khai : 통합대기환경수치
private String w_dataTime, w_pm10, w_pm25, w_no2, w_khai, w_pm10value, w_pm25value, w_no2value;
public String getW_dataTime() {
return w_dataTime;
}
public String getW_pm10value() {
... |
package com.travel.controllers;
import com.travel.models.Amenity;
import com.travel.services.AmenityService;
import com.travel.validators.AmenityValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.sp... |
package Aula0.QuestaoJanela;
public class Retangulo{
private float altura;
private float largura ;
public Retangulo () {
altura = 0;
largura = 0;
}
public float getAltura () {
return altura;
}
public float getLargura () {
return largura ;
}
public v... |
package com.tencent.mm.plugin.sns.ui;
import android.view.View;
import com.tencent.mm.protocal.c.bon;
public final class m {
public String hbL = "";
public String jSA = "";
public String nMv = "";
public View nMw;
public bon noe;
public int scene = -1;
public Object tag;
public m(Stri... |
package cn.itcast.demo02;
public class Arugement {
public static void main(String[] args) {
int sum = getsum(1,2,3,4);
System.out.println(sum);
}
public static int getsum(int...a){
int sum = 0;
for(int i : a)
{
sum = sum+i;
}
return sum;
}
}
|
/*
* Copyright (C) 2022-2023 Hedera Hashgraph, LLC
*
* 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 applicab... |
/*
* Copyright (c) 2014 Anthony Benavente
*
* 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 agr... |
package fr.lteconsulting.formations;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Htt... |
package com.ssm.lab.dto;
import java.io.Serializable;
public class WorkloadVo implements Serializable {
private Integer id;
private String term;
private String workloadType;
private String cno;
private String cname;
private String teacherSn;
private String userName;
private String teac... |
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.sql.*;
public class CentoRows {
public static void main(String[] args) throws IOException {
//array che contiene la riga letta da file
String parti[];
BufferedReader reader = new BufferedReader(new FileReader(... |
package com.ifli.mbcp.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Represents a claim status, such as Filed, ... |
package com.fleet.mybatis.dynamic.sql.config;
import org.mybatis.generator.api.IntrospectedColumn;
import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.dom.java.*;
import org.mybatis.generator.internal.DefaultCommentGenerator;
import org.mybatis.generator.internal.util.StringUtility;
i... |
package com.example.tazhe.beans;
public class UserDetails {
/**
* birthday : 2月2日
* password : 8542516f8870173d7d1daba1daaaf0a1
* bornplace : 上海
* user_id : 1
* user_picture : /image/tou1.jpg
* idcard : 11111
* sex : 男
* phonenumber :
* username : pdq
* user_state... |
package app.extension;
import magnet.Implementation;
@Implementation(
forType = Executor.class
)
class ExecutorImpl implements Executor<Runnable> {
@Override
public void execute(Runnable runnable) { }
} |
package com.tencent.mm.plugin.wallet_core.ui.view;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.OvershootInterpolator;
import android.view.animation.Sc... |
package fr.pederobien.uhc.observers;
import fr.pederobien.uhc.event.MessageEvent;
public interface IObsMessageSender {
void sendMessage(MessageEvent event);
}
|
package me.jprichards.elsimclient;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import org.json.JSONObject;
/**
* Abstracts the networking code so that Controllers need only work with JSON.
* @author Joshua Richards
*
*/
public... |
package com.DeGuzmanFamilyAPI.DeGuzmanFamilyAPIBackend.app_controller;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;... |
package com.qiyuesuo.cloud.shiro.service;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.HashingPasswordService;
import org.apache.shiro.authc.credential.SimpleCredentialsMatcher;
import org.apache.shiro.codec.Hex;
import or... |
package ro.ase.cts.decorator.program;
import ro.ase.cts.decorator.clase.DecoratorAbstract;
import ro.ase.cts.decorator.clase.DecoratorConcretCuLMA;
import ro.ase.cts.decorator.clase.DecoratorUrarePaste;
import ro.ase.cts.decorator.clase.NotaDePlata;
public class Main {
public static void main(String[] args) {
Not... |
package corrida;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author lucio
*/
public class MainTest {
public static void main(String[] args) {
CompetitionWinnerLock lock = new CompetitionWinnerLock();
CompetitionRunThread t1 = new CompetitionRunThread(lock);
CompetitionRunThrea... |
public class Task8 {
/*Дан массив целых чисел:
[1,-10,5,6,45,23,-45,-34,0,32,56,-1,2,-2]. Для данного
массива найти и вывести на экран:
- максимальное значение
- сумму положительных элементов
- сумму четных отрицательных элементов
- количество положительных элементов
- среднее арифме... |
/*
* Copyright 2000-2013 Vaadin Ltd.
*
* 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... |
package www.chaayos.com.chaimonkbluetoothapp.adapters;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.RecyclerView;
import android.u... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 agre... |
package com.training.pom;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class GrantLoanPOM {
@SuppressWarnings("unused")
private WebDriver driver;
public GrantLoanPOM(WebD... |
package com.tt.miniapp.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.FrameLayout;
import com.tt.miniapp.share.AutoShareInterceptor;
import com.tt.miniapphost.AppBrandLogger;
public class TouchDetectFrameLayout extends FrameLayou... |
package Math;
public class ComputeArea_223 {
/*223. 矩形面积*/
/*
分情况讨论,分别计算长和宽重叠的4种情况;
*/
public int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) {
int s1 = (C - A) * (D - B);
int s2 = (G - E) * (H - F);
int l = 0, w = 0;
if(C >= G && A >= E && G... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* KVelocitySwh generated by hbm2java
*/
public class KVelocitySwh implements java.io.Serializable {
private KVelocitySwhId id;
public KVelocitySwh() {
}
public KVelocitySwh(KVelocitySwhId id) {
this.id = id;
}
pub... |
package com.wuyan.masteryi.mall.controller;
/*
*project:master-yi
*file:CommentController
*@author:wsn
*date:2021/7/13 14:29
*/
import com.wuyan.masteryi.mall.service.CommentService;
import com.wuyan.masteryi.mall.service.GetUidServerImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperat... |
package com.tencent.mm.plugin.appbrand.jsapi.p;
import com.tencent.mm.plugin.appbrand.jsapi.p.e.5;
import com.tencent.mm.pluginsdk.ui.tools.s.b;
class e$5$1 implements b {
final /* synthetic */ 5 gdh;
e$5$1(5 5) {
this.gdh = 5;
}
public final void uf(String str) {
e.d(this.gdh.gdb, s... |
package StackAndQueue;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Arrays;
public class BasicQueueOperations {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(
... |
package com.Q2;
import java.util.Scanner;
public class Employee {
String name;
int age;
float salary;
String designation;
Scanner scanner = new Scanner(System.in);
public void getDetails(){
System.out.println("Enter The name Of employee: ");
name = scanner.nextLine(... |
package com.yjjyjy.yjj.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.yjjyjy.yjj.entity.Article;
/*
* version 2018-06-21
*/
public interface ArticleService {
public boolean create(Article article);
public Article findByArticleId(long id);
... |
package leetcode_easy;
public class Question_258 {
public int addDigits(int num) {
int total = num;
while (total >= 10) {
int sum = 0;
int target = total;
while (target > 0) {
sum += (target % 10);
target /= 10;
}
... |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 luma <stubma@163.com>
*
* 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 2 of the License, or
* (at your option) any lat... |
package pl.finapi.paypal.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class IdentyfikatorKursu {
private final String identyfikatorKursu;
private final IdentyfikatorKursuSource identyfikatorKursuSource;
private final Day day;
public IdentyfikatorKursu(String identyfikatorKurs... |
package player;
import java.io.Serializable;
import java.util.LinkedList;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyCode;
import observer.positionHandler;
import states.PlayerStack;
public class Player implements Serializable {
public ImageView imageView;
p... |
package com.facebook.react.views.art;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Region;
import com.facebook.react.bridge.JSApplicationIllegalArgumentException;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.u... |
/*All DNA is composed of a series of nucleotides abbreviated as 'A', 'C', 'G', and 'T', for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated sequences within the DNA.
Write a function to find all the 10-letter-long sequences (substrings) that occur more than once in a DNA molecule.... |
package task6;
import java.util.List;
public interface IAction {
void execute();
List<Long> getWriteKeys();
List<Long> getReadKeys();
}
|
package webstoreselenium.qa.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import webstoreselenium.qa.base.TestBase;
import webstoreselenium.qa.utils.TestUtil;
public class PortTestEquip extends TestBase {
@FindBy(xpath= "//... |
package org.motechproject.server.omod.impl;
import org.motechproject.server.model.MessageProgram;
import org.motechproject.server.svc.MessageProgramFactory;
import org.motechproject.server.svc.MessageProgramService;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MessageProgramSer... |
package lambdaExpression;
import java.util.HashMap;
import java.util.Map;
public class MapAsLambda {
public MapAsLambda() {
System.out.println("Inside constructor..");
}
public static void main(String[] args) {
Map<Integer, String> hm = new HashMap<Integer, String>();
hm.put(1, "Hello");
... |
package graph.generic.LD.factory;
import java.awt.geom.Point2D;
import graph.generic.DiGraph;
import graph.generic.DiGraph.DiGraphArc;
import graph.generic.LD.LinearDualCreator.LinearDualFactory;
import graph.types.VisualizationEdge;
import main.AbstractMain;
import util.tools.Util;
public class TurncostFactory
im... |
package com.corejava.collection;
import java.util.*;
public class CarParking {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
Parked_CarOwnerList parking=new Parked_CarOwnerList();
System.out.println(" Enter carModel :");
String carModel=scan.next();
System.o... |
package T;
import javax.swing.*;
class TacheComboBoxModel extends AbstractListModel implements ComboBoxModel {
private Tache selection = null;
private Tache t;
public TacheComboBoxModel(Tache t) {
this.t = t;
}
public Object getElementAt(int index) {
return this.t.predecesseursMo... |
package com.supconit.kqfx.web.fxzf.search.daos;
import hc.base.domains.Pageable;
import hc.orm.BasicDao;
import java.util.List;
import com.supconit.kqfx.web.fxzf.search.entities.Fxzf;
public interface FxzfSearchDao extends BasicDao<Fxzf, String> {
/**
* 分页查询信息列表
* @param pager
* @param condition
* @retu... |
public class ValidPhoneNumber {
public boolean isPhoneNumValid(String number){
return number.length() == 10 && number.matches("[0-9]+");
}
}
|
package com.freejavaman;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
public class UI_ACTextView extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanc... |
package com.ittr.services;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.ittr.api.util.Util;
import com.ittr.data.Order.PurchaseOrder;
import com.ittr.data.OrderDetail.PurchaseOrderDetail;
import com.ittr.data.Pro... |
package iFind111;
public class iFind2
{
public static void main(String[]args)
{
String code = "#2324{ #1234# gfnwegrng#qnn, #332fe";
scanCode(code);
}
private static void scanCode(String code)
{
int start = 0;
int ende = 0;
String result = "";
for(int i = 0; i < code.length(); i++)
{
... |
package app;
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
// TODO:
// - PvAI WIP
// - Graphics NICE TO HAVE
// - Difficulty SHOULD
// - Statistics NI... |
package com.siziksu.payment.data.client.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public final class Character {
@SerializedName("id")
@Expose
public Integer id;
@SerializedName("name")
@Expose
public String name;
@SerializedName(... |
package com.spbu.flamestream.client;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.Connection;
import com.esotericsoftware.kryonet.Listener;
import com.esotericsoftware.kryonet.Server;
import com.spbsu.flamestream.core.DataItem;
import com.spbsu.flamestream.core.Graph;
import com.spbsu.fla... |
package cn.timebusker.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import cn.timebusker.entity.User;
public interface UserRepository extends JpaRepository<User, Long> {
/**
* 通过用户名查询用户
*
* @param name
* @return
*/
User findByName(String name);
/**
* 通过用户ID查询用户
*
* @param ... |
package com.drac_android.infonepal.Utilities;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.provider.Settings;
import android.support.annotation.RequiresApi;
import android.support.v4.ap... |
package com.cartshare.Pool.controller;
import java.util.List;
import java.util.Set;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
impo... |
package com.practice.socket;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
public class Client {
private Socket s;
private BufferedReader br;
private PrintWriter pw;
private boo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.