text stringlengths 10 2.72M |
|---|
package interfaceAndExtends;
import objectOriented.Hero;
/**
* @author malf
* @description 只能使用魔法攻击的英雄
* @project how2jStudy
* @since 2020/9/14
*/
public class APHero extends Hero implements AP {
@Override
public void magicAttack() {
System.out.printf("进行魔法攻击。");
}
}
|
package com.opendroid.db.dao;
public class DAOException extends Exception {
public DAOException(Exception e) {
super(e);
}
@Override
public String getMessage() {
String message = getCause().getMessage();
if (message == null) {
message = getCause().toString();
... |
package com.codingblocks.datastorage;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import android.annotation.SuppressLint;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.... |
package com.wzy.autowire;
import com.wzy.generator.MyBeanNameDenerator;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* @author wzy
* @title: Spring
* @description: TODO
* @date 2019/7/1 17:06
*/
@Configuration
@ComponentScan(value =... |
package com.giwook.algorithm.lesson5_prefixSum;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
*
* @author 93Hong on 2020-09-06
*
*/
class CountDivTest {
@Test
void test() {
int solution = CountDiv.solution(6, 11, 2);
System.out.println(solution);
}
} |
package util;
/**
* This class was created to avoid the use of extra libraries in this component.
*
*/
public class StringUtils {
/**
* <p>Checks if a String is empty ("") or null.</p>
*
* <pre>
* StringUtils.isEmpty(null) = true
* StringUtils.isEmpty("") = true
* StringU... |
package com.bl.logical.Gambler;
import java.util.*;
public class GamblerMain {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter the Stake of Gamble");
int stake = sc.nextInt();
System.out.println("Enter the Goal to be reached");
... |
package org.alienideology.jcord.event.message.guild;
import org.jetbrains.annotations.NotNull;
import org.alienideology.jcord.handle.channel.ITextChannel;
import org.alienideology.jcord.handle.guild.IGuild;
/**
* @author AlienIdeology
*/
public interface IGuildMessageEvent {
@NotNull
IGuild getGuild();
... |
package searchcodej.repository;
public class QueryRegex {
private Boolean applyNot;
private String regex;
private String operator;
public Boolean getApplyNot() {
return applyNot;
}
public void setApplyNot(Boolean applyNot) {
this.applyNot = applyNot;
}
public String getRegex() {
return regex;
}
pu... |
/*
* 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 evolutionaryagent.evolution.agent;
import unalcol.agents.AgentProgram;
import unalcol.agents.simulate.util.SimpleLanguage;
/*... |
/*
* Copyright (c) 2014, Oracle America, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list o... |
/*
* Copyright 2005-2010 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 appli... |
package com.swqs.schooltrade.activity;
import java.io.IOException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.swqs.schooltrade.R;
import com.swqs.schooltrade.entity.Identify;
import com.swqs.schooltrade.entity.Judgement;
import com.swqs.schooltrade.util.CustomProgressDialog;
import com.sw... |
package mg.egg.eggc.compiler.egg.java;
import mg.egg.eggc.runtime.libjava.*;
import mg.egg.eggc.compiler.libegg.base.*;
import mg.egg.eggc.compiler.libegg.java.*;
import mg.egg.eggc.compiler.libegg.egg.*;
import mg.egg.eggc.compiler.libegg.mig.*;
import mg.egg.eggc.compiler.libegg.latex.*;
import mg.egg.eggc.compiler.l... |
package com.example.emrapplication.presenters;
import android.location.Location;
import android.util.Log;
import androidx.annotation.NonNull;
import com.example.emrapplication.managers.FirebaseManager;
import com.example.emrapplication.model.Caller;
import com.example.emrapplication.model.CustomLocation;
import com.... |
package dance;
import java.io.File;
import java.io.IOException;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;
public class ThreadMusic ... |
/*
* 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 COPY;
/**
*
* @author Mahesh Rathnayaka
*/
public class Copy {
public void copyImages(String fileName){
... |
package com.tangdi.production.mpnotice.service;
import java.util.Map;
import com.tangdi.production.mpbase.exception.TranException;
/**
* 验证码接口
*
* @author youdd
*
*/
public interface ValidateCodeService {
/**
* 验证码插入
*
* @param param
* @return
* @throws TranException
*/
pub... |
package fr.uvhc;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
/* Jeu de tests à supprimer
EnsEtats ens = new EnsEtats();
Etat e0 = new Etat(true, false, 0);
Etat e1 = new Etat(false, false, 1);
Etat e2 = new Etat(false, true, 2);
e0.ajouterTransit... |
package solution.cs3330.hw3;
public class Beast extends GameCreature{
private String type;
public Beast(String name,int hp, Bag bag,String type) {
super(name,hp,bag);
setType(type);
}
private void setType(String type) {
this.type = type;
}
public String getType() {
return type;
}
@Override
publ... |
package com.thoughtmechanix.licenses.handler;
import com.thoughtmechanix.licenses.channel.CustomChannels;
import com.thoughtmechanix.licenses.model.OrganizationChangeModel;
import com.thoughtmechanix.licenses.repository.OrganizationRedisRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.fac... |
package sample;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.VBox;
public class Controller {
@FXML VBox vbox;
@FXML TextField txtMensaje;
public void ente... |
package com.cimcssc.chaojilanling.entity.job;
import java.io.Serializable;
/**
* Created by cimcitech on 2017/5/4.
*/
public class JobList implements Serializable{
private String acceptUserId;
private String address;
private int ageMax;
private int ageMin;
private String area;
private Stri... |
package ch05.ex05_02;
public class BankAccount {
private long number; // 口座番号
private long balance; // 残高
private Action lastAct; // 最後に行われた処理
private History history = new History(); // 履歴
private final static int HISTORY_SIZE = 10; // 履歴の最大件数
public BankAccount(long number, long bal... |
package com.company;
import java.io.*;
import java.util.HashMap;
public class Scheme {
OutputStream ops = null;
ObjectOutputStream objOps = null;
int count;
final static int finalcount = 900000;
void writeData(Object users, String fileName) {
if(++count % finalcount == 0) {
tr... |
package com.facebook.react.views.modal;
import android.util.DisplayMetrics;
import com.facebook.react.uimanager.DisplayMetricsHolder;
import com.facebook.react.uimanager.LayoutShadowNode;
import com.facebook.react.uimanager.ReactShadowNode;
import com.facebook.react.uimanager.ReactShadowNodeImpl;
public class... |
package com.trushil.HibernateDemo;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
public class CreateDemo {
public static void main(String[] args) {
SessionFactory factory = new Configuration()
.configure("hibernate.cfg.xml")
.addAnnotate... |
package com.ceiba.parkingceiba.repository;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.ceiba.parkingceiba.mo... |
package com.chinamap.listener;
import com.chinamap.modular.entity.ReadAndGood;
import com.chinamap.modular.service.ReadAndGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.context.WebApplicationContext;
import or... |
package ad.joyplus.com.myapplication.network;
import android.content.Context;
import android.widget.ImageView;
/**
* 所有需要请求到网络的接口
* Created by UPC on 2016/8/29.
*/
public interface IRequest {
/**
* 获取配置信息
* @param url
* @param callBack
*/
void getConfigInfo(String url, RequestIterface.I... |
package com.clay.claykey.view.dialog.opendoor;
import android.os.Bundle;
import com.clay.claykey.object.parse.Door;
/**
* Created by Mina Fayek on 1/16/2016.
*/
public interface OpenDoorDialogClickedListener {
void onOpenDoorClicked(Bundle b);
}
|
package cs3500.animator.view;
import java.io.Writer;
import cs3500.animator.model.animationmodel.AnimationModel;
/**
* This interface represents the view of an Animation.
*/
public interface IView {
/**
* Runs animation in respective view.
*/
void play();
/**
* Sets writer object field to given o... |
package com.moandal.rollingaverage;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import androidx.appcompat.app.AlertDialog;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.uti... |
package com.espendwise.manta.web.controllers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... |
package de.lise.terradoc.core.report.elements;
import org.apache.commons.text.StringEscapeUtils;
import java.io.StringWriter;
public class TextElement implements ReportElement {
private final String text;
public TextElement(String text) {
this.text = text;
}
public String getText() {
... |
package com.immotor.bluetoothadvertiser.service;
import com.immotor.bluetoothadvertiser.utils.BluetoothLog;
import com.immotor.bluetoothadvertiser.webAPI.ResultInfo;
import com.immotor.bluetoothadvertiser.webAPI.ScooterWebAPI;
import com.immotor.bluetoothadvertiser.webAPI.WebAPI;
import com.immotor.bluetoothadvertiser... |
package LeetCode.Backtracking;
import java.util.ArrayList;
import java.util.List;
public class GenerateParanthesis {
public List<String> generateParenthesis(int n) {
List<String> res = new ArrayList<>();
helper(new char[2*n], 0, res);
return res;
}
public void helper(char[] current, int pos, List<S... |
package com.tmtmmobile.tmtm.dto;
public class TaskSubtaskDto implements java.io.Serializable {
private String subtask;
private String state;
public String getSubtask() {
return subtask;
}
public void setSubtask(String subtask) {
this.subtask = subtask;
}
public String g... |
package test;
class para {int id;
String name;
int m;
para(int q,String R){
id=q;
name=R;
}
para(int e,String f,int z){
id=e;
name=f;
m=z;
}
void display() {
System.out.println(id+" "+name+" "+m);
}
public static void main(String[] args) {
para s2=new para(13,"dsa",45);
s2.display();
// TODO Auto-generated ... |
package com.esprit.lyricsplus.fragments;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
public class PagerManager extends FragmentPagerAdapter {
private static int NUM_ITEMS = 3;
public Pag... |
package www.gemini.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.SecondaryTable;
import javax.persistence.SequenceGenerator;
import j... |
package com.wn.controller;
import com.wn.com.ParmAndResult;
import com.wn.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.a... |
package com.tencent.mm.pluginsdk.ui.chat;
public interface ChatFooter$c {
void h(Boolean bool);
}
|
package Template;
import NodeAndComponentConfig.navigateToNode;
import NodeAndComponentConfig.rightClickInsert;
import NodeAndComponentConfig.whatIsTheComponentName;
import TemplateImplementation.globalTemplateImplementation;
import Util.Config;
import Util.DataUtil;
import Util.Xls_Reader;
import Util.excelConfig;
im... |
package com.example.jmchugh.rxmvp.weather;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import com.example.jmchugh.rxmvp.R;
import com.example.jmchugh.rxmvp.RxMVPApplication;
import com.example.jmchugh... |
package pages;
import java.io.File;
import java.io.IOException;
import org.openqa.selenium.WebDriver;
import org.testng.ITestResult;
import org.testng.Reporter;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.... |
package com.ahmetkizilay.yatlib4j.help;
import java.util.Hashtable;
import net.minidev.json.JSONObject;
import net.minidev.json.JSONValue;
import com.ahmetkizilay.yatlib4j.TwitterRequestWrapper;
import com.ahmetkizilay.yatlib4j.TwitterResponseWrapper;
import com.ahmetkizilay.yatlib4j.oauthhelper.OAuthHolder;
import ... |
package com.mantisclaw.italianpride15.ridesharehome;
import android.app.Application;
import com.parse.Parse;
import com.parse.ParseCrashReporting;
/**
* Created by italianpride15 on 3/20/15.
*/
public class MainApp extends Application {
private static final String parse_application_id = "pTCU4Li4XZE82K6QN7XS... |
/*
* Copyright 2002-2016 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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
package android.support.v7.widget;
public interface SearchView$c {
boolean gL();
}
|
package edu.metrostate.ics372.thatgroup.clinicaltrial.android.patientactivity;
import edu.metrostate.ics372.thatgroup.clinicaltrial.android.BasePresenter;
import edu.metrostate.ics372.thatgroup.clinicaltrial.android.statemachine.ClinicalTrialState;
import edu.metrostate.ics372.thatgroup.clinicaltrial.android.statemach... |
/*
* 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 ufes.q_01.model;
/**
*
* @author Lucas
*/
public abstract class Participante {
protected MediatorChat mediator;
... |
package sm.task;
import java.awt.geom.Point2D;
public class Point extends Point2D.Double {
public Point(double x, double y) {
super(x, y);
}
public int getIntX() {
return (int) Math.round(x);
}
public int getIntY() {
return (int) Math.round(y);
}
public Point translateByHeading(double distance, doubl... |
package domain.businessRule;
import java.util.List;
/**
* Created by Unknown on 01/18/2017.
*/
public abstract class Script {
protected String name;
protected String triggerCode;
protected List<String> triggerEvent;
protected BusinessRule businessRule;
public Script(String name, List<String> tr... |
package com.mssngvwls.util;
import java.util.LinkedList;
import java.util.Queue;
import com.mssngvwls.model.GamePhrase;
import com.mssngvwls.model.builder.GamePhraseBuilder;
public class GamePhraseQueueBuilder {
private final Queue<GamePhrase> gamePhrases = new LinkedList<>();
public GamePhraseQueueBuilder... |
package leecode.Array;
import java.util.ArrayList;
import java.util.List;
public class 螺旋矩阵_54 {
public List<Integer> spiralOrder(int[][] matrix) {
int left=0;
int right=matrix[0].length-1;
int up=0;
int down=matrix.length-1;
List<Integer>list=new ArrayList<>();
whi... |
package kale.commonadapter.item;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import kale.adapter.AdapterItem;
import kale.commonadapter.R;
import kale.commonadapter.model.DemoModel;
/**
* @author Jack Tony
* @date 2015/5/15
*/
public class ButtonItem implements AdapterItem... |
package genscript.defaultops.math;
import genscript.defaultops.InfixOperation;
import genscript.execution.ExecuterTreeNodeEager;
import genscript.parse.IndexReader;
import scriptinterface.defaulttypes.GBoolean;
import scriptinterface.defaulttypes.GInteger;
import scriptinterface.defaulttypes.ToInteger;
import ... |
package com.paytechnologies.ActionProvider;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;
import com.actionbarsherlock... |
package Maven.SeleniumProject;
import org.testng.annotations.Test;
import org.testng.annotations.Test;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.... |
package com.jim.multipos.ui.mainpospage.view;
import android.support.v4.app.Fragment;
import com.jim.multipos.config.scope.PerFragment;
import com.jim.multipos.ui.mainpospage.presenter.ProductFolderViewPresenterModule;
import dagger.Binds;
import dagger.Module;
/**
* Created by Sirojiddin on 27.10.2017.
*/
@Modul... |
package com.yfancy.web.weixin.vo.message;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;
@Data
public class MusicVo {
@XStreamAlias("Title")
private String title;
@XStreamAlias("Description")
private String desc;
@XStreamAlias("MusicUrl")
private String musicU... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package servlet;
import bean.AreaAtuacao;
import bean.Universidade;
import bean.Usuario;
import interfaces.RAreaAtuacaoRemote;
import interfaces.RUniversidadeRemote;
import java.io.IOException;
import java.i... |
package controller;
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 service.NgoDao;
/**
* Servlet implementation c... |
package capstone.abang.com.Car_Owner.Profile;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.... |
package unalcol.agents.simulate.util;
public interface Language {
public int getActionIndex(String action);
public int getPerceptIndex(String percept);
public String getAction(int index);
public String getPercept(int index);
public int getActionsNumber();
public int getPerceptsNumber();
}... |
class Solution {
public String[] uncommonFromSentences(String A, String B) {
HashMap<String, Integer> hm = new HashMap<>();
for(String word: A.split(" ")){
hm.put(word, hm.getOrDefault(word,0)+1);
}
for(String word: B.split(" ")){
hm.put(word, hm.getOrDefault(... |
package baekjoon;
import java.util.Scanner;
public class LCM {
public static void main(String_Test[] args) {
//1934번 문제
//1번째 방법
//곱한값에 최대공약수 나누기
//자신이 생각한 것을 코드로 짤 수 있어야한다
Scanner sc = new Scanner(System.in);
int count = sc.nextInt();
for (int i ... |
package com.cskaoyan.service;
import com.cskaoyan.bean.MaterialReceive;
import java.util.List;
public interface MaterialReceiveService {
public List queryAllMaterialReceive();
public int deleteById(String[] ids);
boolean insertmaterialReceive(MaterialReceive materialReceive, String materialId);
in... |
package com.hb.rssai.view.me;
import android.annotation.SuppressLint;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.design.widget.AppBarLayout;
import android... |
package mw.albumpodrozniczy;
import android.content.ContentValues;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
/**
* Created by mstowska on 2/24/2016.
*/
//.\sqlite3.exe /data/data/mw.albumpodrozniczy/databases/album_podrozniczy.db
//run-as ... |
package com.github.malikin.transferator.mapper;
import com.github.malikin.transferator.dto.Balance;
import org.jdbi.v3.core.mapper.RowMapper;
import org.jdbi.v3.core.statement.StatementContext;
import java.sql.ResultSet;
import java.sql.SQLException;
public class BalanceMapper implements RowMapper<Balance> {
@O... |
package com.yc.web.controllers;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.swing.JMenu;... |
package com.vilio.plms.dao;
import java.util.Map;
/**
* 在途订单
*/
public interface TransitOrderDao {
public Map queryTransitOrder(Map param);
}
|
package pl.cwanix.opensun.agentserver.packets.c2s.skill;
import lombok.extern.slf4j.Slf4j;
import pl.cwanix.opensun.agentserver.packets.AgentServerPacketOPCode;
import pl.cwanix.opensun.commonserver.packets.Packet;
import pl.cwanix.opensun.commonserver.packets.annotations.IncomingPacket;
@Slf4j
@IncomingPacket(catego... |
package com.hackerrank.github.util;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.Objects;
/**
* @author Shubham Sharma
* @date 6/6/20
*/
public class ObjectMapperUtil {
private static ObjectMapperUtil util = null;
priva... |
package starloader.examplemod.element.items;
import api.config.BlockConfig;
import org.schema.game.common.data.element.ElementCategory;
import org.schema.game.common.data.element.ElementInformation;
import starloader.examplemod.ExampleMod;
/**
* Abstract Item class.
*
* @author TheDerpGamer
* @since 07/02/2021
*... |
package com.junior.stouring;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.annotation.TargetApi;
import android.app.ActionBar;
import android.app.ActionBar.Tab;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import c... |
package com.mysql.cj.x.protobuf;
import com.google.protobuf.AbstractMessage;
import com.google.protobuf.AbstractMessageLite;
import com.google.protobuf.AbstractParser;
import com.google.protobuf.ByteString;
import com.google.protobuf.CodedInputStream;
import com.google.protobuf.CodedOutputStream;
import com.google.pro... |
/*
* 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 utilidadesbasicas;
import java.util.ArrayList;
/**
*
* @author usuario
*/
public class listToString {
public stat... |
package ru.brainworkout.braingym;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
public c... |
package tc.fab.file.selector;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Vector;
import javax.swing.filechooser.FileFilter;
public interface IFileSelection {
public Vector<String> getChildNames() throws FileNotFoundException;
public Vector<File> getChilds() throws FileNotFo... |
package Practice;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import static java.lang.Thread.MAX_PRIORITY;
class Res //共享资源
{
int age = 0;
String name;
boolean isEmpty = true;//资源是否为空
Lock lock = new Reent... |
import java.util.ArrayList;
//import java.util.Arrays;
public class ArrayListRevisit {
public static void main(String[] args) {
//String[] names = {"Tom", "Allen", "Marcello"};
ArrayList<String> names = new ArrayList<>();
names.add("Tom"); names.add("Allen"); names.add("Marcello");
... |
package com.voksel.electric.pc.repository.search;
import com.voksel.electric.pc.configuration.RepositoryConfiguration;
import com.voksel.electric.pc.domain.entity.Form;
import com.voksel.electric.pc.repository.FormRepository;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.Query... |
package KChainOfResponsibility.handlers;
public class G50Handler extends BaseHandler {
public void handle(int money) {
int q = money / 50;
if (q != 0) {
System.out.println("G50 - " + q + " banknote(s)");
}
int remind = money - q * 50;
if (remind > 0 & next != nul... |
package com.hk.xia.mybatisplus.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hk.xia.mybatisplus.pojo.Employer;
/**
* @author wang.yubin
* @date 2019/7/31
* @description 雇主类的Mapper
*/
public interface EmployerMapper extends BaseMapper<Employer> {
}
|
package com.steves165.offersapi;
import com.codahale.metrics.health.HealthCheck;
import io.dropwizard.Application;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
public class OffersApiApplication extends Application<OffersApiCon... |
package DrawGuess.Server;
import DrawGuess.Bag;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Timer;
import java.util.TimerTask;
import static java.lang.Thread.sleep;
public class GameThread {
private static String[] objlist= {
"鸽子", "布娃娃", "餐巾",... |
package demo3;
public class MiniDuckSimulator {
public static void main(String[] args) {
QuackBehavior quackBehavior = new Quack();
FlyBehavior flyBehavior = new FlyWithWings();
Duck mallard = new MallardDuck(quackBehavior, flyBehavior);
mallard.display();
mallard.swim();
... |
package com.projects.houronearth.activities.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andr... |
package com.guli.edu.controller.Front;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guli.edu.entity.Course;
import com.guli.edu.entity.Teacher;
import com.guli.edu.... |
package com.bingo.code.example.design.abstractfactory.design;
public class ProductA2 implements AbstractProductA {
}
|
/*
* William Orozco, 13386
* Dulce Chacon, 13463
* Luis Gomez, 13135
* Programa para contar diferentes tipos de palabras en un archivo de texto.
* HOJA DE TRABAJO 8
*
* Se uso codigo de referencia adjuntado con la hoja de trabajo
*/
/*
* BinaryNode.java: nodo empleado en un arbol desbalanceado.
* ... |
package task63;
import common.Watch;
/**
* @author Igor
*/
public class Main63 {
public static void main(String[] args) {
Watch.start();
int count = 1;
for (int x = 2; x < 10; x++) {
int pow = 1;
while (true) {
int length = (int) Math.log10(Math.po... |
/*
* 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.
*/
/**
*
* @author Matheus Sereno e Caio
*/
public class Triple {
public int currentPosition,
destination,
... |
package Dom_SAX;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class Domtestread {
public static void main(String[] args)... |
package uo.sdi.business.integration.util;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MapMessage;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.MessageProducer;
import javax.jms.ObjectMessa... |
package Strings;
import java.util.HashMap;
public class C {
public static void main(String[] args) {
String s="ewyrareufhdcywedswasdew11";
char [] c=s.toCharArray();
HashMap<Character, Integer> map = new HashMap<Character, Integer>();
for(char value :c) {
if(Character.isAlphabetic(value)) {
if(map.contains... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.