text stringlengths 10 2.72M |
|---|
package com.sailaminoak.saiii;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawabl... |
package com.cs.player;
import com.cs.bonus.PlayerBonus;
import com.cs.payment.Money;
import com.cs.payment.MoneyConverter;
import com.google.common.base.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persiste... |
public class TokenFactory {
public Token parseAndBuildToken(String string) {
try {
return new Operand(Integer.parseInt(string));
} catch (NumberFormatException e) {
return new Operator(string);
}
}
}
|
package ch06;
public class PurseTester {
/**
* @param args
*/
public static void main(String[] args) {
Purse purse = new Purse();
purse.addCoin("Quater");
purse.addCoin("Dime");
purse.addCoin("Nickel");
purse.addCoin("Dime");
System.out.println("Purse toString test:");
System.out... |
package chemistry;
/**
* a class with static methods to check for exceptions
*
* This is the only place where F will be printed to console
* @author Ted Kim
* @email tkk21@case.edu
*
*/
public class ExceptionUtils {
public static void checkNulls (Object ... args){
if (args == null){
thro... |
package com.codingthamizha;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created by Appoyy on 18/08/16.
*/
public class StringCompress {
static BufferedReader br;
static StringBuilder output;
public StringCompress() {
// Initializing the Bu... |
// Copyright 2010 Google 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 of conditions and ... |
package com.binarysprite.evemat.entity;
import org.seasar.doma.Column;
import org.seasar.doma.Entity;
import org.seasar.doma.Id;
import org.seasar.doma.Table;
/**
*
*/
@Entity(listener = UnitListener.class)
@Table(name = "UNIT")
public class Unit {
/** */
@Id
@Column(name = "UNIT_ID")... |
/*
Copyright (C) 2013-2014, Securifera, 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 of conditions and... |
package slimeknights.tconstruct.library.client.model;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.block.model.IBakedModel;
import net.minecraft.client.renderer.block.mode... |
package com.study.zookeeper.DistributeLock.zkClient;
import java.io.Serializable;
/**
* @author XiaoBai
* @description 模拟竞争Master的机器
* @date
*/
public class UserCenter implements Serializable {
private static final long serialVersionUID = 4422973397777606336L;
// private static final long serialVersion... |
package app.android.com.gitrepostriesApp.view_model;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import java.util.List;
import app.android.com.gitrepostriesApp.model.ContributorModel;
import app.android.com.gitrepo... |
package com.example.lablnet.quizapp;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget... |
package business;
import java.util.ArrayList;
import java.util.List;
import java.util.OptionalDouble;
public class Livro {
private static final double PCT_DIREITOS =0.08;
private String titulo;
private Autor autor;
private IProduto modalidade;
private int paginas;
private double precoBase;
private... |
package com.zs.dao.msgs;
import com.google.gson.Gson;
import com.huaiye.sdk.sdkabi._params.SdkBaseParams;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import com.zs.R;
import com.zs.bus.CreateMeet;
import com.zs.bus.CreateTalkAndVideo;
import com.zs.bus.MeetInvistor;
import co... |
package ru.app.service;
import ru.app.exception.ResourceNotFoundException;
import ru.app.model.User;
import ru.app.persistence.Store;
import ru.app.persistence.UserStore;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date;
/**
* @author Vladimir Ryazan... |
package edu.duke.ra.core;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;
import java.util.Properties;
import edu.duke.ra.core.db.DB;
public class RAConfig {
private final String propsFileName;
private final boolean internalPropsFile;
... |
package com.meehoo.biz.core.basic.dao.security;
import com.meehoo.biz.core.basic.domain.security.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
* Cr... |
/*
* Copyright 2018-2019 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 ideablog.service.impl;
import ideablog.dao.IRCollectDao;
import ideablog.model.RCollect;
import ideablog.service.IRCollectService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service("rCollectService")
public class RCollectServiceImpl implements IRCollectService {
@... |
package com.lynch.sort.priorityqueue;
import java.util.Scanner;
import static com.lynch.sort.primary.BaseSort.isSorted;
import static com.lynch.sort.primary.BaseSort.show;
/**
* 堆排序
* TO(N)=NlogN,SO(N)=1
* 1.堆的构造阶段
* 2.下沉排序阶段
* Created by lynch on 2018/9/7. <br>
**/
public class HeapSort {
public static v... |
/*
* 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 ventanas;
import clases.Caja;
import java.awt.event.KeyEvent;
import javax.swing.JOptionPane;
/**
*
* @author hp desktop
... |
/**
* Created with IntelliJ IDEA.
* User: dexctor
* Date: 12-12-26
* Time: 下午9:26
* To change this template use File | Settings | File Templates.
*/
public class MyDirectedDFS {
private boolean[] marked;
private MyDigraph G;
public MyDirectedDFS(MyDigraph G, int s)
{
this.G = G;
ma... |
package app.akeorcist.deviceinformation.fragment.main;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;... |
package com.jfronny.raut.api;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ToolMaterial;
public class BasePaxel extends PaxelItem {
public BasePaxel(ToolMaterial material) {
super(new ToolMatBuilder(material).setAttackDamage(material.getAttackDamage()), new Settings().group(ItemGroup.TOO... |
package org.w2b.designpatterns.singleton;
public class MinimalSingleton {
private MinimalSingleton() {
/* the body of the constructor here */
}
/* pre-initialized instance of the singleton */
private static final MinimalSingleton INSTANCE = new MinimalSingleton();
/* Access point to the ... |
package miniWat;
public class Threadin implements Runnable {
public Threadin(){
}
public static void main(String[] args){
Threadin t = new Threadin();
t.run();
}
public void run() {
System.out.println("yep");
}
}
|
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.company;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
SentenceExtractor extractor = new SentenceExtractor();
if (!Files.exists(Paths.get("... |
package de.trispeedys.resourceplanning;
import static org.junit.Assert.assertEquals;
import org.camunda.bpm.engine.test.Deployment;
import org.camunda.bpm.engine.test.ProcessEngineRule;
import org.junit.Rule;
import de.trispeedys.resourceplanning.entity.Event;
import de.trispeedys.resourceplanning.entity.Ev... |
package com.hcmus.pricetracker.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
impo... |
package gov.nih.mipav.view;
import java.awt.*;
import java.awt.geom.*;
// imports for memory monitor
import java.awt.image.*;
import javax.swing.*;
/**
* BarMeter presents a vertical, block-style meter to present numerical information as a fraction of a number of
* divisions (eg, progress or resource consumptio... |
package com.zzwc.cms.common.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* 不同概率抽奖工具包
*
* @author weirdor
*/
public class LotteryUtil {
/**
* 抽奖
*
* @param orignalRates
* 原始的概率列表,保证顺序和实际物品对应
* @return
* 物品的索引
*... |
package com.culturaloffers.maps.services;
import static com.culturaloffers.maps.constants.CulturalOfferConstants.*;
import static org.assertj.core.api.Assertions.assertThat;
import com.culturaloffers.maps.dto.ZoomDTO;
import com.culturaloffers.maps.model.CulturalOffer;
import com.culturaloffers.maps.model.GeoLocation... |
package tanks.tankField;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Random;
import javax.swing.Timer;
import pool.Field;
import resources.AllSounds;
import score.Score;
import square.BorderSquare;
import square.Member;
import strike.elements.Bullet;
import strike.elements.E... |
package eu.kutik.accelerometertest;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
public abstract class TestListener implements SensorEventListener {
@Override
public final void onSensorChanged(final SensorEvent event) {
if (event != null &&... |
package 自定义注解;
/**
* Created by Yingjie.Lu on 2018/7/26.
*/
import java.lang.reflect.Field;
/**
* 注解解析器
*/
public class FruitINfoUtil {
public static void getFruitInfo(Class<?> clazz){
Field[] fields=clazz.getDeclaredFields();
for(Field f:fields){
if(f.isAnnotationPresent(FruitN... |
package 新的线程创建方式;
import java.util.concurrent.*;
class RunnbaleDemo implements Runnable{
@Override
public void run() {
for (int i = 0; i < 100; i++) {
if (i % 2 == 0){
System.out.println(Thread.currentThread().getName()+":"+i);
}
}
}
}
class Calla... |
package org.gracejvc.vanrin.service;
import java.util.List;
import org.gracejvc.vanrin.dao.AdminDAOimpl;
import org.gracejvc.vanrin.model.Admins;
import org.springframework.transaction.annotation.Transactional;
public class AdminServiceImpl implements AdminService {
private AdminDAOimpl adminADO;
p... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package io.pivotal.pcc.ri.mwld.model.mapper;
import io.pivotal.pcc.ri.mwld.model.gf.Order;
import io.pivotal.pcc.ri.mwld.model.info.OrderInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper(uses = { DateMapper.class })
public interface OrderInfoMapper {
OrderInfoMapper MAPPER = Mappers.g... |
package org.firstinspires.ftc.teamcode.ExampleRobot;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.firstinspires.ftc.teamcode.ExampleRobot.Motors.ShooterMotor;
import org.firstinspires.ftc.teamcode.Robot.DriveTrain;
import org.firstinspires.ftc.teamcode... |
package com.loneless.second_task.entity;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class Sentence {
private List<Word> words=new ArrayList<>();
public List<Word> getWords() {
return words;
}
public Word getWord(int index){
return words.get... |
package Testing;
import util.BoundedBuffer;
import util.MovePacket;
public class testProducer implements Runnable {
BoundedBuffer myB;
static int[][] a = {{0, 1, 2}, {2, 1, 0}};
static int[][] b = {{2, 1, 0}, {0, 1, 2}};
static int amount = 0;
public testProducer(BoundedBuffer b) {
myB = b;
}
@Override
publ... |
import java.util.Arrays;
public class NumberGameAgain {
public long solve(int k, long[] table) {
Arrays.sort(table);
long[] powers = new long[k + 1];
powers[0] = 1;
for(int i = 1; i < powers.length; ++i) {
powers[i] = 2 * powers[i - 1];
}
long total = ... |
//antar at dette vil skrive ut 5
public class MinKlasse {
public int a = 0;
public MinKlasse(int b) {
a = b;
}
public static void main(String[] args) {
MinKlasse obj = new MinKlasse(5);
System.out.println(obj.a);
}
}
|
package com.heihei.model.msg.api;
import com.heihei.model.msg.bean.AbstractMessage;
import com.heihei.model.msg.bean.GiftMessage;
import com.heihei.model.msg.bean.LiveMessage;
public interface LiveMessageCallback extends MessageCallback {
public void addTextCallbackView(AbstractMessage message);
public void addGif... |
package com.asiainfo.worktime.service;
import java.util.List;
import com.asiainfo.worktime.model.WorkStateModel;
public interface WorkStateService {
List<WorkStateModel> getAllStates();
}
|
package edu.ucsb.cs56.pconrad.parsing.tokenizer;
public class EqualsToken extends Token {
@Override
public String toString() { return "EqualsToken"; }
}
|
import java.io.*;
import java.net.*;
class UDPServer {
public static void main(String args[]) throws Exception
{
DatagramSocket serverSocket= new DatagramSocket(9876);
byte[] receiveData= new byte[1024];
byte[] sendData= new byte[1024];
while(true)
{
DatagramPacket receivePacket= new DatagramPack... |
package com.example.awesoman.owo2_comic.httpmanager;
/**
* Created by Awesome on 2017/6/1.
*/
public class HttpParam {
public static final String KEY = "key";
}
|
package nichol.springframework.springpetclinic.services.jpa;
import nichol.springframework.springpetclinic.model.PetType;
import nichol.springframework.springpetclinic.repositories.PetTypeRepository;
import nichol.springframework.springpetclinic.services.PetTypeService;
import org.springframework.context.annotation.Pr... |
package com.mao.springdata.springjpaquery.controller;
import com.mao.springdata.springjpaquery.bean.Clazz;
import com.mao.springdata.springjpaquery.bean.Student;
import com.mao.springdata.springjpaquery.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web... |
/**
*
* @author E14010
*/
public class Complex {
private final double x,y;
public Complex(double x0,double y0) {
this.x=x0;
this.y=y0;
}
public double getX() {
return x;
}
public double getY() {
return y;
}
// for g... |
package com.basket.together;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BasketTogetherApplication {
public static void main(String[] args) {
SpringApplication.run(BasketTogetherApplication.class, args)... |
package framework;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import org.ope... |
package com.hwj.daoImpl;
import java.math.BigInteger;
import java.util.List;
import javax.annotation.Resource;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import com.h... |
package com.Premium.bean;
import lombok.Data;
@Data
public class Employee {
private Integer employeeId;
private String name;
private String contactNumber;
private String emailId;
private Adderss address;
public Employee(Integer employee_id, String name, String contact_number, String email_id, Adderss addr... |
import static org.junit.Assert.*;
import org.junit.Test;
/*
* Header
* @Author: Aaron Lack, alack
* Last edited: 4/29/20
* Class BST_TESTS, for JUNIT tests for all of my methods
* Make a bst tree from main in BST.java and do assert equals for the testing.
*/
public class BST_TEST {
@Test
public void test()... |
package org.sunshinelibrary.turtle.utils;
import java.text.SimpleDateFormat;
/**
* User: fxp
* Date: 10/21/13
* Time: 1:39 PM
*/
public class DateFormater {
public static String format(long time) {
SimpleDateFormat sdf = new SimpleDateFormat("MM月dd日 HH:mm:ss");
return sdf.format(time);
}
... |
/*
* Copyright 2014 Chris Banes
*
* 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 i... |
package dbAssignment.opti_home_shop.data.model;
import java.util.Objects;
import javax.persistence.*;
import com.sun.istack.NotNull;
import org.hibernate.annotations.CreationTimestamp;
@javax.persistence.Entity
@Table(name = "inquiry")
public class Inquiry {
@Id
@Column(name = "I_Id")
@NotNull
@GeneratedValue(s... |
package be.openclinic.api;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Vector;
import javax.servlet.http.HttpServletRequest;
import be.mxs.common.model.vo.healthrecord.TransactionVO;
import be.mxs.common.util.db.MedwanQuery;
import be.openclinic.finance.PatientInvoice;
import... |
/**
Program that creates a Question object which stores a question's
attributes (i.e., answer, etc.) for playing a trivia game.
@author Hiram Raulerson
@version 1.0
E-mail Address: hhr3@students.uwf.edu.
Last Changed: October 20, 2015.
COP5007 Project #: 4
File Name: Question.java
*/
public class Question
{
... |
package com.whl.datafiles.customize.entity;
import com.whl.datafiles.customize.annotation.WElement;
import com.whl.datafiles.customize.annotation.WTable;
@WTable("uuser")
public class User{
@WElement("fid")
private String id;
@WElement("12")
private String age;
private String description;
pu... |
package com.flyusoft.apps.jointoil.service;
import java.util.Date;
import java.util.List;
import com.flyusoft.apps.jointoil.entity.OneIntegratedMachine;
import com.flyusoft.apps.jointoil.entity.TwoScrewMachine;
import com.flyusoft.common.orm.Page;
public interface TwoScrewMachineService {
public void sa... |
package io.gtrain.util.verifier.base;
/**
* @author William Gentry
*/
interface EndpointVerifier {
boolean isOk();
boolean isForbidden();
}
|
/*
* Copyright 2016 Florian Spieß (Minn).
*
* 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 applica... |
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
// 地址(主页-西洋)
private static final String URL = "http://x771112.com/bbs/thread.php?fid=54";
// 域名
private static final String DOM... |
package io.chark.food.app.administrate.article.category;
import io.chark.food.domain.article.category.ArticleCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import... |
package com.atguigu.java3;
/*
类的成员之 : 代码块
作用 : 对Java类或对象进行初始化
格式:
{}
注意:代码块只能被static修饰
静态代码块:
1.静态代码块是随着类的加载而加载的,且只加载一次。
2.静态代码块的执行优先于非静态代码块。
3.静态代码块可以有多个,执行顺序是从上到下依次执行。
4.静态代码块中不能调用实例变量和非静态方法
非静态代码块
1.非静态代码块是随着对象的创建而加载的
2.非静态代码块优先构造器的执行
3.非静态代码块可以有多个,执行顺序是从上到下依次... |
package com.xwj.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xwj.service.AsyncService;
/**
* 异步调用
*
* @author xwj
*/
@RestController
@RequestMapp... |
class DemoArray
{
public static void main(String[]args)
{
int add_month[] = new int[12];
int month_day [] = {31,28,31,30,31,30,31,31,30,31,30,31};
String month_name[] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
for(int i=0;i<12;i++)
{
... |
package com.jinglangtech.teamchat;
import android.app.ActivityManager;
import android.app.Notification;
import android.content.Context;
import android.content.Intent;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Handler;
import android.os.Vibrator;
impo... |
package com.example.ttc.fkphotogallery;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app... |
package ch11.exam08;
import java.util.Date;
public class Board {
private int bno;
private String tilte;
private String content;
private String writer;
private Date writeDate;
public int getBno() {
return bno;
}
public void setBno(int bno) {
this.bno = bno;
}
public String getTilte() {
return tilte;
... |
package com.lenovohit.hwe.mobile.core.web.rest;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.... |
package co.uk.apcoa.pages;
public class AccessResponse {
String access_token;
}
|
package edu.banking.hollingsworth.james;
import edu.jenks.dist.banking.AbstractBanking;
import edu.jenks.dist.banking.AbstractCheckingAccount;
import edu.jenks.dist.banking.AbstractCustomer;
import edu.jenks.dist.banking.AbstractSavingsAccount;
public class Banking extends AbstractBanking {
@Override
publi... |
package com.github.venkat.writables.example;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;
import org.apache.hadoop.ipc.VersionedProtocol;
import java.io.IOException;
public class HadoopServer {
public static final String SERVER_ADDRESS = "localhost";
public static final int... |
package com.shop.mapper;
import com.shop.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import java.util.List;
@Mapper
@Repo... |
package com.example.mdt;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
public class Camera extends AppCompatActivity {
ImageView iv24, iv25;
@Override
protected void onCreate(Bundle sav... |
import presentation.Menu;
import java.io.FileNotFoundException;
import java.text.ParseException;
public class Main {
public static void main(String[] args) throws FileNotFoundException, ParseException {
Menu mainMenu = new Menu();
mainMenu.mainLoop();
}
}
|
package gov.nist.hit.core.service;
import java.util.List;
import java.util.Set;
import gov.nist.hit.core.domain.TestArtifact;
import gov.nist.hit.core.domain.TestPlan;
import gov.nist.hit.core.domain.TestScope;
import gov.nist.hit.core.domain.TestingStage;
public interface TestPlanService {
public TestPlan findOn... |
/** http://lightoj.com/volume_showproblem.php?problem=1041 #prim */
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.PriorityQueue;
import java.util.Scanner;
class RoadConstruction {
public static boolean Prim(ArrayList<ArrayList<Node>> graph, int[] costArr, int src) {
... |
package com.distributie.enums;
public enum EnumOperatiiEvenimente {
SAVE_NEW_EVENT("saveNewEvent"), GET_DOC_EVENTS("getDocEvents"), CHECK_BORD_STARTED("getStartBorderou"), SAVE_NEW_STOP("saveStop"), CHECK_STOP(
"getEvenimentStop"), SAVE_ARCHIVED_OBJECTS("saveArchivedObjects"), SET_SFARSIT_INC("saveEvenimentStopInc... |
package cc.yuerblog;
import cc.yuerblog.dag.*;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
import java.io.IOException;
// https://spark.apache.org/docs/latest/rdd-programming-guide.html
// y... |
package proxy4;
public class Student {
public void study(){
System.out.println("我是学生,我正在教室里上课...");
}
public void doHomework(){
System.out.println("我是学生,我每天晚上都回家之后都有写不完的作业...");
}
}
|
package com.baoxu.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfra... |
package ticket.modernland.co.id;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
public class AssigmentAdapter extends RecyclerView.Adapter<AssigmentViewH... |
package nl.esciencecenter.newsreader.hbase;
import cascading.flow.FlowProcess;
import cascading.operation.BaseOperation;
import cascading.operation.Function;
import cascading.operation.FunctionCall;
import cascading.tuple.Fields;
import cascading.tuple.Tuple;
import cascading.tuple.TupleEntry;
public class SizerFunct... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
import java.util.Scanner;
public class sum
{
public static void main(String[] args)
{
Scanner sr = new Scanner(System.in);
int n = sr.nextInt();
int x = sr.nextInt();
int a[] = new int[n];
for(int i=0;i<n;i++)
{
a[i] = sr.nextInt();
}
... |
package com.wizinno.shuhao.user.userServiceImpl;
import com.wizinno.shuhao.condition.LogCondition;
import com.wizinno.shuhao.condition.UserCondition;
import com.wizinno.shuhao.device.data.DeviceDto;
import com.wizinno.shuhao.exception.CustomException;
import com.wizinno.shuhao.exception.CustomExceptionCode;
import com.... |
package com.example.medsearch;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.anno... |
/*
* 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 PA165.language_school_manager.mvc.controllers;
import PA165.language_school_manager.DTO.PersonAuthenticateDTO;
import PA165.la... |
package com.xianzaishi.wms.tmscore.vo;
import com.xianzaishi.wms.tmscore.vo.WavePoolDetailVO;
public class WavePoolDetailDO extends WavePoolDetailVO {
} |
package net.tanpeng.database.jdbc;
import java.sql.*;
public class JDBCDemo {
public static void main(String[] args) {
try {
Connection connection = getConnection();
Statement statement = connection.createStatement();
// 查询city表中所有的数据
try (ResultSet result... |
package hu.lamsoft.hms.androidclient.restapi.nutritionist.async;
import org.springframework.core.ParameterizedTypeReference;
import hu.lamsoft.hms.androidclient.restapi.common.async.AsyncCallback;
import hu.lamsoft.hms.androidclient.restapi.common.async.DTOPagerAsyncTask;
import hu.lamsoft.hms.androidclient.restapi.c... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
import java.util.StringTokenizer;
public class bj11724 {
public static void main(String[] args) throws IOException {
BufferedReader b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.