text stringlengths 10 2.72M |
|---|
/*
* 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 com.midashnt.taekwondo.app.mapper;
import com.midashnt.taekwondo.app.dto.WeightClass;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
@Repository
@Mapper
public interface WeightClassMapper {
String createWeightClass... |
/* ===========================================================================
Created: 2015/10/13 Thomas Nguyen - thomas_ejob@hotmail.com
Purpose: Test an online calculator using DataProvider from a CSV file
=========================================================================== */
package com.thomas.tests;
imp... |
package com.example.twoclasses;
/**
* @author Roman Katerinenko
*/
public class JavaAccessor {
public String callJavaClass() {
return new StringBuilder("1").append("2").toString();
}
}
|
package LC0_200.LC50_100;
import LeetCodeUtils.MyMatrix;
import org.junit.Test;
public class LC63_Unique_Paths2 {
@Test
public void test() {
System.out.println(uniquePathsWithObstacles(MyMatrix.IntMatrixAdapter("[[0,0,0],[0,1,0],[0,0,0]]", 3, 3)));
}
public int uniquePathsWithObstacles(int[... |
package edu.sit.bancodedados.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import edu.sit.bancodedados.conexao.Conexao;
import edu.sit.bancodedados.conexao.ConexaoException;
import... |
package com.ibm.ive.tools.japt.obfuscation;
import java.util.*;
import com.ibm.jikesbt.*;
import com.ibm.ive.tools.japt.*;
/**
* @author sfoley
*
*/
public class MultipleClassNameGenerator {
List list;
BT_ClassVector classes;
public class ListEntry {
int frequency;
String entry;
... |
package com.example.todo.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Res... |
class SparseVector {
HashMap<Integer, Integer> map;
SparseVector(int[] nums) {
map = new HashMap<>();
for (int i = 0; i < nums.length; i++) {
if (nums[i] != 0) {
map.put(i, nums[i]);
}
}
}
// Return the dotProduct of two sp... |
import java.io.IOException;
class Ttest{
//private static Cfunction c = new Cfunction();
private static 토끼 T = new 토끼();
static festival f = new festival();
public static void main(String[]args) throws IOException, InterruptedException{
//c.clsFunction();
new ProcessBuilder("cmd", "... |
package ca.mohawk.jdw.shifty.desktopclient.myshifts;
/*
I, Josh Maione, 000320309 certify that this material is my original work.
No other person's work has been used without due acknowledgement.
I have not made my work available to anyone else.
Module: desktop-client
Developed By: Josh Maione (0003203... |
package cz.cvut.fel.matyapav.afnearbystatus.nearbystatus.devicestatus.model.partial;
/**
* Network status model - keeps information about device connectivity and active network
*
* @author Pavel Matyáš (matyapav@fel.cvut.cz).
* @since 1.0.0..
*/
public class NetworkStatus {
private boolean connected;
pri... |
import java.io.IOException;
import java.nio.file.Paths;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.IndexReader;
import org.apache.luc... |
package frontend;
import backend.WeatherClient;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
public class UserInterface {
public void ui() throws InterruptedException, URISyntaxException, IOExcept... |
package com.example.ozangokdemir.movision.models;
import java.util.List;
public class InitialReviewResponse {
int id;
int page;
List<Review> results;
public List<Review> getReviewResults() {
return results;
}
}
|
package com.demo.test.configurer;
import com.demo.test.constant.Constant;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springf... |
function maxminAvg(arr)
{
var sum = 0;
var max = arr[0];
var min = arr[0];
for (var i = 0; i < arr.length; i++)
{
if (arr[i]>max)
{
max = arr[i];
}
}
for (var i = 0; i < arr.length; i++)
{
if (arr[i]<min)
{
min = arr[i];
}
}
for (var i = 0; i < arr.length; i++)
{
sum = sum + arr[i];
}
v... |
/*
* The purpose of this lab is to learn how to count specific
* occurances of values in an array.
*
* Author: Victor (Zach) Johnson
* Date: 10/29/17
*/
package chapter7;
public class Ex7_7 {
public static void main(String[] args) {
int[] counts = new int[10];
int randomNumber;
for(int i = 0; i < 1... |
public class Example4 {
public boolean equals(Example4 other) {
System.out.println("Inside of Test.equals");
return false;
}
@Override
public boolean equals(Object other) {
System.out.println("Inside @override: this is dynamic binding");
return false;
}
public s... |
package cn.it.homework6;
import org.apache.http.Header;
import org.json.JSONException;
import org.json.JSONObject;
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import cn.it.homework6.db.dao.DBUtils;
import cn.it.ho... |
package com.tencent.mm.plugin.account.friend.ui;
public interface h$a {
void ck(boolean z);
}
|
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* 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 tests;
import enums.PacketCommand;
import logging.*;
import remote.RemoteData;
import remote.Server;
public class LoggingTest {
public static void main(String[] args) throws InterruptedException {
RemoteData<Integer> intData = new RemoteData<>(PacketCommand.REQUEST_LATERAL_DISTANCE, Serve... |
package model.entities;
import java.io.Serializable;
import java.util.Objects;
/*
* Department entity class
*Entity class checklist:
* Attributes
* Constructors
* Getters/Setters
* hashCode and equals (APENAS o ID)
* toString
* implements Serializable
*/
public class Departamento implements Ser... |
package br.com.becommerce.core.inventory;
import java.time.ZonedDateTime;
import java.util.Optional;
import java.util.UUID;
import com.github.javafaker.Faker;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;
@Data
@Setter(AccessLevel.PROTECTED)
public class Inventory {
private String id;
... |
//import java.util.*;
interface Storage<E> {
public void insert();
public void remove();
public void contain();
public void size();
public void getAll();
public void addAll();
}
|
/**
* original(c) zhuoyan company
* projectName: java-design-pattern
* fileName: PandaFactory.java
* packageName: cn.zy.pattern.factory.deep
* date: 2018-12-09 18:36
* history:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package cn.zy.pattern.... |
/**
*/
package ErdiagramDSL;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Chen Weak Entity</b></em>'.
* <!-- end-user-doc -->
*
*
* @see ErdiagramDSL.ErdiagramDSLPackage#getChenWeakEntity()
* @model
* @generated
*/
public interface ChenWeakEntity extends ChenWeakElement {
} /... |
/*******************************************************************************
* =============LICENSE_START=========================================================
*
* =================================================================================
* Copyright (c) 2019 AT&T Intellectual Property. All rights res... |
package it.ozimov.seldon.core.algorithms.rounding;
import static java.lang.StrictMath.round;
import javax.annotation.Nonnull;
import it.ozimov.seldon.core.algorithms.Algorithm;
import it.unimi.dsi.fastutil.floats.FloatBigArrayBigList;
import it.unimi.dsi.fastutil.ints.IntBigArrayBigList;
/**
* @version 0.1.0
* ... |
package variaveis.casting;
public class Main {
public static void main(String[] args) {
// double - int
double pi = 3.14;
int intpi = (int) pi;
System.out.println(pi);
System.out.println(intpi);
// int - double
int i = 5;
double d2 ... |
import java.util.HashMap;
import java.util.Map;
class MapSum_677 {
HashMap<String, Integer> map;
TrieNodeV root;
public MapSum_677() {
map = new HashMap();
root = new TrieNodeV();
}
public void insert(String key, int val) {
int delta = val - map.getOrDefault(key, 0);
... |
package com.soup;
import java.util.ArrayList;
public class Command {
private String cmd;
private ArrayList<String> subs = new ArrayList<String>();
public Command(String command) {
if(command.contains(";")) {
cmd = command.substring(0, command.indexOf(';'));
if (command.co... |
package com.tencent.mm.plugin.wallet_core.ui;
class WalletOrderInfoNewUI$b {
public String bQa;
public String myq;
public String pjF;
public long pqh;
public String pwm;
public String pwn;
public String pwo;
public long pwp;
public String pwq;
public WalletOrderInfoNewUI$b(Stri... |
package com.e6soft.bpm.controllers;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springf... |
package com.tencent.mm.plugin.sns.f;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.plugin.sns.f.d.b;
import com.tencent.mm.plugin.sns.ui.a.a.c;
class c$2 implements OnClickListener {
final /* synthetic */ d$a nuk;
final /* synthetic *... |
package com.samyotech.laundry.interfaces;
import android.view.View;
public interface RecycleViewClickListner {
void onClick(View view, int position);
}
|
package com.zhouyi.business.core.service;
import java.io.*;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import javax.management.modelmbean.XMLParseException;
import com.zhouyi.business.core.common.ReturnCode;
import com.zhouyi.business.core... |
package in.kodecamp.web;
import java.util.Locale;
import java.util.logging.Logger;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.mvc.Controller;
import javax.mvc.Models;
import javax.mvc.MvcContext;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
/**
* @author hantsy
*/
@P... |
//package com.sprmvc.web.ch5.config;
//
//import com.sprmvc.web.ch5.filters.MyFilter;
//import com.sprmvc.web.ch5.services.AppConfig;
//import com.sprmvc.web.ch5.servlets.MyServlet;
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.web.WebApplicationInitializer;
//import org.sp... |
package com.kplibwork.libcommon;
import android.app.Activity;
import android.content.Context;
import android.os.Handler;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
import com.facebook.ads.AdError;
import java.util.Timer;
import java.util.TimerT... |
package com.webcloud.func.map;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.amap.api.services.core.PoiItem;
import com.w... |
import java.io.*;
import java.util.*;
import java.lang.*;
public class ReadFromFile{
public String read;
private Scanner x;
int aa;
int[] data = new int[6];
public void openFile(){
try{
x = new Scanner(new File("CarWashStats.txt"));
}
catch (Exception e){
System.out.... |
package com.fundwit.sys.shikra.authentication;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.server.reactive.ServerHttpRequest;
public class RequestHelper {
public static boolean isPostLoginPath(ServerHttpRequest request, String loginPath)... |
/*
* 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 may ... |
package com.ricex.cartracker.android.data.manager;
import com.j256.ormlite.stmt.QueryBuilder;
import com.ricex.cartracker.android.data.dao.RawReadingDao;
import com.ricex.cartracker.android.data.dao.RawTripDao;
import com.ricex.cartracker.android.data.entity.RawReading;
import com.ricex.cartracker.android.data.entity.... |
package com.tencent.mm.plugin.remittance.model;
import com.tencent.mm.protocal.c.xc;
import java.util.List;
public interface c {
void bW(List<xc> list);
}
|
package com.demo;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
public class MyReceiver2 extends BroadcastReceiver{
public void onReceive(Context context, Intent intent) {
String action = int... |
package com.nju.edu.cn.controller;
import com.alibaba.fastjson.JSON;
import com.nju.edu.cn.dao.ContractRepository;
import com.nju.edu.cn.dao.TradeRepository;
import com.nju.edu.cn.entity.Contract;
import com.nju.edu.cn.entity.Trade;
import com.nju.edu.cn.service.FileService;
import org.slf4j.Logger;
import org.slf4j.L... |
package com.redbus.utils;
import org.apache.log4j.Logger;
import org.testng.ITestResult;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import com.redbus.base.BaseClass;
import com.relevantcodes.extentreports.ExtentReports;
import com.re... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* MChecktool generated by hbm2java
*/
public class MChecktool implements java.io.Serializable {
private MChecktoolId id;
public MChecktool() {
}
public MChecktool(MChecktoolId id) {
this.id = id;
}
public MCheckto... |
public class CoffeeTest {
public static void main(String[] agrs) { // 데코레이터 패턴으로 코딩되어 있다! IOStream 또한 이렇게 데코레이터 패턴으로 코딩되어 있다
Coffee americano = new KenyaAmericano();
americano.brewing();
System.out.println();
Coffee kenyaLatte = new Latte(new KenyaAmericano());
kenyaLatte.brewing();
Syste... |
package com.imesne.office.excel.html;
import java.util.Collection;
import java.util.Map;
/**
* Created by liyd on 17/7/17.
*/
public class ExcelHtml {
private String beginFragment;
private String endFragment;
private String inlineStyle;
private Map<Integer, String> sheetHtmlMap;
public Stri... |
package arrays.module;
import java.util.Scanner;
public class MinimumElement {
private static Scanner scnanner = new Scanner(System.in);
public static void main(String[] args) {
System.out.println("Enter couunt");
int count = scnanner.nextInt();
scnanner.nextLine();
// int[] retu... |
package org.oscii.corpus;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Stream;
/**
* Indexed corpus.
*/
public class Corpus {
final Map<String, ... |
package com.tencent.mm.plugin.sysvideo.ui.video;
import android.os.Message;
import com.tencent.mm.sdk.platformtools.ag;
class VideoRecorderPreviewUI$2 extends ag {
final /* synthetic */ VideoRecorderPreviewUI ouS;
VideoRecorderPreviewUI$2(VideoRecorderPreviewUI videoRecorderPreviewUI) {
this.ouS = vi... |
package Domain.Effetti;
import Domain.Risorsa;
import java.io.Serializable;
/**
* Created by pietro on 18/05/17.
*/
public abstract class Effetto implements Serializable {
/**
* @param bonus
* @param malusRisorsa
* @return costo derivante dal malusRisorsa
* @apiNote per calcolare il malus... |
package com.chavhun.partlist.service;
import com.chavhun.partlist.dao.PartDao;
import com.chavhun.partlist.model.Part;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
import java.util.List;
@Service
public class PartServiceImpl implements PartService {
private PartDao part... |
package com.tencent.mm.ui.base;
import java.util.HashSet;
import java.util.Set;
public interface MMSlideDelView$d {
public static final Set<MMSlideDelView> kwC = new HashSet();
void a(MMSlideDelView mMSlideDelView, boolean z);
boolean aYk();
void aYl();
void aYm();
}
|
/**
* Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro
* Copyright: 2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package seava.ad.presenter.impl.security.model;
import seava.ad.domain.impl.security.AccessControl;
import seava.ad.domain.impl.security.AccessCo... |
package com.cjava.test;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.cjava.spring.service.Carrito;
//import com.cjava.spring.entity.Venta;
import com.cjava.spring.service.VentaService;
import com.cjava.spri... |
package coffeeMaker;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class LightTest {
@Test
void testLedOff_Off_Correct() {
Light indicator = new Light();
indicator.off();
assertEquals("OFF", indicator.state);
}
@Test
void testLedCycle_On_Correct() {
Light indicato... |
package io.bega.kduino.activities;
import android.app.Activity;
import android.os.Bundle;
import io.bega.kduino.fragments.help.UserSettingsFragment;
public class UserSettingsActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.... |
/**
* @author ${Prashanth Thipparthi}
*/
package com.example.demo;
/*
* This class represents the parameters of the request body while adding an application
*/
public class AddApplicationParameters {
private String job_id;
private String candidate_id;
private String status;
/*Getters and Setters of the pr... |
package c10.s01.t07;
import static org.junit.Assert.*;
import org.junit.Test;
public class StackTest {
Stack stack=new Stack(10);
@Test
public void test() throws Exception {
stack.push(10);
stack.push(20);
stack.push(30);
assertEquals(false, stack.isEmpty());
assertEquals(3, stack.size());
assertEqu... |
package org.rebioma.server.services;
import java.util.ArrayList;
import java.sql.Connection;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
i... |
package net.sourceforge.vrapper.vim.commands.motions;
import net.sourceforge.vrapper.platform.TextContent;
import net.sourceforge.vrapper.vim.commands.BorderPolicy;
public class LineEndMotion extends AbstractModelSideMotion {
private final BorderPolicy borderPolicy;
public LineEndMotion(BorderPolicy borderP... |
package de.jmda.gen.java.impl;
import java.util.ArrayList;
import java.util.List;
import de.jmda.gen.Generator;
import de.jmda.gen.impl.AbstractCompoundGenerator;
import de.jmda.gen.java.AnnotationStatementGenerator;
import de.jmda.gen.java.AnnotationStatementsGenerator;
import de.jmda.gen.java.DeclarationGenerator;
... |
package edu.ap.facilitytoolspringboot.repositories;
import edu.ap.facilitytoolspringboot.models.ExternalFirm;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ExternalFirmRepository extends MongoRepository<ExternalFirm, ... |
package cn.creable.android.demo;
import android.graphics.Canvas;
import android.widget.Toast;
import cn.creable.gridgis.controls.App;
import cn.creable.gridgis.controls.IMapTool;
import cn.creable.gridgis.controls.MapControl;
import cn.creable.gridgis.geometry.Point;
import cn.creable.gridgis.shapefile.Selector;
publ... |
package rhtn_homework;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
import java.util.StringTokenizer;
public class BOJ_1809_점프 {
public static void main(String[] args) throws IOException{
... |
/*
* Copyright (c) 2010 University of Tartu
*/
package org.jpmml.xjc;
import java.util.*;
import com.sun.codemodel.*;
import com.sun.tools.xjc.*;
import com.sun.tools.xjc.model.*;
import com.sun.tools.xjc.outline.*;
import org.xml.sax.*;
public class ValueConstructorPlugin extends Plugin {
private boolean ignor... |
package com.example.appfootball;
import com.example.appfootball.adapters.NewEventDetailsArrayAdapter;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
public class EventDetail... |
package com.onplan.service;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.common.collect.Range;
import com.onplan.adviser.AdviserPredicateInfo;
import com.onplan.adviser.AlertInfo;
import com.onplan.adviser.TemplateIn... |
package eu.lsem.bakalarka.service;
import eu.lsem.bakalarka.model.PieChart;
import eu.lsem.bakalarka.model.*;
import eu.lsem.bakalarka.model.ColumnChart;
import eu.lsem.bakalarka.dao.categories.CategoryDao;
import eu.lsem.bakalarka.dao.ThesesDao;
import java.io.*;
import java.util.List;
import java.util.Map... |
class if_Test1 {
public static void main(String ar[]){
int a=3;
if (a>0){
System.out.println("¾ç¼ö");
}
}
}
|
package com.tencent.mm.plugin.ab;
import com.tencent.mm.ab.l;
import com.tencent.mm.ao.b;
import com.tencent.mm.ao.e;
import com.tencent.mm.ao.f;
import com.tencent.mm.bt.h.d;
import com.tencent.mm.kernel.api.bucket.c;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.p;
import com.tencent.mm.plugin.messenge... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* MBatchnumBarcode generated by hbm2java
*/
public class MBatchnumBarcode implements java.io.Serializable {
private MBatchnumBarcodeId id;
private long barcode;
private Long maxsn;
public MBatchnumBarcode() {
}
publi... |
package com.br.cortex.cambio.application.domain.model;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class Data {
private LocalDate value;
private DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM-dd-yyyy");
public Data(LocalDate value) {
this.value = ... |
package cs455.scaling.server.workers;
import java.io.IOException;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.security.MessageDiges... |
package com.team6.app;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.sprin... |
package Second;
/*
return有两个基本用途
1、返回方法的返回值
2、终止当前程序
*/
public class ReturnDemo {
public static void main(String[] args) {
System.out.println(get());
for(int i = 0;i < 10; i++){
System.out.println(i);
if (i==5){
//return 和下面功能一样
System.exit(... |
package jvm;
import java.util.ArrayList;
import java.util.List;
/**
* @author yinchao
* @date 2020/4/9 18:29
*/
public class GCTest {
/**
* -XX:+PrintTenuringDistribution 每次 Mainor GC 的时候输出年龄
* -XX:+PrintCommandLineFlags
* -Xms10m
* -Xmx10m
* -XX:NewSize=256k
* -XX:SurvivorRatio=... |
package com.graphql.test.model;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
@Build... |
package com.olfu.meis.data;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by mykelneds on 13/12/2016.
*/
public class EZSharedPreferences {
private final static String USER_PREFERENCES = "MarikinaEIS";
public final static String KEY_MAGNITUDE = "Magnitude";
p... |
package models.user;
import models.academics.OfferedCourse;
import models.academics.coursework.TakenCourse;
import javax.persistence.*;
import java.util.List;
@Entity
@DiscriminatorValue("STU")
public class Student extends BasicUser {
public Integer departmentNo;
@OneToMany(mappedBy = "student", cascade = ... |
package com.nmoumoulidis.opensensor.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import com.nmoumoulidis.opensensor.model.processing.DateManager;
import com.nmoumoulidis.opensensor.view.SensorStationActivity;
import android.content.Context;
import android.database.Cursor;
i... |
package com.psl.flashnotes.bean;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class CompositeId2 implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@Column(name = "answerId")
private int ... |
package com.spring.domain;
import java.util.List;
public class MultiChequeInvoice {
List<ChequeInventory> chequeList;
List<Transaction_Process> transaction_ProcessList;
public List<ChequeInventory> getChequeList() {
return chequeList;
}
public void setChequeList(List<ChequeInventory> chequeList... |
package crossing.strategy;
import bplusTree.BPlusTree;
import common.TimeInForce;
import crossing.TestOrderEntryFactory;
import leafNode.OrderEntry;
import leafNode.OrderList;
import leafNode.OrderListImpl;
import orderBook.OrderBook;
import org.joda.time.DateTime;
import org.junit.Test;
import static org.junit.Asser... |
package com.cg.mobilebilling.daoservices;
import java.util.List;
import com.cg.mobilebilling.beans.Bill;
import com.cg.mobilebilling.beans.Customer;
import com.cg.mobilebilling.beans.Plan;
import com.cg.mobilebilling.beans.PostpaidAccount;
import com.cg.mobilebilling.exceptions.BillingServicesDownException;
... |
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* Created by zhongjian on 2016/11/23.
* 0/1背包问题,动态规划
*/
public class DKNAP {
/**
* 物品数量
*/
private int n;
/**
* 物品效益
*/
private int[] p;
/**
* 物品重量
*/
priva... |
package com.bit.myfood.controller.api;
import com.bit.myfood.controller.CrudController;
import com.bit.myfood.model.entity.Item;
import com.bit.myfood.model.network.request.ItemApiRequest;
import com.bit.myfood.model.network.response.ItemApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bin... |
package org.seckill.service;
import org.seckill.dto.SeckillResponse;
import org.seckill.entity.SecKill;
import org.seckill.exception.RepeatKillException;
import org.seckill.exception.SeckillCloseException;
import org.seckill.exception.SeckillException;
import java.util.List;
/**
* <pre>
* desc :业务接口: 站在""
* autho... |
package com.lbsp.promotion.entity.enumeration;
public class ExceptionCode {
public static final int AuthKeyNotExistException = 97;
public static final int PasswordErrorException = 98;
public static final int DuplicateKeyException = 99;
public static final int OrderNotFoundException = 200;
public static final int ... |
package com.swqs.schooltrade.activity;
import com.swqs.schooltrade.R;
import com.swqs.schooltrade.fragment.BuyDetailsFragment;
import com.swqs.schooltrade.fragment.SellDetailsFragment;
import android.app.Activity;
import android.app.FragmentTransaction;
import android.os.Bundle;
public class BuyAndSelledAc... |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package edu.tsinghua.lumaqq.ecore.option;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Message Option</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are su... |
/*
* @project: (Sh)ower (R)econstructing (A)pplication for (M)obile (P)hones
* @version: ShRAMP v0.0
*
* @objective: To detect extensive air shower radiation using smartphones
* for the scientific study of ultra-high energy cosmic rays
*
* @institution: University of California, Irvine
* @de... |
package other;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Stack;
public class MergeOverlappingIntervals {
public class Interval {
int start;
int end;
Interval() {
start = 0;
end = 0;
}
Interval(int s, int e) {
... |
package logic.game;
import util.MyStringUtils;
public class GamePrinter {
Game game;
int dimX;
int dimY;
String[][] board;
final String space = " ";
/** Constructor de GamePrinter */
public GamePrinter(Game game, int dimX, int dimY) {
this.game = game;
this.dimX = dimX;
this.d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.