text stringlengths 10 2.72M |
|---|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Executor {
public static void main(String[] args) {
// TODO Auto-generated method stub
// Assignement : Sort the Array
Arrays sort = new Arrays();
int arr[]= {20,15,13,9,5,1};
int resarr[] = sort.bub... |
/*
* Copyright (c) 2011-2020 HERE Global B.V. and its affiliate(s).
* All rights reserved.
* The use of this software is conditional upon having a separate agreement
* with a HERE company for the use or utilization of this software. In the
* absence of such agreement, the use of the software is not allowed.
*/
pa... |
package com.tencent.wecall.talkroom.model;
import com.tencent.pb.common.a.a;
import com.tencent.pb.talkroom.sdk.c;
class f$5 implements c {
final /* synthetic */ f vyi;
f$5(f fVar) {
this.vyi = fVar;
}
public final void V(byte[] bArr, int i) {
try {
if (f.l(this.vyi)) {
... |
public class AddMusicControl {
private DataManager dm;
public AddMusicControl(DataManager d) {
this.dm = d;
}
public void handleAddMusic(String title, String artist, String link) {
dm.addMusic(title, artist, link);
}
}
|
package net.sssanma.mc.web;
import org.json.simple.JSONObject;
public abstract class WebSocketAPIHandler {
public abstract void write(JSONObject jsonObject);
public abstract APIMethod getMethodType();
public enum APIMethod {
MESSAGE, JOIN, QUIT,
}
}
|
/*
* MIT License
*
* Copyright (c) 2020 Hasan Demirtaş
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... |
package com.techelevator;
import com.techelevator.SalaryWorker;
import org.junit.Assert;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
public class SalaryWorkerTest {
@Test
public void weekly_pay_is_pay_divided_by_52() {
SalaryWorker test = new SalaryWorker("Jacob","Peralta",52000);
... |
import java.util.Scanner;
public class FBIAgentProgram {
/**
* @param args
*/
public static void main(String[] args) {
String[] names = {"Bowman","Walker","Christian","Edwards","Cummings","Halpern","Scott","Rhineheart","Haley","Brooks"};
String[] address = {"Canaan","Newark","Hardwick","Montgomer... |
package com.bridgelabz.user.controller;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;... |
package ru.innopolis.mputilov.expression;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.OutputKeys;
import ja... |
package com.kingdee.lightapp.domain.pubacc;
/**
* @since model为4时是应用消息模板的响应按钮 2015-7-15
* @author wang_kun
*/
public class PubaccMsgButton {
private String title; //消息标题
private String text; //消息摘要
/* event需要传入已下信息(URLENCODE utf-8编码):
String eventViewId 该id跟button上的id一致
String subAppDesc 按钮对应事件的访... |
package com.zzidc.web.lambda;
import org.junit.Test;
/**
* @ClassName LambdaTest
* @Author chenxue
* @Description TODO
* @Date 2019/4/1 15:01
**/
public class LambdaTest {
public void test(){
Converter<String,Integer> converter = new Converter<String, Integer>() {
@Override
pu... |
package com.example.stockspring.service;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.stockspring.dao.StockPriceDao;
import com.example.stockspring.model.StockPrice;
@Service
publi... |
package com.pangpang6.books.guava.primitives;
import org.junit.Test;
import com.google.common.primitives.Doubles;
/**
* Created by jiangjiguang on 2017/12/16.
*/
public class DoublesTest {
@Test
public void compareTest(){
int r = Doubles.compare(2.0, 3.3);
System.out.println(r);
}
@... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package room;
import java.util.Random;
import item.Book;
import item.Photocopier;
/**
* the library
* @author Dravet
*
*/
public class Library extends Room {
//boolean to know if the library is open
private boolean open = false;
//boolean to know if the cheat is in the photocopier
private boolean cheat = fal... |
package com.tencent.mm.protocal.c;
import com.tencent.mm.bk.a;
import java.util.LinkedList;
public final class kh extends a {
public int rml;
public LinkedList<Integer> rmm = new LinkedList();
protected final int a(int i, Object... objArr) {
if (i == 0) {
f.a.a.c.a aVar = (f.a.a.c.a) ... |
package fi.alekstu.ps5watch;
public class ListedConsole {
private final String name;
private final String url;
public ListedConsole(String name, String url) {
this.name = name;
this.url = url;
}
public String getName() {
return name;
}
public String getUrl() {
... |
/*
* 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 ... |
package com.ceiba.parkingceiba.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.ceiba.parkingceiba.model.entity.Parqueadero;
... |
package com.diozero.sampleapps;
/*
* #%L
* Organisation: diozero
* Project: diozero - Sample applications
* Filename: SSD1331Test.java
*
* This file is part of the diozero project. More information about this project
* can be found at https://www.diozero.com/.
* %%
* Copyright (C) 2016 - 2023 diozer... |
package com.designpattern.dao;
import java.util.ArrayList;
import java.util.List;
import com.designpattern.dao.model.Transaction;
import com.designpattern.dao.model.TransactionBo;
public class TransactionDaoImpl implements TransactionDao {
List<Transaction>transactions;
public TransactionDaoImpl() {
// TODO A... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.insat.gl5.crm_pfa.web.controller.product;
import com.insat.gl5.crm_pfa.model.Category;
import com.insat.gl5.crm_pfa.model.TVA;
import com.insat.gl5.crm_pfa.service.ProductService;
import com.insat.gl5.crm_pf... |
package error.example.domain.exception;
public class AnotherDomainException extends DomainException {
public AnotherDomainException(String message) {
super(message);
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.insat.gl5.crm_pfa.model;
import javax.persistence.Entity;
/**
*
* @author Mu7ammed 3li -- mohamed.ali.affes@gmail.com --
*/
@Entity
public class Fidelity extends BaseEntity{
private int score;
p... |
package controller;
import view.ServerCollectionView;
import view.ServerMainView;
/**
* @version Adreli_4_Gui_Server
* @author Jan-Hendrik Hausner
* @author John Budnik
* @author Luca Weinmann
*/
public class StartServer {
/**
* @param args
*/
public static void main(String[]args) {
new ControllServ... |
package q4.user;
import java.util.ArrayList;
import java.util.Date;
import q4.adress.Address;
public class User {
String isim ="Melih";
String soyisim="Esmek";
String password="123";
String email="mbesmek@gmail.com";
int yas=22;
Date sonGirisTarihi= new Date();
ArrayList<Address> adress = ne... |
package com.example.widgetex;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;... |
package br.com.conspesca.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class... |
package sys_bs.dao;
import java.util.List;
import sys_bs.entity.*;
/**
* 登录持久化接口
* @author Administrator
*
*/
public interface ILoginDao {
/**
* 登录
* @param code
* @param password
* @return
*/
public int login(String code,String password);
/**
* 查询
* @param account
* @return
... |
package com.pine.template.mvp.contract;
import com.pine.template.mvp.adapter.MvpShopListNoPaginationAdapter;
import com.pine.tool.architecture.mvp.contract.IContract;
/**
* Created by tanghongfeng on 2018/9/14
*/
public interface IMvpShopNoPaginationListContract {
interface Ui extends IContract.Ui {
}
... |
package ru.yandex.qatools.allure.data;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import ru.yandex.qatools.allure.data.utils.TextUtils;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertFalse;
/**
* @author Dmitry Baev ch... |
package com.tencent.mm.plugin.remittance.ui;
import com.tencent.mm.kernel.g;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.wallet_core.d.c;
import com.tencent.mm.wallet_core.d.d;
class RemittanceBusiUI$b implements Runnable {
public d mBH;
final /* synthetic */ RemittanceBusiUI mBt;
Re... |
/**
*
*/
package alg.sort;
import java.util.Arrays;
/**
* 基本比较排序
* <p>
* <a href="http://www.cnblogs.com/eniac12/p/5329396.html">排序算法总结</a>
*
* @title CompareSort
*/
public class CompareSort {
public static void main(String[] args) {
int[] a = { 4, 1, -1, 6, 9, 2, 1, 0, 3, 5, 5, 18, 20,... |
package com.box.androidsdk.content.requests;
import com.box.androidsdk.content.models.BoxFolder;
import com.box.androidsdk.content.models.BoxItem;
import com.box.androidsdk.content.models.BoxSession;
import com.box.androidsdk.content.models.BoxSharedLink;
import com.eclipsesource.json.JsonArray;
import com.eclipsesour... |
package com.neo.test.seq;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
... |
import java.io.*;
/**
* Created by Ankit on 1/17/2017.
*/
public class FileIO {
public static String readFile(File inputPath) {
String output = "";
try(BufferedReader input = new BufferedReader(new InputStreamReader(new FileInputStream(inputPath)))) {
output = input.readLine(... |
package com.example.demo.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.example.demo.model.Publisher;
@Repository
public interface PublisherRepository extends CrudRepository<Publisher,Long>{
}
|
package com.cristovantamayo.ubsvoce.services;
import java.text.DecimalFormat;
import org.hamcrest.core.IsSame;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.context.properties.ConfigurationProperties... |
package support.yz.data.entity.chart;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;
import java.util.List;
/**
* @Author: yangzhuo
*... |
package LeetCode.BloombergPractice;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.TreeSet;
public class Leaderboard {
class Pdetail{
int id;
int score;
Pdetail(int id, int score){
this.id = id;
this.score = score;
}
}
HashMap<Int... |
package cefetiny;
public class ComandoEndIf extends Comando{
@Override
public void executa() {
System.out.println("Opa, endif?");
}
}
|
package com.altimetrik.demo.model;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ArtistInfo {
private Artist2 artist;
private Album album;
private Lyrics lyrics;
List <Artist> artistlist;
public List<Artist> getArtistList() {
return artistlist;
}
public voi... |
package com.mimi.mimigroup.api;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import java.io.IOException;
import okhttp3.OkHttpClient;
//Para: Void1:Kiểu dữ liệu tham số truyền vô doInBackground
//Void2:Kiểu dữ liệu truyền vô hàm onProcessUpdate
//Void3: Kiểu dữ liệu trả vê truyền vô hàm onPostExc... |
/*
* 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 halloween.game.jam;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JPanel;
/**
*
* @auth... |
package at.fhj.swd.domain.exceptions;
import at.fhj.swd.exceptions.FhjWs2014Sd12PseException;
/**
* Denotes the top-level-exception-base-class for all domain-layer-exceptions.
* */
class DomainLayerException extends FhjWs2014Sd12PseException {
private static final long serialVersionUID = -7147962666368460968L;
... |
package edu.kvcc.cis298.criminalintent;
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertD... |
import java.util.*;
import java.io.*;
import java.nio.file.Path;
/**
* 모든 instruction의 정보를 관리하는 클래스. instruction data들을 저장한다
* 또한 instruction 관련 연산, 예를 들면 목록을 구축하는 함수, 관련 정보를 제공하는 함수 등을 제공 한다.
*/
public class InstTable {
/**
* inst.data 파일을 불러와 저장하는 공간.
* 명령어의 이름을 집어넣으면 해당하는 Instruction의 정보들을 리턴할 ... |
/**
* 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 Tasks.LessonThree;
public class ArrayUtil {
public static int min(int[] array){
int min = array[0];
for (int i = 1; i < array.length; i++){
if (min > array[i]){
min = array[i];
}
}
return min;
}
public static int max(int[] arr... |
package edu.neu.dreamapp.ui;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.AssetManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recycle... |
package com.example.hp.above;
import android.app.ActionBar;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class AptitudeActivity extends AppCompatActivity {
@Overri... |
package com.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* @类名:LetsSimpleController.java
* @创建人:付祉旋
* @创建时间:2019年3月8日
* @版本:1.0
*/
@Controller
@RequestMapping("/Le... |
package com.classcheck.window;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import ... |
/*
* 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 tolteco.sigma.view;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.BufferedI... |
package Lab02.Zad2;
public class Sound {
Codec codec = null;
int speakers = 0;
public Sound(int speakers) {
this.speakers = speakers;
}
public void chooseCodec(){
if(speakers <= 2)
this.codec = new DolbyDigital();
else
this.codec = new DolbyProLogic... |
package com.rc.portal.dao;
import java.sql.SQLException;
import java.util.List;
import com.rc.portal.vo.TMember;
import com.rc.portal.vo.TMemberExample;
public interface TMemberDAO {
int countByExample(TMemberExample example) throws SQLException;
int deleteByExample(TMemberExample example) throws SQLExcept... |
package pl.coderslab.servlet.order;
import pl.coderslab.dao.DbInit;
import pl.coderslab.dao.OrderDao;
import pl.coderslab.model.Order;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.se... |
import java.util.EmptyStackException;
import java.util.Arrays;
/**
A vector array that implements StackInterface.
@author Minwoo Soh
*/
public final class Vector<T> implements StackInterface<T>
{
private static final int DEFAULT_CAPACITY = 5;
private static final int MAX_CAPACITY = 10000; // To make sure mem... |
package com.example.chrisc.bestlineaward;
import Listeners.*;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class CustomArrayAdapter<T> extends ArrayAdapter<T> {
pub... |
package org.lightadmin.demo.model;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public class AbstractEntity {
@Id
@GeneratedValue( strategy = GenerationType.AUTO )
private Lon... |
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
package com.mysql.cj.jdbc.ha;
import com.mysql.cj.jdbc.jmx.ReplicationGroupManager;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
public class ReplicationConnectionGroupManager {
private static HashMap... |
/**
*
*/
package com.elitech.quicktortoise.ui.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
//import com.orhanobut.logger.Logger;
/**
... |
/*
* 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 tolteco.sigma.model.dao.jdbc;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
impo... |
package cn.jishuz.library.adpter;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
imp... |
package firstPg.exceptions;
public class BookDoesNotExistException extends Exception{
public BookDoesNotExistException (String title) {
super(String.format("A book with this title %s doesn't exist!", title));
}
}
|
package pl.training.shop.product.ui;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import pl.training.shop.category.model.CategoriesService;
import pl.training.shop.product.model.ProductsService;
@Route("add-product")
public class AddProductView extends VerticalLa... |
package com.lubao.forbackend.controller;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.logging.SimpleFormatter;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
impo... |
package com.springboot.quickstart.mapper;
import com.springboot.quickstart.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* class_name: UserMapper
* package: com.springboot.quickstart.mapper
* describe: TODO
* @author: Liuxianglong
... |
package domain;
import domain.api.Item;
public class ItemImpl implements Item {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
package com.example.lookie;
public class DrinkCartData {
String drink;
String size;
int price;
int amount;
public DrinkCartData(String drink, String size, int price, int amount) {
this.drink = drink;
this.size = size;
this.price = price;
this.amount = amount;
}
... |
package com.pfchoice.springboot.repositories;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import com.pfchoice.springboot.model.PlaceOfService;
import com.pfchoice.sprin... |
package com.example.user.testteamextention.data;
import com.example.user.testteamextention.model.ExchangeObject;
import com.example.user.testteamextention.model.ItemResponse;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
public interface ApiInterface {
@GET("transactions.json")
C... |
/*As we know to test our rest API we have to use POSTMAN/SWAGGER etc..... tools (i'm using POSTMAN here)
* we have to pass request body as shown as below and the api will give the response in below format
* request in JSON format
* =========================
* {
"name":"mobile",
"cardType":"HDFC",
"price... |
package com.tencent.mm.ui.b;
import android.app.Activity;
import android.content.Context;
import android.support.v7.app.ActionBar;
import android.support.v7.view.menu.f;
import android.support.v7.widget.u;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewGroup;
public final class b exte... |
package random;
public class NestedExceptionTryCatchBehaviorTest {
public static void main(String[] args) {
try {
try {
int x = 0 / 0 ;
} catch (RuntimeException e) {
// once caught it is dealt with..
System.out.println("inner");
... |
package com.noteshare.solr.utils;
import java.io.IOException;
import org.apache.solr.client.solrj.SolrServerException;
import com.noteshare.solr.model.Entity;
import com.noteshare.solr.services.SolrService;
public class ExcuteSolr {
public static void excute(SolrService solrService,Entity entity,String operType){... |
package com.spring.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import org.apache.http.Header;
import org.apache.http.HttpR... |
/*
* Copyright (c) 2017. Universidad Politecnica de Madrid
*
* @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es>
*
*/
package org.librairy.modeler.performance;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import es.cbadenes.lab.test.IntegrationTest;
import org.apache.s... |
package ru.hitpoint.lib.hitpoint.heatmap;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Environment;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import java.io.File;
import java.io.F... |
public class MainAnimal {
public static void main(String[] args) {
Animal animal1 = new Dog();
animal1.makeNoise("","") ;
animal1.sleep("", "");
animal1.eat("", "");
;
Animal animal2 = new Cat();
animal2.makeNoise("", "");
animal2.sleep("",... |
package com.tuitaking.race.r20201227;
import java.util.HashMap;
import java.util.List;
/**
* 给你一个偶数长度的字符串 s 。将其拆分成长度相同的两半,前一半为 a ,后一半为 b 。
* 两个字符串 相似 的前提是它们都含有相同数目的元音('a','e','i','o','u','A','E','I','O','U')。注意,s 可能同时含有大写和小写字母。
* 如果 a 和 b 相似,返回 true ;否则,返回 false 。
* 示例 1:
* 输入:s = "book"
* 输出:true
* 解释:a = "bo... |
package permafrost.game;
import permafrost.core.lang.GList;
import permafrost.core.module.ModuleManager;
import permafrost.core.module.PermafrostModule;
public class GameController<T extends Playable> extends PermafrostModule
{
protected final GList<T> games;
public GameController(ModuleManager manager)
{
supe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package servlets;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.ne... |
/**
*Rm.java
*Version1.0
*2015年8月30日
*Copyright easecredit.com
*
*/
package org.enilu.hellohadoop.hdfs;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
/**
* descript<br>
* </p>
* Copyright by easecredit.com<br>
* 作者: zhangtao <br>
* 创建日期: 2015年8月30日<br>
*/
public class Rm extend... |
package pageObjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class ForgotPasswordPage
{
private WebDriver driver;
private By emailField = By.id("email");
private By retrievePasswordButton = By.cssSelector("#form_submit i");
public ForgotPasswordPage(WebDriver drive... |
package uns.ac.rs.hostplatserver.mapper;
import java.util.stream.Collectors;
import uns.ac.rs.hostplatserver.dto.ProjectDTO;
import uns.ac.rs.hostplatserver.model.Project;
public class ProjectMapper {
public static ProjectDTO toDTO(Project project) {
return new ProjectDTO(project.getId(),
proje... |
package com.redscarf.admin.service.impl;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.redscarf.admin.mapper.SysMenuMapper;
import com.redscarf.admin.model.entity.SysMenu;
import com.redscarf.admin.model.vo.MenuVO;
import com.redscarf.admin.service.SysMenuService;
import org.springframework.bean... |
package com.jim.mpviews.calendar;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.jim.mpviews.R;
import com.jim.mpviews.utils.CalendarDate;
import java.util.Calendar;
public class CalendarDayView extends... |
package top.kylewang.bos.service.system.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.kylewang.bos.dao.system.PermissionRepository;
import top.kylewang.bos.domain.system.Per... |
package com.example.heng.jredu.jredu;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.Toast;
import c... |
package rjm.romek.awscourse.service;
import java.util.List;
import java.util.Map;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import rjm.romek.awscourse.SpringContext;
import rjm.romek.awscourse.model.C... |
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class LaunchScreen extends JPanel implements ActionListener {
// Field Variabl... |
package com.codementor.android.starwarsbattlefrontcommunity;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.Vie... |
package com.hqhcn.android.dao;
import com.hqh.android.entity.Examsite;
import com.hqh.android.entity.ExamsiteExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ExamsiteMapper {
long countByExample(ExamsiteExample example);
int deleteByExample(ExamsiteExample example... |
package com.netease.course;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springf... |
package es.maltimor.genericRest;
import java.util.Map;
public interface GenericTableResolverTestParams {
public Map<String,Object> getTestParams(String table);
}
|
package org.gbif.kvs.indexing.species;
import org.gbif.dwc.terms.DwcTerm;
import org.gbif.dwc.terms.GbifTerm;
import org.gbif.dwc.terms.Term;
import org.gbif.kvs.species.SpeciesMatchRequest;
import java.util.Optional;
import java.util.function.Consumer;
import org.apache.hadoop.hbase.client.Result;
import org.apache... |
package com.google.android.gms.common.internal;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
class s$a$a implements s {
private IBinder aFh;
s$a$a(IBinder iBinder) {
this.aFh = iBinder;
}
public final void a(r rVar, int i) {
Parcel obtain = Parcel.ob... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.