text
stringlengths
10
2.72M
package com.cse.sportsplus.repository; import java.math.BigInteger; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.transaction.annotation.Tra...
/* * Program for decrypting ElGamal crypto system. * * How it works? (Alice wants to send a message to Bob) * Encryption: Bob chooses a prime p and a primitive element alpha mod p. He then computes * beta = alpha ^ a mod p, where a is a random integer. Bob publishes p, alpha and beta and these * values are publi...
package com.maoteng.pay.strategy; import com.maoteng.pay.input.PayMentTransac; import com.maoteng.pay.input.PaymentChannelEntity; /** * 功能说明: 支付api * 功能作者: 彭晋龙 * 创建日期: 2019.8.14 * 版权归属: 忧伤-蓝河 */ public interface PayStrategy { /** * * @param pymentChannel * 渠道参数 * @param payMentTransacDTO ...
package com.app.exception; public class Test { public static void main(String[] args) { try { System.out.println("try-block"); //System.out.println(10/0); System.exit(0);//with this statement finally block won't execute } catch(ArithmeticException ae) { System.out.println("catch-block"); ...
package com.noteshare.questions.services.impl; import java.util.Date; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.alibaba.fastjson.JSONObject; import com.noteshare.questions.dao.AnswerMapper; import com.noteshare.questions.dao.QuestionsMapper; i...
package com.stackoverflow.ques; import java.util.ArrayList; import java.util.List; import com.yahoo.algos.MyQueue; /* * Snakes and Ladders is a directed cyclic graph. Create the graph and do BFS */ public class SnakesLadders { private static final int N = 30; private static final int[] moves = new int[N]; st...
package com.nnero.game2048.ui.view; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.animation.Animation; import android.view.animation.ScaleAnimation; import android.widget.FrameLayout; import com.nnero.game2048.base.App; import com.nnero.game2048.util.Lo...
package com.example.pagetable.util; import java.util.HashMap; public interface Interface { public <T> void get(String url, NetCallBack callBack); public <T> void post(String url, NetCallBack callBack); public <T> void formget(String url, HashMap<String,String> map, NetCallBack callBack); }
/* * 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 mude.srl.ssc.rest.controller.command.interfaces; import java.util.concurrent.locks.ReentrantLock; import mude.srl.ss...
package com.flipkart.programs; import java.util.ArrayList; import java.util.List; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; /* * (1) client call MyExecutor.newFixedThreadPool(noOfThread) and * (1a) MyExecutor creates noOfThr...
package at.fhj.swd.data.entity.helper; /** * Helper class for persistence table generator.<br> * * @author Lukas Kranabetter */ public class TableGeneratorHelper { public static final String TABLE_NAME = "table"; public static final String PK_COL_NAME = "pkColumnName"; public static final String VA...
package cn.czfshine.network.project.cs.dto; import lombok.Data; import java.io.Serializable; /**消息主体 * @author:czfshine * @date:2019/4/3 22:03 */ @Data public class Message implements Serializable { private static final long serialVersionUID = -7790222419742486052L; private String who; private String...
//FILE: UserInterface.Java //PROG: Adam Barker //PURP: Creates a user interface to gather or set information for a cab object package edu.trident.barker.cpt237; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.It...
package com.timmy.advance.citySelect; /** * Created by ZhuBo on 2016/7/4. */ public class DistrictModel { public String name; }
package com.Jnet.ChatApplication.Repository; import com.Jnet.ChatApplication.Model.ChatMessage; import com.Jnet.ChatApplication.Model.User; import org.springframework.context.annotation.Primary; import org.springframework.data.repository.CrudRepository; import java.util.List; public interface ChatMessageRepository e...
package com.example.struceva_ms.psichologytable.utility; import android.content.Context; import com.example.struceva_ms.psichologytable.activity.MainActivity; public class CommonData { public static Context context; public static final String TABLE_ID_CELL_1 = "1", TABLE_ID_CELL_2 = "2", TA...
package ex1; public class PolymorphismTest2 { public static void main(String args[]){ Shape sarray[] = new Shape[4]; sarray[0]= new Shape(); sarray[1] = new Ellipse(); sarray[2] = new Square(10); sarray[2].setColor("blue"); sarray[3] = new Rectangle(10,30); sarray[3].setColor("re...
package com.arkinem.libraryfeedbackclient; import javax.swing.*; import com.arkinem.libraryfeedbackclient.model.Question; import com.arkinem.libraryfeedbackclient.utils.HttpRequest; import java.util.ArrayList; import java.util.List; public class QuestionsWorker { /** * Creates an SwingWorker */ pub...
package com.example.currency.config; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @Compon...
package com.example.onlineshop.view.activities; import androidx.databinding.DataBindingUtil; import androidx.fragment.app.Fragment; import androidx.lifecycle.ViewModelProvider; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.example.onlineshop.R; import com.example...
package com.lti.hrmanagementsystem.bean; import java.util.Date; public class TimesheetBean { private String psno; private Date entryDate; private Date inTime; private Date outTime; private String comment; private int timesheetStatus; public String getPsno() { return psno; } public void s...
package April; public class StringNestedLoopDublicate { public static void main (String [] args){ String str ="Hello world"; for( int a = 0; a < str.length();a++){ for(int b = 0; b <=a ;b++){ System.out.print(str.charAt(b)); } System.out.println()...
package com.fordprog.matrix.interpreter.error.semantic; import com.fordprog.matrix.interpreter.CodePoint; import com.fordprog.matrix.interpreter.type.Type; public class TypeMismatchSemanticError extends SemanticError { private final Type expected; private final Type actual; public TypeMismatchSemanticError(...
// Tests that inheritance cycles of length 2 error. int main() { return 0; } class ClassCycle2Class1 extends ClassCycle2Class2 { } class ClassCycle2Class2 extends ClassCycle2Class1 { }
package com.mimi.mimigroup.model; public class HT_PARA { String ParaCode; String ParaValue; public HT_PARA(){} public HT_PARA(String ParaCode,String ParaValue){ this.ParaCode=ParaCode; this.ParaValue=ParaValue; } public String getParaCode(){return this.ParaCode;} public v...
package com.tencent.mm.plugin.qqmail.ui; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; import com.tencent.mm.R; import com.tencent.mm.ui.base.h; class AttachDownloadPage$2 implements OnMenuItemClickListener { final /* synthetic */ AttachDownloadPage meu; AttachDownloadPa...
package com.jiang.android.indexrecyclerview.widget; /** * @author 陈治谋 (513500085@qq.com) * @since 16/8/16 */ public interface Indexable { String getIndex(); }
/* * 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 view; import javax.swing.JButton; import javax.swing.JFormattedTextField; import javax.swing.JLabel; import javax.swing.JSpinn...
package khaell.stiffrain.storygame; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.Button; import android.widget.ListView; import com.google.firebase.database.DatabaseReference...
package Exam7; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import org.junit.Test; public class ExamView { private char[] answer; /** *在方法中读取键盘键入值(每次只取键入序列的第一个键值),判断键值应为a、b、c、d、n、p键(包括大小写)值之一时,将其作为方法返回值,否则忽...
package ru.figures.model; public class RightTriangle extends Triangle { public RightTriangle(double a, double b, double c) { super(a, b, c); } @Override public Double getPriority(){ return 3.5; } @Override public String toString() { return "RightTriangle{" + ...
import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class HabitatTest { static Board board; static Player testPlayer; Biome cave = new Biome("Cave Biome", 3); Habitat bat = new Habitat("Grey Bat Habitat", 16, 160, 1...
package com.semantyca.nb.core.rest.outgoing; import com.semantyca.nb.core.dataengine.jpa.dao.exception.DAOException; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class ErrorOutcome extends Outcome { public static final String ERROR_PAYLOAD = "error"; public ErrorOutcome(DAOExcepti...
package cdn.shared; public interface IWorker extends Runnable { /** * Stops listener so that thread can exit normally or be joined. */ void cancel(); /** * Determine if listener is still running. * * @return true if running, false otherwise. */ boolean getRunState(); }
package com.tencent.mm.plugin.emoji.ui.v2; import android.view.View; import android.view.View.OnClickListener; import com.tencent.mm.plugin.emoji.ui.v2.EmojiStoreV2RewardUI.a; class EmojiStoreV2RewardUI$3 implements OnClickListener { final /* synthetic */ EmojiStoreV2RewardUI iqC; EmojiStoreV2RewardUI$3(Emoj...
package model; import java.util.List; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table public class Frage { @Id @GeneratedValue private String id; private String frage; private String erklaerung; private List<...
package alg.leetcode; import java.util.Arrays; public class EditDistance { public static void main(String[] args) { } public int distance(String word1, String word2) { char[] cs1 = word1.toCharArray(); char[] cs2 = word2.toCharArray(); int n = cs1.length; int m = cs2.length; i...
package org.pyload.android.client.components; import android.app.Activity; import android.os.Bundle; import android.view.ContextMenu; import android.view.ContextMenu.ContextMenuInfo; import android.view.View; import android.view.View.OnCreateContextMenuListener; import android.widget.ExpandableListAdapter; import and...
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 WorkShop;//package WorkShop; // //import java.util.Scanner; // //public class Employee.Main { // public static void main(String[] args) { // Scanner sc = new Scanner(System.in); // // DoublyLinkedList list = new DoublyLinkedList(); // // // list.addFirst(16); // list.addFirst(42);...
import util.IntList; class IntListDemo { public static void main(String[] args) { IntList ns1 = new IntList(); IntList ns2 = new IntList(new int[] {1,2,3,5}); System.out.println(ns2.get()); System.out.println(ns2.get(2)); } }
package com.github.agmcc.slate.ast.mapper; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import com.github.agmcc.slate.antl...
package com.vektorel.hsjp.main.damlatulek; import java.util.*; public class HelloWorld { public static void main(String[] args) { System.out.println("just enter a word"); HelloWorld run = new HelloWorld(); // run.ShowMsg(); // run.GetMsg(); run.AgainGetMsg(); } public void ShowMsg() { ...
/* * UCF COP3330 Fall 2021 Assignment 2 Solution * Copyright 2021 Maggie Perry */ /* Self Checkout prompt user for item 1 price item1Price = nextDouble() prompt user for item 1 qty item1Qty = nextInt() Repeat for items 2 and 3 Add up subtotal add tax rate add total return all strings */ package exercise10; im...
package com.springbootdemo.ticketsystem.entity; import java.time.LocalDateTime; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToOne; @Entity public class Ticket { @Id @GeneratedValue(strat...
package com.tencent.mm.plugin.ext; import com.tencent.mm.model.au; import com.tencent.mm.model.c; import com.tencent.mm.pluginsdk.model.i; import com.tencent.mm.pluginsdk.model.i$b; import com.tencent.mm.pluginsdk.model.i.a; import com.tencent.mm.pluginsdk.model.l; import com.tencent.mm.protocal.c.ajd; import com.tenc...
package com.example.javajokelibrary; import java.util.Random; public class JavaJoke { private String[] badJokes; private Random random; public JavaJoke() { badJokes = new String[4]; badJokes[0] = "To err is human - and to blame it on a computer is even more so."; badJokes[1] = "A...
package app; import api.TraqApi; import api.TraqApiImpl; import com.github.motoki317.traq_bot.BotServer; import com.github.motoki317.traq_bot.EventHandlers; import com.github.motoki317.traq_bot.model.MessageCreatedEvent; import db.Database; import db.repository.mariadb.DatabaseMariaImpl; import http.MusicServer; impor...
package com.redhat.examples.iot.sensor; public class SensorType { public static final String VIBRATION = "vibration"; public static final String GPS = "gps"; public static final String TEMPERATURE = "temperature"; public static final String LIGHT = "light"; }
package com.suml.classification; import java.util.HashMap; import java.util.Map; import java.util.SortedSet; import java.util.TreeSet; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org...
package com.tencent.mm.plugin.wallet.pwd; import com.tencent.mm.ab.l; import com.tencent.mm.plugin.wallet.pwd.a.j.1; import com.tencent.mm.plugin.wallet.pwd.a.j.2; import com.tencent.mm.plugin.wallet_core.c.y; import com.tencent.mm.plugin.wallet_core.model.o; import com.tencent.mm.plugin.wxpay.a; import com.tencent.mm...
package com.quaero.quaerosmartplatform.Scheduled; import com.quaero.quaerosmartplatform.service.MaterialPlanInfoService; import lombok.extern.log4j.Log4j2; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; /** * <p> * 物料计划到料 定时器 * </p> * * @author wuhanz...
package miniMipSim.pipeline.parts; import static miniMipSim.MiniMIPSim.Opcode; public class InstructionToken implements Comparable<InstructionToken>{ public Opcode opcode; public int dest; public int src1; public int src2; private int priority; public int result; /** * Constructor * * @param op - th...
package com.tencent.mm.pluginsdk.ui.chat; import android.view.KeyEvent; import android.view.View; import android.view.View.OnKeyListener; import com.tencent.mm.R; import com.tencent.mm.bp.a; class ChatFooter$9 implements OnKeyListener { final /* synthetic */ ChatFooter qMv; ChatFooter$9(ChatFooter chatFooter...
package com.controller; import java.io.IOException; import java.sql.ResultSet; import java.sql.SQLException; import javax.security.auth.message.callback.PrivateKeyCallback.Request; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.se...
package org.zx.common.security; import com.auth0.jwt.JWT; import com.auth0.jwt.algorithms.Algorithm; import com.auth0.jwt.interfaces.DecodedJWT; import org.springframework.context.ApplicationContext; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentic...
package com.google.android.gms.common; final class j$ch { static final j$a[] aQo = new j$a[]{new 1(j$a.bm("0‚\u0003Ï0‚\u0002· \u0003\u0002\u0001\u0002\u0002\t\u0000š3\u0010g#<#í0")), new 2(j$a.bm("0‚\u0003Ï0‚\u0002· \u0003\u0002\u0001\u0002\u0002\t\u0000µ?ZÎDÜÖE0"))}; }
package com.prove.provaMavenTdd.provaMaven; public class Fibonacci { public int calculate(int i) { if (i >= 2) { return calculate(i-1) + calculate(i-2); } return i; } //é piu facile far andare veloce del codice che funziona che ... }
package com.tencent.mm.plugin.appbrand.dynamic.ui; import android.widget.Toast; import com.tencent.mm.plugin.appbrand.dynamic.ui.WxaWidgetDebugUI.3; import com.tencent.mm.plugin.appbrand.wxawidget.b.e; class WxaWidgetDebugUI$3$1 implements Runnable { final /* synthetic */ 3 fxU; WxaWidgetDebugUI$3$1(3 3) { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package kyle.game.besiege.voronoi; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.Random; import com.badlogic.gdx.Gdx; //i...
package com.ctm; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; import com.ctm.domain.Talk; /** * */ /** * @author Kishor * */ public class TalkFileReader { private final String LIGHTNING = "lightn...
package com.tencent.qqvideo.proxy.common; import android.content.Context; import android.content.SharedPreferences; import android.text.TextUtils; import android.util.Log; import com.tencent.qqvideo.proxy.httpproxy.HttpproxyFacade; import com.tencent.smtt.sdk.TbsReaderView$ReaderCallback; import java.io.IOException; i...
package com.softwarica.drinknepal.Activities; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.os.StrictMode; import android.view.View; import android.widget.Button; import android.widget.EditText; import...
/* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice,...
package myproject; import java.util.Scanner; public class Employees { int Empid; String name; int salary; String address; public Employees(int e,String n,int s,String a) { Empid=e; name=n; salary=s; address=a; } static class Teacher extends Employees{ Str...
package mm; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.util.List; @Getter @Setter @NoArgsConstructor public class TVMovie extends Product { private int duration; private List<String> actors; public TVMovie(String title, double rating, List<Str...
public class Smileys { public static void main(String[] args) { // Test your method at least with the following printWithSmileys("Arto"); printWithSmileys("Matti"); printWithSmileys("Mikael"); } private static void printWithSmileys(String characterString) { int len...
package main; import main.models.Todo; import main.repo.TodoRepository; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.springframework.data.jpa.repository.Query; import org.springframework.test.context.jdbc.Sql; import org.springframework.beans.factory.annotation.Autowired; impor...
/* * 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 pe.gob.onpe.adan.controller.step1; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.gson.Gson; import com...
package com.tfsis.server.responses; import fi.iki.elonen.NanoHTTPD; import java.io.ByteArrayInputStream; import java.io.InputStream; public class StatusResponse extends HttpResponseBase { public StatusResponse(IStatus status) { super(status, NanoHTTPD.MIME_HTML, new ByteArrayInputStream(new byte[0]), 0L...
package com.originspark.drp.controllers; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annota...
package com.tatteam.popthecamera; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Sound; /** * Created by dongc_000 on 9/27/2015. */ public class SoundHelper { private static SoundHelper instance; public static boolean enableSound = true; private Sound failSound; private Sound successSou...
/* * Copyright 2012 Kulikov Dmitriy * Copyright 2017 Nikita Shakarun * * 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 re...
package shipping.royalmail; import java.math.BigDecimal; import java.math.RoundingMode; import shipping.CostRule; /** * The Class RM0_HalfRule. * The rule that calculates the cost of weight up to 0.5Kg for Royal Mail */ class RM0_HalfRule extends CostRule{ /** * Instantiates a new r m0_ half r...
import io.cucumber.java.After; import io.cucumber.java.Before; import io.cucumber.java.en.And; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; import org.junit.Assert; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.We...
package com.tencent.mm.plugin.game.ui; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; import com.tencent.mm.plugin.game.e.c; import com.tencent.mm.plugin.game.model.an; class GameOverSeaCenterUI$5 implements OnMenuItemClickListener { final /* synthetic */ GameOverSeaCenterUI k...
package nodomain.cleversort.sorter; public class SortingResult { private Integer duration; private String values; public static SortingResult create(SortingResultEntity entity) { SortingResult result = new SortingResult(); result.setDuration(entity.getDuration()); result.setValue...
package com.hellokoding.springboot; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import java.io.IOException; public class BingSearchEngine extends SearchEngine { public BingSearchEngine() { super("https://www.bing.com/search"); } @Override public String constrack...
package entities; import javax.persistence.*; import java.io.Serializable; /** * @author Alex * 5/26/2016 */ @Entity @Table(name = "member_roles") public class MemberRole implements Serializable { @Id @Column(name = "member_role") private String role; @Id @Column(name = "email") pr...
public class Milk { private Brand brand; private int liter; public Milk(Brand brand, int liter) { this.brand = brand; this.liter = liter; } public Brand getBrand() { return brand; } public void setBrand(Brand brand) { this.brand = brand; } public i...
package com.cs4125.bookingapp.ui.main; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.navigation.NavDirections; import com.cs4125.bookingapp.R; import java.lang.IllegalArgumentException; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.Suppres...
package ar.com.ada.second.tdvr.service; import ar.com.ada.second.tdvr.component.BusinessLogicExceptionComponent; import ar.com.ada.second.tdvr.model.dto.ArtistDTO; import ar.com.ada.second.tdvr.model.entity.Artist; import ar.com.ada.second.tdvr.model.mapper.ArtistMapper; import ar.com.ada.second.tdvr.model.mapper.Avo...
package com.slzs.word; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import com.slzs.word.model.WordData; import com.slzs.word.process.MergeAnalyzer; import com.slzs.word.process.WordAnalyzer; /** * WORD生成工具 <br> * 支持并发导出,但考虑io性能问题,应尽量控制并发数 * @author slzs * 2...
package multipleLinearRegression; public class Feature { private int id; private String name; //name of the feature. private double[] dataValues; //array with the data values; private double mean; //mean of the data values. private double variance; private double standardDev; public int getId() { return id...
package com.wannajob.mongo.models; public class Cities { public Object getLatitude() { // TODO Auto-generated method stub return null; } public Object getLongitude() { // TODO Auto-generated method stub return null; } }
/* * Copyright © 2019 The GWT Project 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 applicable law...
package com.bookerapp.service; import com.bookerapp.model.Reservation; import com.bookerapp.repository.ReservationRepository; public class ReservationService { private ReservationRepository reservationRepository; public ReservationService(ReservationRepository reservationRepository) { super(); this.reservati...
package com.isystk.sample.solr.repository; import com.isystk.sample.solr.dto.SolrPost; import org.springframework.data.solr.repository.Query; import org.springframework.data.solr.repository.SolrCrudRepository; public interface SolrPostRepository extends SolrCrudRepository<SolrPost, String> { @Query("post_id:?0") ...
package com.parkinglot; public class AllParkingLotsFullException extends Exception{ }
package org.nmrg.controller.views; import org.nmrg.controller.BaseController; import org.nmrg.service.sys.cms.IMenusService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.sprin...
package com.shift.timer.di.modules; import android.location.Geocoder; import com.shift.timer.MainApplication; import java.util.Locale; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; @Module public class GeoCoderModule { public GeoCoderModule() { } @Provides @Singleton ...
package org.zx.common.security.controller; import org.springframework.http.HttpStatus; import org.zx.common.BaseResponse; public abstract class BaseController { protected <T> BaseResponse<T> success(T data){ return new BaseResponse<>(HttpStatus.OK.value(), "success", data); } protected <T> BaseRe...
/* * Copyright 2016 Johns Hopkins University * * 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 ...
package com.tencent.mm.plugin.exdevice.ui; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ListView; import com.tencent.mm.plugin.exdevice.ui.ExdeviceAddDataSourceUI.c; import com.tencent.mm.sdk.platformtools.x; class ExdeviceAd...
package org.jboss.wise.demo; import static org.junit.Assert.*; import generated.orderMgmtService.Customer; import generated.orderMgmtService.OrderItem; import generated.orderMgmtService.OrderMgmt; import generated.orderMgmtService.OrderMgmtService; import generated.orderMgmtService.OrderStatus; import generated.orderM...
package com.hooper.semaphoreSyntax; import java.util.concurrent.*; public class Setup { private Semaphore s; public Process gaggle[]; public Setup(int n) { s = new Semaphore(1); gaggle = new Process[n]; for (int i = 0; i < n; i++) { gagg...
package com.fixit.rest.apis; import com.fixit.rest.requests.APIRequest; import com.fixit.rest.requests.APIRequestHeader; import com.fixit.rest.requests.data.SearchRequestData; import com.fixit.rest.requests.data.SearchResultRequestData; import com.fixit.rest.responses.APIResponse; import com.fixit.rest.responses.data....
/* * LumaQQ - Java QQ Client * * Copyright (C) 2004 luma <stubma@163.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any lat...
package tecnicas.u06; import java.util.Scanner; public class Ej05 { public static void main(String[] args) { // TODO Auto-generated method stub // 5) Crear un arreglo de n posiciones y llenarlo con nombres de personas. int n = asignartamaño("ingrese el tamaño de posiciones"); String[] nombres = ...
import java.util.*; import java.io.*; public class Cold { public static void main(String[] args) throws IOException { Scanner nya = new Scanner(System.in); int total = Integer.parseInt(nya.nextLine()); System.out.println(nya.nextLine().replaceAll("[^-]","").length()); } }