text stringlengths 10 2.72M |
|---|
public class telusku
{
public static void main(String[] args)
{
int i,j,k;
i=5;
j=7;
k=i+j;
System.out.println("The value of k is "+k);
System.out.println("The addition of "+i+" and "+j+" is "+k);
System.out.printf("The addition of %d and %d is %d \n",... |
package com.example.testo;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.c... |
package com.example.administrator.halachavtech.Motzar;
import android.graphics.Bitmap;
import java.io.Serializable;
/**
* This class represents motzar that we get from the server
* It implements {@link Serializable} interface in order to be able
* to pass through activities
* Note that private transient Bitmap bi... |
package com.family.Repository;
import com.family.model.Family;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface Familyrepo extends MongoRepository<Family,String> {
}
|
package isden.mois.magellanlauncher.pages;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.KeyEvent;
import android.view.LayoutInflat... |
package com.test.db.dao;
import java.util.ArrayList;
import com.test.db.dto.MemberDto;
public interface MemberDao {
public ArrayList<MemberDto> memberList();
public void memberJoin(String mName, String mPhone, String mAddr, String mJob);
public MemberDto view(int mIdx);
public void remove(int mIdx);
... |
package com.techlab.lskov;
public class MallardDuck extends Bird {
@Override
public void fly() {
System.out.println("I can fly at small distance");
}
}
|
package com.serenskye.flickrpaper.model;
/**
* Created by IntelliJ IDEA.
* User: seren
* Date: 08/09/12
* Time: 16:17
*/
public class PhotoVO {
private final String mUrl;
private final String mDescription;
private final String mAuthor;
private final String mTags;
private final long uid;
public PhotoVO(St... |
/*
子父类中的构造函数:
1.为什么子类一定要访问父类中的空参数的构造函数?
答:因为父类中的数据,子类可以直接获取;所以子类对象在建立时,
需要先查看父类是如何对这些数据进行初始化的,所以子类在对象初始化时,
要先访问一下父类中的构造函数;
如果要访问父类中指定的构造函数,可以通过手动定义super的方式来指定。
当父类中重写了构造函数,没有空参数的构造函数了,那么子类一定要显示的调用父类中改写的构造函数
注意:super也应该放在构造函数的第一行。如果子类中将this放在了第一行,那么就会调用this中的
super,本函数不用再写super。
结论:
子类中所有的构造函数,默... |
package task4;
import java.util.Date;
public class SpecialOffer {
Product product;
String offerDescription;
String startDate;
String endDate;
double discount;
SpecialOffer(Product offerForProduct, String specialOfferDescription, String offerStartDate, String offerEndDate, double offerDiscount... |
package testCode.ch9.question;
import java.util.Scanner;
/**
* Created by flyboy on 1/2/2017.
*/
public class ChoiceQuestionTester {
public static void main(String[] args) {
ChoiceQuestion cq1 = new ChoiceQuestion();
cq1.setText("What's the first name of Java");
cq1.setChoice(... |
package ve.com.mastercircuito.objects;
public class Caliber {
private Integer id;
private Integer caliber;
public Caliber() {
super();
}
public Caliber(Integer id, Integer caliber) {
super();
this.id = id;
this.caliber = caliber;
}
public Integer getId() {
return id;
}
pub... |
package com.developers.quickjob.quick_job;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Button;
import android.widget.DatePicker;
... |
package chc;
public class TestClean {
private static Hypothesis[] hypo = new Hypothesis[10];
private static int[] iii = {1,1,1,1,1,1,1,1};
private static Hypothesis h = new Hypothesis(0, iii);
public static void main(String[] args) {
hypo[0] = h;
for (int i = 1; i < hypo.length; i++) {
hypo[i] ... |
package edu.action.evaluation;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import com.db.dao.evaluation.LoginDao;
import edu.servlet.HttpRequestUtil;
public class LoginCheck {
public static String getId(final HttpServletRequest req) throws Exception ... |
package com.m3.training.inventoryproject;
public class Item {
private int ID;
private String itemName;
private int quantity;
public Item() {
}
public Item(String itemName, int quantity) {
this.itemName = itemName;
this.quantity = quantity;
}
public Item(int ID, String itemName, int quantity) {
this.... |
package com.tencent.mm.plugin.appbrand.jsapi.j;
import com.tencent.mm.plugin.appbrand.jsapi.j.e.b;
class e$b$2 implements Runnable {
final /* synthetic */ b fXl;
e$b$2(b bVar) {
this.fXl = bVar;
}
public final void run() {
b.a(this.fXl);
}
}
|
package com.tencent.mm.plugin.facedetect.c;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
class c$2 implements OnClickListener {
final /* synthetic */ int bFq;
final /* synthetic */ int bFr;
final /* synthetic */ String dJG;
final /* synthetic */ c iMZ;
... |
package org.basic.comp.abst;
import com.global.App;
import com.global.util.Load;
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.record.impl.ODocument;
import org.basic.comp.adapter.TableModelAdapter;
import org.basic.dao.adapter.DaoInterface;
... |
package com.example.screeningapplication;
/**
* Created by tpf on 2018-08-17.
*/
public class Category {
public static final int CHAIRMAN = 0; //是主席
public static final int NON_CHAIRMAN = 1; //是非主席
public static final int SAME_NAME = 2; //用户名重复
public static final int DIFFERENT_NAME = 3; //用户名不重复
... |
package com.tenant.dal;
import java.util.List;
import java.util.Map;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
import com.google.common.collect.Maps;
import com.tenant.framework.CurrentTenant;
import com.tenant.framework.NoCurrentTenantException;
import com.tenant.framework.TenantI... |
package de.uni_luebeck.itm.itp2017.gruppe2.PiLib;
import org.kohsuke.args4j.CmdLineParser;
import de.uni_luebeck.itm.itp2017.gruppe2.PiLib.tasks.FaceTask;
import de.uni_luebeck.itm.itp2017.gruppe2.PiLib.tasks.SoundTask;
import de.uni_luebeck.itm.itp2017.gruppe2.PiLib.util.Configuration;
/**
* Start-Point
*/
public... |
package ch.fhnw.edu.cpib.cst;
import ch.fhnw.edu.cpib.cst.interfaces.ICastOpr;
import ch.fhnw.edu.cpib.cst.interfaces.IFactor;
// factor ::= castOpr factor
public class FactorCastOpr extends Production implements IFactor {
protected final ICastOpr N_castOpr;
protected final IFactor N_mfactor;
public Fact... |
package com.philippe.app.service.avro;
import org.apache.avro.specific.SpecificRecord;
import java.io.IOException;
public interface AvroCodecService<T extends SpecificRecord> {
/**
* Encodes an Avro object to a byte[].
*
* @param message - Avro object which needs to be encoded.
* @return byt... |
package it.unical.asd.group6.computerSparePartsCompany.core.services;
import it.unical.asd.group6.computerSparePartsCompany.data.dto.PurchaseNoticeDTO;
import it.unical.asd.group6.computerSparePartsCompany.data.entities.Customer;
import it.unical.asd.group6.computerSparePartsCompany.data.entities.PurchaseNotice;
impo... |
package org.switchyard.quickstarts.publish.as.webservice;
import org.switchyard.component.bean.Service;
@Service(value = HelloWorldPubService.class, componentName = "ESBServiceSample")
public class ESBWSListenerAction implements HelloWorldPubService {
public String displayMessage(String message) {
if... |
package com.tencent.mm.plugin.mmsight.ui;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
class MMSightRecordButton$2 extends AnimatorListenerAdapter {
final /* synthetic */ MMSightRecordButton loJ;
final /* synthetic */ AnimatorListenerAdapter loL = null;
MMSightReco... |
import java.util.ArrayList;
public class Student {
private String lastName;
private String firstName;
private int studentID;
private final ArrayList<Course> registeredCourses = new ArrayList<Course>();
public Student()
{
}
public Student(String lastName, String firstName, int studentID) {
this.lastName... |
package LightProcessing.common.item;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecr... |
package herencia;
import java.util.Scanner;
/**
*
* @author OHMASTER
*/
public class Dog {
String name;
double weight;
String colour;
void LlenarDatosPerro() {
Scanner sc = new Scanner(System.in);
System.out.println("Ingresa el nombre del perro");
name = sc.nextLine();
... |
package com.ibm.ive.tools.japt;
import java.io.*;
/**
* Represents a resource found on the classpath, or a resource yet to be created
*/
public abstract class Resource {
protected Resource() {}
/**
* @return the time of the last modification to this resource in milliseconds since the epoch
*/... |
/**
* ファイル名 : VSM16010XService.java
* 作成者 : nv-manh
* 作成日時 : 2018/05/31
* Copyright © 2017-2018 TAU Corporation. All Rights Reserved.
*/
package jp.co.tau.web7.admin.supplier.services;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.javanile.me.chess.engines;
/**
*
* @author cicciodarkast
*/
public class Node {
private char[][] board;
private int turn = 0;
private Square focus_square;
public Node() { ... |
package com.tencent.mm.plugin.scanner.util;
import android.content.Intent;
import android.widget.Toast;
import com.tencent.mm.g.a.op;
import com.tencent.mm.plugin.scanner.b;
import com.tencent.mm.pluginsdk.wallet.h;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class e$5 imple... |
package Domain;
/**
* @author Samuel
*/
public class Fee{
private long fee;
private String carDescription;
public Fee() {
}
public Fee(long fee, String description) {
this.fee = fee;
this.carDescription = description;
}
public long getFee() {
return fee;
}
... |
package org.rebioma.client;
import java.util.List;
import org.rebioma.client.bean.AscModel;
import com.google.gwt.user.client.rpc.IsSerializable;
public class AscModelResult implements IsSerializable {
private List<AscModel> results;
private int count;
public AscModelResult() {
}
publ... |
package odeSolver;
import Exceptions.WrongInputException;
public class EulerExplicitRK extends RangeKutta {
public EulerExplicitRK (DifferentialEquation diff) throws WrongInputException {
super (diff, "EulerExplicitRK", "explicit", "1", 1);
}
@Override
/**
* 0 | 0
* --|--
* | 1
*/
protected v... |
/**
* Copyright 2012 Marin Solutions
*/
package pl.finsys.controlerAdvice;
import org.springframework.stereotype.Component;
@Component
public class UserDao {
public User readUserName() {
return new User("John", "Doe");
}
}
|
/*
* Copyright (c) 2009-2011 by Bjoern Kolbeck,
* Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.osd.operations;
import java.io.IOException;
import java.util.List;
import org.xtreemfs.common.Capability;
import org.xtreemfs.common.... |
package com.argentinatecno.checkmanager.main.fragment_add;
import android.content.Context;
import com.argentinatecno.checkmanager.db.DataBaseController;
import com.argentinatecno.checkmanager.entities.Check;
import com.argentinatecno.checkmanager.lib.base.EventBus;
import com.argentinatecno.checkmanager.main.fragment... |
import java.util.*;
class ClosetKPoints {
class Point {
int x;
int y;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
}
public List<Point> findClosetKPoints(Point[] points, int k) {
quickSelect(points, 0, points.length - 1, k);
List<Point> result = new LinkedList<>();... |
package com.example.mayank.rock_paper_scissor;
import android.Manifest;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.locatio... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.geosolutions.fra2015.server.dao.impl;
import it.geosolutions.fra2015.server.dao.SurveyDAO;
import it.geosolutions.fra2015.server.model.survey.SurveyInstance;
import java.util.Arrays;
import java.util.List;
... |
package com.jack.apiest.source;
import com.jack.apiest.beans.SensorReading;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.streaming.api.functions.source.SourceFunction;
import java.util.HashMap;
import... |
package com.ibiscus.myster.service.data;
import com.ibiscus.myster.model.company.Country;
import com.ibiscus.myster.model.company.State;
import com.ibiscus.myster.repository.data.CountryRepository;
import com.ibiscus.myster.repository.data.StateRepository;
public class ReferenceDataService {
private final Countr... |
import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
/**
* This class holds the VIEW of "class home" for a class, which can also be called the
* "summary view" of the class. You can see each category for the class -- categories can be
* homework, exams, pr... |
package cn.rongcloud.im.utils;
import android.content.SharedPreferences;
/**
* Created by nakisaRen
* on 16/9/8.
*/
public class SPUtils {
private static SharedPreferences mSp;
public static void init(SharedPreferences sharedPreferences) {
mSp = sharedPreferences;
}
public static void u... |
package com.xuecheng.manage_media.service.impl;
import com.xuecheng.framework.domain.media.MediaFile;
import com.xuecheng.framework.domain.media.request.QueryMediaFileRequest;
import com.xuecheng.framework.model.response.CommonCode;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng... |
package io.swagger.service;
import org.threeten.bp.OffsetDateTime;
import java.util.List;
import io.swagger.model.Graphic;
public interface GraphicService {
public boolean check(Graphic graphic);
public Long add(Graphic graphic);
public boolean update(Graphic graphic);
public Graphic get... |
package com.mj147.tictactoeai.service;
import com.mj147.tictactoeai.domain.Board;
import com.mj147.tictactoeai.domain.Player;
import com.mj147.tictactoeai.domain.Square;
public interface PlayerService {
Player createPlayer(int squareValue);
Player whoseTurn(Square square);
Square makeRandomMove(Board b... |
package com.srikanth.functional.Functions;
import java.util.function.Function;
public class B_LambdaExpression {
public static void main(String[] args) {
// Define a lambda function as
Function<Integer, Integer> doubleUp =
(Integer x) -> { // Taking integer
... |
package com.cxjd.nvwabao.fragment.findFunctions.OneHundred;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridL... |
package pubsub;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
/**
* @date 2019/9/26 20:57
* @author: <a href=mailto:xuzj@bonree.com>胥智钧</a>
* @Description:
**/
public class Test {
public static void ... |
package com.cibertec.repositorio;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.cibertec.entidad.Pedido;
public interface PedidoRepositorio extends JpaRe... |
package com.per.iroha.netty;
import com.alibaba.fastjson.JSON;
import com.per.iroha.model.User;
import com.per.iroha.model.WebSocketMessage;
import com.per.iroha.redis.RedisMq;
import com.per.iroha.service.MessageService;
import com.per.iroha.service.impl.MessageServiceImpl;
import io.netty.buffer.ByteBuf;
import io.n... |
package task163;
/**
* @author Igor
*/
public class Main163 {
}
|
package com.smxknife.proxy.cglib;
/**
* @author smxknife
* 2021/6/22
*/
public class CglibMain {
public static void main(String[] args) {
final HelloService helloService = new HelloServiceMethodInterceptor().getInstance(HelloService.class);
helloService.sayHello("你好");
System.out.println(helloService.getWord... |
package com.jim.multipos.data.operations;
import com.jim.multipos.data.db.model.intosystem.OutcomeWithDetials;
import com.jim.multipos.data.db.model.intosystem.StockQueueItem;
import com.jim.multipos.data.db.model.inventory.IncomeProduct;
import com.jim.multipos.data.db.model.inventory.OutcomeProduct;
import com.jim.m... |
package cdn.discovery;
import cdn.shared.GlobalLogger;
/**
* Parses the arguments and does some sanity checks on them.
*
* @author myles
*
*/
public class DiscoveryArgumentParser {
private final String[] args;
private int portNum;
private int refreshInterval;
public DiscoveryArgumentParser(Strin... |
/*
* This software is licensed under the MIT License
* https://github.com/GStefanowich/MC-Server-Protection
*
* Copyright (c) 2019 Gregory Stefanowich
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... |
package net.jselby.pc.accounts;
/**
* A users profile.
*
* @author j_selby
*/
public class GameProfile {
private String accessToken;
private String clientToken;
private String username;
private String password;
private String name;
private String uuid;
public String getAccessToken() {
... |
package pm.server.test;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class IntegrationTestConfiguration {
@Bean
public IntegrationTestStaticData integrationTestStaticData() {
return new IntegrationTestStaticData... |
package com.xrigau.droidcon.espresso.presentation;
import android.test.ActivityInstrumentationTestCase2;
import com.xrigau.droidcon.espresso.R;
import com.xrigau.droidcon.core.model.Post;
import static com.google.android.apps.common.testing.ui.espresso.Espresso.onData;
import static com.google.android.apps.common.te... |
public class HelloHooli {
public static void main(String[] args) {
System.out.println("Hello Hooli, Your Git repo is set");
}
}
|
package task41;
import common.Utils;
/**
* @author Igor
*/
public class Main41 {
public static void main(String[] args) {
System.out.println(solve(7, 0, 0, new int[7]));
}
static int solve(int max, int used, int n, int[] numbers) {
if (n == max) {
int x = 1, candidate = 0;
... |
package sellwin.server;
import java.sql.*;
import java.rmi.*;
import java.util.*;
import javax.ejb.*;
import javax.sql.*;
import javax.naming.*;
import sellwin.domain.*;
// SellWin http://sourceforge.net/projects/sellwincrm
//Contact support@open-app.com for commercial help with SellWin
//This software is provided "... |
/*
* 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 nuevorobot;
/**
*
* @author miguel
*/
public class Matriz {
//LISTA DE ARGUMENTOS
public static String esca... |
package com.example.entity.aircraft;
import javax.persistence.*;
@Entity
@Table(name = "airplane_model")
public class AirplaneModel {
private Long id;
private String code;
private String description;
private Manufacturer manufacturer;
@Id
@GeneratedValue
public Long getId() {
ret... |
package app.akexorcist.googlemapsv2;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
public class MenuNGV extends Activity{
Button btndetail;
Button btnroute;
Button btnnoti1;
Butto... |
// Title: RecipeStorer
// Author: Mark Walker
// Date: January 23, 2013
// School: Valencia High School
// Computer: Dell with Windows 7
// IDE Used: BlueJ
// Purpose: This class facilitates data storage of our needed variables for the Recipe storing program. Each instance of this class represents an individual
// rec... |
package ir.nrdc.model.repository;
import ir.nrdc.model.entity.Role;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import java.util.List;
import java.util.Optional;
@org.springframew... |
package com.quizcore.quizapp.model.network.response.user;
import com.quizcore.quizapp.model.other.UserQuizResult;
import lombok.Data;
import java.util.List;
@Data
public class UserQuizResponse {
List<UserQuizResult> submissions;
}
|
package com.example.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
public class ReadService {
private final Logger logger = LoggerFactory.getLogger("file-logger");
public Obj... |
package go.nvhieucs.notins.awss3;
import com.amazonaws.auth.*;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.amazonaws.services.s3.model.CannedAccessCo... |
/*
* Copyright (C) 2011-2014 Aestas/IT
*
* 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 ... |
package com.ssm.wechatpro.dao;
import java.util.List;
import java.util.Map;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
public interface WechatProductPackageChooseMapper {
/**
*
* 添加可选套餐分组
*/
public void AddWechatProductChooseGroup(Map<String, Object> map) throws Exception;
/**
* 添加可... |
package com.tencent.mm.s;
import com.tencent.mm.storage.aa.a;
public interface a$a {
void b(a aVar);
void gl(int i);
void gm(int i);
}
|
//------------------------------------
//-------Canvas через View------------
//------------------------------------
//Файл MainActivity.java:
package ru.startandroid.develop.p1411canvasview;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics... |
// Profiler
// Created By : Chris Taylor [C0SM0]
// utility modules
import java.util.Random;
import java.util.Scanner;
import java.util.InputMismatchException;
// time modules
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
// file editing modules
import java.io.File;
import ... |
package lotto.step1;
public class Calculator {
private String text;
private Validation validation;
private Delimiter delimiter;
private static final int NEGATIVE_NUMBER_CONDITION = 0;
private static final int PRINT_NUMBER = 0;
public Calculator(String text) {
this.text = text;
... |
package nl.hsleiden.gamepad.events;
public enum States {
PRESSED, RELEASED
}
|
package com.espendwise.manta.util.validation.rules;
import com.espendwise.manta.model.data.PropertyData;
import com.espendwise.manta.model.data.UserData;
import com.espendwise.manta.util.validation.ValidationRule;
import com.espendwise.manta.util.validation.ValidationRuleResult;
import org.apache.log4j.Logger;... |
import java.util.*;
/**
* 剑指 Offer 38. 字符串的排列
* Medium
* 应该做过类似的排列题,时间太久了就还是要重新想
*/
public class Solution {
private void recur(List<String> res, String str, List<String> chars) {
if (chars.size() == 0) {
res.add(str);
return;
}
Set<String> set = new HashSet<>();... |
package com.mighty.eurekacustomer.controller;
import com.mighty.eurekacustomer.service.HelloService;
import org.apache.coyote.Request;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMeth... |
package com.petersoft.mgl.connection;
import com.petersoft.mgl.model.*;
import javax.persistence.TypedQuery;
import java.util.List;
public class MainFrameQuery extends AbstractQuery {
public MainFrameQuery() {
}
public static List<Lepcso> getLepcsoList() {
open();
TypedQuery<Lepcso> q... |
package com.qiyi.openapi.demo.presenter;
public interface IBaseContrackPresenter {
}
|
package org.tc.aop;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class TestApp {
public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);
DemoAnnotationServiceImpl dem... |
package com.secoo.bigdata.kaggle.talkingdata.service;
import org.apache.commons.math3.distribution.PoissonDistribution;
import com.secoo.bigdata.kaggle.talkingdata.domain.Group;
public class ForecastAgeService {
public double[] forecast(double meanAge, double stdAge, double maleProbability, double femaleProbability... |
package com.question.service.impl;
import com.question.dao.TitleDao;
import com.question.model.Title;
import com.question.service.TitleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ... |
package com.example.membresia;
import com.example.membresia.entities.Membresia;
import com.example.membresia.entities.PagoMembresia;
import com.example.membresia.entities.Tarjeta;
import com.example.membresia.services.impl.MembresiaServiceImpl;
import com.example.membresia.services.impl.PagoMembresiaServiceImpl;
impor... |
package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax... |
package com.example.demo.service;
import com.example.demo.domain.Employee;
import com.example.demo.domain.EmployeePage;
import java.util.List;
public interface EmployeeService {
public List<Employee> selectBypage(EmployeePage page);
public int addEmployee(Employee employee);
public int deleteEmployee(int id);
... |
package org.gooru.dap.jobs.components;
import java.util.ArrayList;
import java.util.List;
public final class AppInitializer {
private AppInitializer() {
throw new AssertionError();
}
private static final List<InitializationAwareComponent> initializers = new ArrayList<>();
static {
... |
package com.service;
import com.domain.User;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.inject.Inject;
import javax.inject.Named;
import java.util.Objects;
/**
* Created by Michał on 2016-11-15.
*/
@Named
public class UserValidator implements Validat... |
package hirondelle.web4j.model;
import java.io.Serializable;
import java.util.List;
import javax.servlet.ServletException;
/**
Base class for most exceptions defined by WEB4J.
<P>Differs from most exception classes in that multiple error
messages may be used, instead of just one. Used in JSPs to in... |
<<<<<<< HEAD
import processing.core.PApplet;
import javax.swing.*;
public class Main extends PApplet {
static int n;
float x;
float y;
float r;
int c;
public void settings() {
fullScreen();
}
public void setup() {
frameRate(4);
}
public void draw() {
... |
/**
* ReservationInfoPrice.java $version 2018. 8. 14.
*
* Copyright 2018 NAVER Corp. All rights Reserved.
* NAVER PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.nts.pjt3.dto;
/**
* @author Seok Jeongeum
*
*/
public class ReservationInfoPrice {
private int id;
private int reservatio... |
/**
*
*/
package taller.excepciones;
/**
* @author agonzalez
*
*/
@SuppressWarnings("serial")
public class ErrorIdentificadorMecanicoNoValido extends Exception {
/**
*
*/
public ErrorIdentificadorMecanicoNoValido() {
// TODO Auto-generated constructor stub
}
/**
* @param arg0
... |
package fol.ast;
public class OrExpr extends Expr {
Expr left;
Expr right;
public OrExpr(Expr left, Expr right) {
super();
this.left=left;
this.right=right;
}
@Override
public String toString() {
return left.toString()+'+'+right.toString();
}
}
|
/**
*
*/
package de.zarncke.lib.sys.mbean;
import javax.management.MBeanRegistrationException;
import de.zarncke.lib.err.Warden;
import de.zarncke.lib.sys.Headquarters;
import de.zarncke.lib.sys.Health;
/**
* Exposes Headquarters state for monitoring.
*
* @author Gunnar Zarncke
*/
public class... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.