text
stringlengths
10
2.72M
package com.awstechguide.cms.springjpah2.rest; public class PermissionRestController { }
package com.master; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; /** * Created by Administrator on 2015/2/6. */ public class BaseActivty extends AppCompatActivity { private Toolbar mActionBarToolbar; @Override protected void onCre...
package be.openclinic.healthrecord; import be.mxs.common.util.db.MedwanQuery; import be.mxs.common.util.system.ScreenHelper; import java.sql.Connection; import java.sql.Timestamp; import java.sql.ResultSet; import java.sql.PreparedStatement; import java.util.Vector; import java.util.Hashtable; /** * Created by Inte...
package com.google; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindAll; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.How; import java.util.List; public class GoogleFirstPF { private WebDriver wd; ...
package uow.finalproject.webapp.controllers; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class WebController { @RequestMapping(value= {"/", "index"}) public String index() { return "index"; } /* @RequestMapping(value= {"/...
/* * ################################################################ * * ProActive Parallel Suite(TM): The Java(TM) library for * Parallel, Distributed, Multi-Core Computing for * Enterprise Grids & Clouds * * Copyright (C) 1997-2011 INRIA/University of * Nice-Sophia Antipolis/ActiveEon ...
package com.amundi.tech.onsite.model.usage; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.time.LocalDate; import java.util.Set; @Data @Builder @NoArgsConstructor @AllArgsConstructor public class RestaurantUsageReport implements RestaurantUsa...
/* ### PROGRAMMKOPF ### Lineare Programmierung Aufgabe 3 FS23 Marc Freytag Version: 1.3 20121019 Berechnung des Bezugspreises für Einzelhändler ### ENDE PROGRAMMKOPF ### */ // class aslp3 wird eingeleitet public class aslp3 { // ### HAUPTFUNKTION ### public static voi...
package com.si.ha.vaadin.security; import jcifs.dcerpc.msrpc.netdfs; import com.si.ha.vaadin.security.LoginComp.LoginListener; import com.vaadin.ui.Alignment; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.TabSheet; import com.vaadin.ui.VerticalLayout; public class LandingPage extends CustomComponent { ...
package com.common.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import java.util.List; /** * Generic ListView adapter, but currently only supports the single layout of the form, * the follow-up will increase the layout of the s...
/* StandardThemeProvider.java {{IS_NOTE Purpose: Description: History: Mar 17, 2011 8:49:08 AM }}IS_NOTE Copyright (C) 2011 Potix Corporation. All Rights Reserved. {{IS_RIGHT This program is distributed under LGPL Version 2.1 in the hope that it will be useful, but WITHOUT ANY WARRANTY. ...
package de.scads.gradoop_service.server.helper.constructor; import java.util.List; import java.util.Map; import org.gradoop.flink.io.impl.json.JSONDataSource; import org.gradoop.flink.util.GradoopFlinkConfig; import org.uni_leipzig.biggr.builder.GraphObjectType; import org.uni_leipzig.biggr.builder.InvalidSettingsEx...
package com.alura.exception; public class AutenticacaoNotFoundException extends RuntimeException{ public AutenticacaoNotFoundException(String message){ super(message); } }
package com.karya.service; import java.util.List; import com.karya.model.Budget001MB; import com.karya.model.BudgetAccountType001MB; import com.karya.model.BudgetMonthlyDistribution001MB; import com.karya.model.BudgetVarianceReport001MB; import com.karya.model.CostCenter001MB; public interface IBudgetCostCenterServi...
package com.snowinpluto.tools.generator; import com.google.common.base.Strings; import com.google.inject.Inject; import com.google.inject.Singleton; import com.snowinpluto.tools.Constants; import com.snowinpluto.tools.analysis.BeanSnapshot; import com.snowinpluto.tools.analysis.ColumnType; import com.snowinpluto.tools...
// Sample Java code for user authorization import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.googleapis.auth.oauth2.GoogleCredential; import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; import com.google.api.client.googleapis.json.GoogleJsonResponseException; import ...
package com.sshfortress.dao.system.mapper; import java.util.List; import com.sshfortress.common.beans.SysRoleMenu; public interface SysRoleMenuMapper { int deleteByPrimaryKey(Long id); int insert(SysRoleMenu record); int insertSelective(SysRoleMenu record); SysRoleMenu selectByPri...
package com.example.isvirin.storeclient.data.entity.daoconverter; import org.greenrobot.greendao.converter.PropertyConverter; public class ProductTypeConverter implements PropertyConverter<ProductType, String>{ @Override public ProductType convertToEntityProperty(String databaseValue) { return Produc...
public class MyLockExample { private MyLock lock = new MyLock(); private int counter = 0; private class Runner implements Runnable { public void run() { for (int i = 0; i < 1000; i++) { lock.lock(); counter++; lock.unlock(); } } } public void runExample() { Runner r = new R...
package me.hotjoyit.user.dao; import me.hotjoyit.user.domain.Level; import me.hotjoyit.user.domain.User; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.spri...
package edu.fudan.ml.classifier.struct.inf; import edu.fudan.ml.classifier.Predict; import edu.fudan.ml.classifier.linear.inf.Inferencer; import edu.fudan.ml.types.Instance; /** * 抽象最优序列解码器 * @author Feng Ji * */ public abstract class AbstractViterbi extends Inferencer { private static final long...
package xyz.noark.core.lock; import xyz.noark.core.exception.UnrealizedException; import xyz.noark.core.util.ThreadUtils; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; /** * 分布式锁. * * @author 小流氓[176543888@qq.com] */ public abstract class DistributedLock implements Lock, Au...
package com.beike.action.lucene.search; import java.net.URLDecoder; import java.util.List; import java.util.Map; import java.util.regex.Pattern; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.apache.log4j....
package org.gaoshin.openflier.util; import java.lang.reflect.Field; public interface FieldFoundCallback { void field(Object o, Field field) throws Exception; }
package Models; public class Aititseis { private String TuposAitisis; public Aititseis(String TuposAitisis) { this.TuposAitisis = TuposAitisis; } public String getTuposAitisis() { return TuposAitisis; } public void setTuposAitisis(String Tupos...
package model; public interface Figur { public abstract double berechneUmfang(); public abstract double berechneFlache(); }
package fj.swsk.cn.eqapp.main.C; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.BitmapDrawable; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.PopupW...
package slimeknights.tconstruct.library.client; import com.google.common.collect.Lists; import net.minecraft.item.ItemStack; import org.lwjgl.util.Point; import java.util.List; import javax.annotation.Nonnull; import slimeknights.tconstruct.library.tinkering.TinkersItem; public class ToolBuildGuiInfo { @Nonnu...
/** * MIT License * <p> * Copyright (c) 2017-2018 nuls.io * <p> * 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, ...
package com.demo.services; import com.demo.model.Group; import com.demo.model.User; import com.demo.repositories.GroupRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.u...
package com.arrays; public class BinarySearchInArrayIterative { public static void main(String[] args) { int a[] = {12,23,34,45,56,67,78,89,99}; BinarySearchInArrayIterative b = new BinarySearchInArrayIterative(); int i = b.binarySearchArrayIterative(a,2); if (i == -1) { System.out.println("value...
package com.test.hplus.converters; import org.springframework.core.convert.converter.Converter; import com.test.beans.Gender; public class StringToEnumConverter implements Converter<String, Gender>{ @Override public Gender convert(String source) { // TODO Auto-generated method stub if(source.equalsIgnoreCase(...
/* * 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 tccthainan; import guarana.framework.message.Message; import guarana.toolkit.engine.Scheduler; import guarana.util.xml.XMLHand...
package config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.context.annotation.Import; import org.springframework.context.annotation.PropertySource; @org.springframework.context.annotation.Configuration @...
package maven_ssm.generation.mappers; import java.util.List; import java.util.Map; import maven_ssm.generation.entity.FieldEntity; public interface FieldMapper { List<FieldEntity> findFieldByTable(Map<String,String> map); }
package tw.org.iii.AbnerJava; public class Seventh { public static void main(String[] args) { // TODO Auto-generated method stub int a[][] = new int[4][13]; } }
package com.xsc.springbootintegration.service; import com.xsc.springbootintegration.common.IPUtil; import com.xsc.springbootintegration.model.Article; import com.xsc.springbootintegration.model.Setting; import com.xsc.springbootintegration.repository.ArticleRepository; import org.slf4j.Logger; import org.slf4j.LoggerF...
package com.edu.realestate.dao; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import java.util.ArrayList; import java.util.List; import org.hibernate.Session; import org.hibernate.jdbc.ReturningWork; import org.springfram...
package com.cs.casino.promotion; import com.cs.audit.AuditService; import com.cs.audit.PlayerActivityType; import com.cs.casino.security.CurrentPlayer; import com.cs.casino.security.PlayerUser; import com.cs.player.PlayerService; import com.cs.promotion.PlayerPromotion; import com.cs.promotion.Promotion; import com.cs...
package AnnotationsInTestNG; import org.testng.annotations.Test; import org.testng.annotations.BeforeMethod; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.Reporter; import org.testng.annotat...
package cn.kim.common.attr; /** * Created by 余庚鑫 on 2019/3/27 * 全局URL */ public class Url { /** * URL地址 */ public static final String MANAGER_URL = "admin/"; public static final String EDIT_USER = MANAGER_URL + "editUser"; public static final String EDIT_PASSWORD = MANAGER_URL + "editPwd";...
package blog.dreamland.com.service.impl; import blog.dreamland.com.common.PageHelper; import blog.dreamland.com.dao.UserContentMapper; import blog.dreamland.com.entity.Comment; import blog.dreamland.com.entity.UserContent; import blog.dreamland.com.service.UserContentService; import org.apache.commons.lang3.StringUtil...
/* * Copyright 2016 TeddySoft Technology. All rights reserved. * */ package tw.teddysoft.gof.Composite; public class LineBullet extends Bullet { @Override public void fire() { System.out.println("發射直線子彈."); } }
package suppliers; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import java.util.HashMap; import java.util.Map; public class MoodleLoginSupplier implements LoginSupplier { @Override public Map<String, String> login(String url, String username, String password) throws Exception { ...
import java.io.File; import java.util.Scanner; import java.io.FileWriter; public class main { public static void main(String[] args) { File f = new File("Result.txt"); try{ Scanner in = new Scanner(System.in); //Make Scanner object String name; int sub1,sub2,sub3,sub4,sub5; FileW...
package ru.vyarus.dropwizard.guice.module.context.debug.report.stat; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import ru.vyarus.dropwizard.guice.module.GuiceyConfigurationInfo; import ru.vyarus.dropwizard.guice.module.context.ConfigItem; import ru.vyarus.dropwizard.guice.module.context.Filters; import...
package de.haydin.model.entities; import java.io.Serializable; import java.util.Date; /** * * @author aydins */ public class DataJoke implements Serializable { int joke_id; String category; int user_id; String date; String joke; short rating; int numRating; int numComments; boo...
package nl.guuslieben.circle.persistence; import org.springframework.data.repository.CrudRepository; public interface UserRepository extends CrudRepository<PersistentUser, String> { }
package com.oracle.iot.sample.mydriveapp.service; import android.app.Notification; import android.app.PendingIntent; import android.arch.lifecycle.LifecycleService; import android.arch.lifecycle.Observer; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import and...
package com.pooyaco.person.bs; import com.pooyaco.gazelle.bs.BaseServiceImpl; import com.pooyaco.person.da.PersonDao; import com.pooyaco.person.dto.PersonDto; import com.pooyaco.person.entity.Person; import com.pooyaco.person.si.PersonService; import org.springframework.stereotype.Service; /** * Created wi...
package com.dassa.service; import java.util.ArrayList; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.dassa.mapper.FaqMapper; import com.dassa.vo.FaqPageData; import com.dassa.vo.FaqVO; import com.dassa.vo.NoticePageData; import com.dassa.vo.NoticeVO; import com.dassa.vo...
package com.beike.dao.adweb; import com.beike.common.entity.adweb.AdWeb; import com.beike.dao.GenericDao; /** * <p>Title:广告联盟 </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2011</p> * <p>Company: Sinobo</p> * @date Feb 29, 2012 * @author ye.tian * @version 1.0 */ public interface Ad...
package pers.mine.scratchpad; import cn.hutool.core.exceptions.ExceptionUtil; import cn.hutool.http.HttpUtil; import java.net.http.HttpClient; public class Application { public static void main(String[] args) throws InterruptedException { Thread.UncaughtExceptionHandler ueh = (t, e) -> { Str...
package controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller @RequestMapping("/search/") public class SearchController { ModelAndView mv = new ModelAndView(); @Req...
package com.pawelv.basecrm.model; import java.util.List; import junit.framework.Assert; 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.supp...
package classesState; import lab6.Pessoa; public class TomarPrimeiraDose extends EstadoVacinacao { @Override public void alteraEstado(Pessoa pessoa) { pessoa.setEstadoVacinacao(new TomouPrimeiraDose()); pessoa.atualizaEstadoVacina(pessoa); } @Override public String toString() { return "A pessoa irá toma...
package com.yunk.stupidcounter; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import com.hanks.htextview.evaporate.EvaporateTextView; import com.hanks.htextview.line.LineTextView; import mehdi.sakout.fancybuttons.FancyButton; pub...
/** * Copyright (C) 2008 Atlassian * * 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...
package com.isg.ifrend.jms; import java.util.List; import javax.jms.JMSException; import com.isg.ifrend.exception.IfrendMLIException; import com.isg.ifrend.model.mli.account.Account; import com.isg.ifrend.model.mli.customer.Address; import com.isg.ifrend.model.mli.customer.Contact; import com.isg.ifrend.model.mli.cu...
package com.hardcoded.plugin.json; import java.util.ArrayList; import java.util.List; public class JsonArray extends JsonObject { private final List<Object> array; public JsonArray() { array = new ArrayList<>(); } public JsonObject getJsonObject(int index) { return (JsonObject)array.get(index...
package Metaphase01; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; /** * 快速失败机制的避免方式: * CopyOnWriteArrayList与ArrayList不同: * * (01) 和ArrayList继承于AbstractList不同,CopyOnWriteArrayList没有继承于AbstractList,它仅仅只是实现了List接口。 * (02) ArrayList的iterator()函数返回的Iterator是在AbstractList中实现的;而CopyOnWriteAr...
public class Solution{ //addition is equal to addition without carry + only do the carry rather than addition. public static int addWithoutPlus1(int x,int y){ if(y==0){return x;} int sumWithoutCarry = x^y; int onlyCarry = (a&b)<<1; addWithoutPlus(sumWithoutCarry,onlyCarry); } //based on recursive solution,...
package com.grocery.codenicely.vegworld_new.referral.model; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.grocery.codenicely.vegworld_new.helper.Urls; import com.grocery.codenicely.vegworld_new.referral.OnReferralDataRecievedCallback; import com.grocery.codenicely.vegworld_new.referral.ap...
package com.assignment.nalin.service; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityNotFoundException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.assignment.nalin.entity.Course; import com.as...
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
package heylichen.searching.bst; import java.util.Set; /** * @author lichen * @date 2020/5/27 15:32 * @desc */ public interface SymbolTable<K extends Comparable<K>, V> { V get(K key); int size(); boolean isEmpty(); boolean containsKey(K key); void put(K key, V value); Set<K> keySet();...
package com.arkaces.ark_eth_channel_service.contract; import org.springframework.data.repository.PagingAndSortingRepository; public interface ContractRepository extends PagingAndSortingRepository<ContractEntity, Long> { ContractEntity findOneById(String id); ContractEntity findOneBySubscriptionId(String sub...
package com.mobiledev.realmdatabasesample.utils; import android.app.Application; import com.mobiledev.realmdatabasesample.db.RealmHelper; import io.realm.Realm; import io.realm.RealmConfiguration; /** * Created by Manu on 11/6/2017. */ public class MyApplication extends Application { @Override public voi...
import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.List; public abstract class CollisionManager { protected LevelManager levelManager; protected List<Image> explosions = new ArrayList<Image>(); protected List<Integer> explosi...
package net.davoleo.javagui.games.animation; import java.awt.*; import java.util.ArrayList; /************************************************* * Author: Davoleo * Date / Hour: 03/07/2019 / 08:10 * Class: Animation * Project: JavaGUI * Copyright - © - Davoleo - 2019 **********************************************...
package xtrus.ex.mci.channel; import java.net.ConnectException; import org.apache.commons.lang.StringUtils; import org.jboss.netty.channel.ChannelException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import xtrus.ex.mci.ExMciCode; import xtrus.ex.mci.ExMciConfig; import xtrus.ex.mci.ExMciException; imp...
package ru.orbot90.guestbook.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.core.Authentication; impor...
package com.bd2001.jzl; import java.sql.*; public class test { static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; static final String DB_URL = "jdbc:mysql://localhost:3306/climb_channel_order"; static final String USER = "root"; static final String PASS = "root"; static private ...
/** * */ package com.needii.dashboard.controller; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.DoubleSummaryStatistics; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; impor...
package com.lenovohit.hcp.hrp.model; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Transient; import org.hibernate....
package com.zl.util; /** * @program: FruitSales * @description: 整个应用常量类 * @author: ZhuLlin * @create: 2019-01-08 15:16 **/ public class Constants { //密码 public static final Integer HASHITERATIONS = 1024; public static final String PASSWORD = "000000"; //权限等级 public static final Integer ROLE_P...
package jaolho.data.lma; import solo.Vector2D; public final class QuickLineFitter extends QuickLMA<Vector2D> { /** * @param parameters * @param x * @param y * @param weights * @param from * @param to */ public QuickLineFitter(double[] parameters, Vector2D[] x, double[] y, double[] w...
package yinq.Initialize; import android.app.Activity; import android.app.ActivityManager; import android.content.Context; import android.content.Intent; import android.widget.Toast; import com.yinq.cherrydialyrecord.MainActivity; import java.lang.reflect.InvocationTargetException; import yinq.Request.HttpRequestMan...
package com.example.a77354.android_final_project.PartnerAsking; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutM...
package com.imagsky.v81j.domain.serialized; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.annotations.Expose; public abstract class BaseSerializedDomain { @Expose protected String sys_guid; protected String getJsonString(Class thisClass, Object thisObj){ ...
package com.online.jdbcconnection; import java.sql.Connection; import java.sql.DriverManager; public class DBConnection { static Connection connection; static String driverName="com.mysql.jdbc.Driver"; static String url="jdbc:mysql://localhost:3306/database?autoReconnect=true&useSSL=false"; static String user...
package com.daydvr.store.view.person; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import andr...
package com.explore.common; public class Const { public static String CURRENT_USER = "current_user"; public interface ExamStatus{ //等待审核通过 int WAIT_CHECK_PASS = 0; //审核通过 int CHECK_PASS = 1; //审核不通过 int CHECK_NO_PASS = 2; //考试通过 int EXAM_PASS = 3...
package ui; import ui.Board; import javax.swing.*; import java.awt.*; public class Game extends JPanel { private JLayeredPane layeredPane; JLabel scoreLabel; JSlider cellSizeSlider; Board board; GameOver gameOver; int margin = 50; public Game() { scoreLabel = new JLabel("0");...
package com.cxxt.mickys.playwithme.presenter.login; import android.content.Context; /** * 登录 presenter 层接口 * * @author huangyz0918 */ public interface LoginPresenter { void validateCredentials(String username, Context context, String password); void onDestroy(); }
package cn; import org.junit.Assert; import org.junit.Before; import org.junit.Test; /** * Created by max.lu on 2016/3/23. */ public class MessageServiceTest { private MessageService messageService; @Before public void init() { messageService = new MessageService(); } @Test public ...
package cn.algerfan; /** * 10- II. 青蛙跳台阶问题 一只青蛙一次可以跳上1级台阶,也可以跳上2级台阶。求该青蛙跳上一个 n 级的台阶总共有多少种跳法。 答案需要取模 1e9+7(1000000007),如计算初始结果为:1000000008,请返回 1。 示例 1: 输入:n = 2 输出:2 示例 2: 输入:n = 7 输出:21 * @author algerfan */ public class Offer10_2 { public int numWays(int n) { if(n == 0) { return ...
/** * */ package com.vinodborole.portal.web.error; /** * @author vinodborole * */ public class RoleAlreadyExistException extends RuntimeException { /** * */ private static final long serialVersionUID = -3223019491169042346L; public RoleAlreadyExistException() { super(); } public RoleAlreadyExistExc...
package share.wifi.csz.com.wifishare.permission; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Binder; import android.os.Build; import android.support.v4.app.ActivityCompat; import android.support.v4.app.Fragment;...
/** * <p>This package contains Spring's JSP standard tag library for JSP 2.0+. * Supports JSP view implementations within Spring's Web MVC framework. * For more details on each tag, see the list of tags below with links to * individual tag classes, or check the {@code spring.tld} file: * * <ul> * <li>{@link org....
package com.beike.wap.dao.impl; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Date; import java.util.List; import org.springframework.jdbc.core.simple.ParameterizedRowMapper; import org.springframework.stereotype.Repository; import com.beike.dao.GenericDaoImpl; import com.beike.entity.use...
package dados; import java.util.ArrayList; import java.util.List; import negocios.beans.Produto; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import j...
package ratio; import java.util.List; import java.util.stream.Collectors; import storage.Game; public class SimpleRatio implements Ratio { @Override public List<Rating> get(List<Game> games, List<String> players) { return WinLoss.getWinLoss(games, players).stream().map(this::cast) .collect(Collectors.toList...
package com.appmanage.mapper; import com.appmanage.entity.DataDictionary; import com.appmanage.entity.DataDictionaryExample; import java.util.List; public interface DataDictionaryMapper { int deleteByPrimaryKey(Long id); int insert(DataDictionary record); int insertSelective(DataDictionary record); ...
/*************************************************/ // for demo generated by maven 3.2.5 // 2015-01-30 // GitHub - Bamboo/JIRA CLOUD integration // When commit, // commit with JIRA KEY such like @HELLO-3 // smart commit /*************************************************/ // for JIRA-Fecru In...
package lawscraper.server.entities.caselaw; import lawscraper.server.entities.superclasses.Document.DocumentPart; import lawscraper.shared.DocumentListItem; import lawscraper.shared.DocumentPartType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import java.util.Has...
/** * Enumeration class Suit - write a description of the enum class here * * @colinbowen * @0.1 */ public enum Suit { HEARTS, CLUBS, DIAMONDS, SPADES }
package DataFactoryService; import dataservice.matchdataservice.MatchDataService; import dataservice.playerdataservice.PlayerDataService; import dataservice.teamdataservice.TeamDataService; public interface NBADataFactory { public MatchDataService getMatchData(); public PlayerDataService getPlayerData()...
package com.dbs.portal.ui.component.pagetable; import java.util.Map; import com.dbs.portal.ui.component.application.IApplication; public interface PagedTableComponentVisibility { public boolean showComponent(Map<String, Object> data); public void setApplication(IApplication application); }
/** * */ package com.vinodborole.portal.products; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity...