text
stringlengths
10
2.72M
package git.volkov.kvstorage.storage; import java.io.IOException; import java.util.concurrent.TimeoutException; import net.rubyeye.xmemcached.MemcachedClient; import net.rubyeye.xmemcached.MemcachedClientBuilder; import net.rubyeye.xmemcached.XMemcachedClientBuilder; import net.rubyeye.xmemcached.exception.MemcachedE...
package com.home.closematch.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.ArrayList; import java.ut...
package uk.gov.hmcts.befta.featuretoggle; import io.cucumber.java.Scenario; import uk.gov.hmcts.befta.exception.FeatureToggleCheckFailureException; import uk.gov.hmcts.befta.featuretoggle.launchdarkly.LaunchDarklyFeatureToggleService; public interface FeatureToggleService { FeatureToggleService DEFAULT_INSTANCE ...
package swm11.jdk.jobtreaming.back.app.expert.service; import swm11.jdk.jobtreaming.back.app.expert.model.ExpertSpecification; import java.util.List; import java.util.Optional; public interface ExpertSpecificationService { List<ExpertSpecification> findAll(); Optional<ExpertSpecification> findById(Long id)...
package com.paleimitations.schoolsofmagic; import com.paleimitations.schoolsofmagic.client.ClientProxy; import com.paleimitations.schoolsofmagic.common.registries.BlockRegistry; import com.paleimitations.schoolsofmagic.common.registries.Registry; import net.minecraft.block.Block; import net.minecraft.tileentity.TileEn...
package com.tkb.elearning.dao.impl; import java.util.ArrayList; import java.util.List; import com.tkb.elearning.dao.AboutWeDao; import com.tkb.elearning.model.AboutWe; import sso.ojdbc.dao.impl.PagingDaoImpl; public class AboutWeDaoImpl extends PagingDaoImpl implements AboutWeDao { @SuppressWarnings("unchecked"...
package com.xhpower.qianmeng.utils; public enum SystemCode { VERIFICATION_FAILURE(10100, "后台验证失败"), FILE_UPLOAD_FAILURE(10200, "文件上传失败"); private int code; // 成员变量 private String msg; // 构造方法 private SystemCode(int code, String msg) { this.code = code; this.msg = msg; } public String getMsg() { retur...
package com.tencent.mm.plugin.game.gamewebview.ui; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.plugin.webview.ui.tools.game.menu.b.b; import com.tencent.mm.ui.base.l; class g$2 implements b { final /* synthetic */ g jKj; g$2(g gVar) { this.jKj = gVar; } public final ...
package zm.gov.moh.common.submodule.form.model.widgetModel; public class FormLabelModel extends AbstractLabelModel { public FormLabelModel(){ super(); } }
package shapes; public class Rectangle implements Shape{ private final double length; private final double height; public Rectangle(double length, double height) { this.length = length; this.height = height; } public double getArea() { return length * height; } }
import javax.swing.JFrame; public class jpanel extends JFrame { public jpanel(){ Grille g = new Grille(); this.setTitle("Ma première fenêtre Java"); this.setLocationRelativeTo(null); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setContentPane(g); this.setS...
package br.com.formacao.java.Testes; import br.com.formacao.java.Modelo.ContaCorrente; import br.com.formacao.java.Modelo.ContaPoupanca;; /** * Classe que representa o teste do tipo "Object". * * @author Guilherme Vilela * @version 0.1 */ public class TesteObject { /** * * @param args */ public stat...
package org.github.chajian.matchgame.data.define; /** * 匹配状态 * @author Chajian */ public enum PoolStatus { WAITING,//等等 BEFORE_START,//开始前 START,//开始匹配 ENDING//结束 }
package com.tencent.mm.plugin.account.ui; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; class InviteFacebookFriendsUI$8 implements OnMenuItemClickListener { final /* synthetic */ InviteFacebookFriendsUI eQB; InviteFacebookFriendsUI$8(InviteFacebookFriendsUI inviteFaceboo...
package com.bank.service.ui.statements.domain.model; import java.util.ArrayList; import java.util.List; public class StatementList2 { public List<Statements> list = new ArrayList<Statements>(); public List<Statements> getList() { return list; } }
package com.tencent.mm.plugin.wallet.bind.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; class WalletBankcardDetailUI$9 implements OnClickListener { final /* synthetic */ int gVI; final /* synthetic */ WalletBankcardDetailUI pcX; WalletBankcardDetailUI...
package com.tencent.mm.ui.base; import android.view.View; import android.view.View.OnFocusChangeListener; import com.tencent.mm.w.a.f; class MMFormInputView$1 implements OnFocusChangeListener { final /* synthetic */ MMFormInputView tuq; MMFormInputView$1(MMFormInputView mMFormInputView) { this.tuq = ...
/* * 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 com.notix.hystrix; /** * * @author jibin */ import com.notix.utils.UserContext; import com.notix.utils.UserContextHolder; i...
package tests.helpers; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import vs.api.helpers.Authentication; import static org.junit.jupiter.api.Assertions.assertThrows; class AuthenticationTest { @Test @DisplayName("createToken() throws IllegalArgumentException for null argumen...
package filehandling; import java.io.FileWriter; import java.io.BufferedWriter; import java.io.IOException; import java.io.PrintWriter; public class AppendToFile { public static void main(String[] args) { try (FileWriter f = new FileWriter("C:\\Users\\SILE SINGH\\Desktop\\simplilearn screenshot\\filehandl...
package framework.services; public interface Message { String getMsg(); String getSubject(); String getFrom(); String getForr(); }
package com.hservice.grpc.Test; import java.io.Serializable; public class MessageTest implements Serializable{ private String message; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }
import com.avalara.avatax.services.tax.*; import com.avalara.avatax.services.base.Profile; import com.avalara.avatax.services.base.Security; import javax.xml.rpc.ServiceException; import javax.xml.soap.SOAPException; import java.net.MalformedURLException; import java.net.URL; import java.io.IOException; import java.io...
package com.example.karan.instagramlogin.rest.Clients; import com.example.karan.instagramlogin.rest.services.Auth; import java.util.concurrent.TimeUnit; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Retrofit; import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; i...
package com.ifre.service.impl.rights; import java.util.Set; import javax.servlet.http.HttpServletRequest; import org.jeecgframework.core.constant.Globals; import org.jeecgframework.core.util.ResourceUtil; import org.jeecgframework.core.util.oConvertUtils; import org.jeecgframework.web.system.pojo.base.TSOperation; im...
package com.youthchina.controller; import com.youthchina.dto.Response; import com.youthchina.exception.zhongyang.exception.NotFoundException; import com.youthchina.service.DomainCRUDService; import com.youthchina.util.HasId; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; i...
package officeHourPracrice_03_03; import java.util.Scanner; public class MyEx2 { public static void main(String[] args) { Scanner scan =new Scanner(System.in); System.out.println("* * * * * CHANGE FROM KM TO MILE * * * * *"); double waykm = scan.nextDouble(); double waymile = waykm...
package com.yixin.kepler.common.enums; public enum CMBCRepStatus { // 民生申请状态 COMP("COMP"), // 可放款状态 CNCL("CNCL"), // 客户取消贷款 REJT("REJT"), // 拒绝申请 AUTO("AUTO"), // 终审通过 REGR("REGR"), // 审批中 WWSL("WWSL"); // 等待电子签约 private String status; CMBCRepStatus(String status) { this....
package com.servlet; import com.db.DB; import com.scheme.Course; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.ut...
package pl.edu.pw.mini.gapso.configuration; import pl.edu.pw.mini.gapso.optimizer.move.Move; import pl.edu.pw.mini.gapso.optimizer.move.MoveManager; import java.util.List; public class MoveManagerConfiguration { private boolean adaptMoves; private double switchingAdaptationOffProbability; private boolean...
package com.demo; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.To...
package dailyPractice.jianzhi; import java.util.ArrayList; import java.util.List; public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } public static void printTree(TreeNode root) { List<Integer> result = new ArrayList<>(); trave...
package com.javarush.task.task19.task1927; /* Контекстная реклама */ import java.io.ByteArrayOutputStream; import java.io.PrintStream; public class Solution { public static TestString testString = new TestString(); public static void main(String[] args) { PrintStream console = System.out; B...
package lukzieniewicz.gmail.com.swim5; import android.os.Bundle; import android.support.v4.app.Fragment; import android.text.Layout; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.FrameLayout; import android.widget.TabHo...
package com.info.jwt.api; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class GitPracticeDemoForPrepApplication { private Static Integer companyId = 23; private Static HashMap<String,Integer> cache = new HashMap...
package com.example.middle; import android.app.Activity; import android.support.v7.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.EditText; import android.widget.TextView; import com.example.midd...
package com.project.group14.api; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springfr...
package beans; public class SheetInfoCtrlBean { /** 読み込み画像パス */ private String imagePath; /** 用紙サイズ */ private String sheetSize; /** 用紙の向き */ private String sheetDirection; /** 文字開始位置(縦) */ private String charStartRowPosition; /** 文字開始位置(横) */ private String charStartColumnPosition; /** 行間 */ private Strin...
package com.ryit.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.ryit.service.CheckoutService; //退房管理 @Controller @RequestMapping("pages/admin") public class Checkout...
package guo.ping.taotao.service; import guo.ping.taotao.common.pojo.EasyUIDataGridResult; import guo.ping.taotao.common.pojo.TaotaoResult; import guo.ping.taotao.pojo.TbItem; /** * 商品查询service */ public interface ItemService { TbItem getItemById(Long id); EasyUIDataGridResult getItemList(int page, int rows...
package com.mysql.cj.jdbc.interceptors; import com.mysql.cj.MysqlConnection; import com.mysql.cj.log.Log; import java.sql.SQLException; import java.sql.Savepoint; import java.util.Properties; public interface ConnectionLifecycleInterceptor { ConnectionLifecycleInterceptor init(MysqlConnection paramMysqlConnection, ...
package com.aifurion.track.service.impl; import com.aifurion.track.Utils.SaltUtils; import com.aifurion.track.entity.User; import com.aifurion.track.mapper.AccountManageMapper; import com.aifurion.track.mapper.AuthMapper; import com.aifurion.track.service.AccountManageService; import org.apache.shiro.crypto.hash.Md5Ha...
/* * 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 notacionpolacainversa; import java.util.Scanner; public class NotacionPolacaInversa { public static void main...
package ict.computer.generator.ab_testing; import java.io.*; import java.nio.file.NoSuchFileException; import java.util.ArrayList; import java.util.List; public class Main { private static List<Number> numberList = new ArrayList<>(); public static void main(String[] args) { //Read data in file and ...
package steps; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; public class step123 { @Given("User is on Cybertek training page") public void user_is_on_Cybertektraining_page() { } @When("User starts add new Teacher\\/Student profile") pu...
package com.bw.movie.mvp.view.fregment.cinmensfragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; im...
package dev.borowiecki.home.after_week_1.solutions; public class Ex5 { public static void main(String[] args) { int number = 113; /* dla optymalizacji moglibysmy dac number/2 albo nawet Sqrt(number) ale wersja "naiwna" tez bedzie akceptowalna */ boolean isFirst = ...
package com.cristovantamayo.ubsvoce.repositories; /** * Repositorio para Unidade implementando JpaRepository<@type{Unidade}>. */ import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository...
/* */ package com.ketonix.ketonixpro; /* */ /* */ import javax.swing.JLabel; /* */ /* */ public class AboutDialog extends javax.swing.JDialog { private javax.swing.JButton jButton1; /* */ private JLabel jLabel1; /* */ private JLabel jLabel2; /* */ private JLabel jLabel3; /* *...
package com.hs.doubaobao.bean; import java.util.List; /** * 作者:zhanghaitao on 2017/9/18 15:38 * 邮箱:820159571@qq.com * * @describe:主界面的bean */ public class CommonBean { /** * resCode : 1 * resData : {"pageDataList":{"list":[{"account":12,"actPeriod":"","applydate":"2017-12-07","cu...
/** * https://www.zhzhao.top */ package top.zhzhao.duplicatesubmit.annotation; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.*; import org.springframework.stereotype.Component; import org.springframework.web.contex...
package com.baizhi.action; import java.util.List; import com.baizhi.entity.Address; import com.baizhi.service.AddressService; import com.baizhi.service.AddressServiceImpl; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; import com.opensymphony.xwork2.util.ValueStack; publi...
package com.mediacom.repo; import java.util.List; import com.mediacom.domain.Member; //basically a regular interface that just sets up what methods you're going to create for a class. has to match implementation. public interface MemberDao { public Member findById(int id); public Member findByEmail(String e...
package game.core.screen.bottomPanel.subPanels; import game.core.HexTileSkin; import game.core.screen.Panel; import game.core.screen.bottomPanel.BottomPanel; import render2d.Color; import render2d.Render; import render2d.drawable.RectangleClick; import render2d.drawable.Shape; import render2d.drawable.ShapeBuilder; im...
package com.cm4j.util; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; public class ClassUtil { public static InputStream getClassInputStream(Class<?> clazz) throws Exception { String classLocation = clazz.getProtectionDomain().getCodeSource()....
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.xwalk.embedding.test; import java.util.concurrent.TimeoutException; import org.xwalk.core.XWalkUIClient; import org.xwalk.core.XWalkUIClien...
package com.neo1946.todolist.util; import android.app.Activity; import android.content.Context; import android.content.DialogInterface; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AlertDialog; import static com.neo1946.todolist.ui.NewActivity.REQUEST_CODE_CHOOSE; /** * @author ouyang...
package com.xxzp.xxzp.rpc.impl; import com.xxzp.xxzp.common.utils.JsonUtils; import com.xxzp.xxzp.common.utils.httputils.AresHttpClient; import com.xxzp.xxzp.config.ThirdPartyCallApiConfig; import com.xxzp.xxzp.model.HolidayBO; import com.xxzp.xxzp.model.HolidayBean; import com.xxzp.xxzp.model.HolidayResultBean; impor...
/** * 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...
package src.model; public class Check { private float id; private String name; private String createdAt; private String updatedAt; private int statusId; private int jobId; public float getId() { return id; } public String getName() { return name; } public ...
package net.thumbtack.asurovenko.tasks.task3; /** * Created by thumbuser on 19.02.2017. */ public class Task3Thread implements Runnable { public void run() { System.out.println("Start " + name); try { Thread.sleep(500); } catch (InterruptedException e) { System.out...
package main; import org.junit.*; public class Test { public static void main(String args){ int tab[]={1000,200,700,711,102,103,252,251,253}; VectorHelper.trier(tab); // on affiche les éléments du vecteur après les avoir trié for(int i=0; i<tab.length; i++) { System.out.println(tab[i]); } int ta...
package GUI.AWT; import java.awt.*; import java.awt.event.*; import javax.swing.JFrame; import javax.swing.WindowConstants; // An AWT GUI program inherits the top-level container java.awt.Frame public class MyAWTPanelDemo extends JFrame implements java.io.Serializable { /** * */ private static final long se...
package com.suiman.hoai; import android.app.Application; import android.test.ApplicationTestCase; import android.util.Log; import com.suiman.hoai.utils.DateUtil; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestC...
package gaussPageRank; import java.io.IOException; import java.util.*; import org.apache.hadoop.io.*; import org.apache.hadoop.mapreduce.*; public class gaussPageRank_reduce extends Reducer<Text, Text, Text, Text> { public static float randomJump = 0.85f; public static float stoppingThreshold = 0.001f; //For ea...
package com.mideas.rpg.v2.hud; import java.io.FileNotFoundException; import org.newdawn.slick.Color; import org.newdawn.slick.opengl.Texture; import com.mideas.rpg.v2.Sprites; import com.mideas.rpg.v2.TTF2; import com.mideas.rpg.v2.game.Joueur; import com.mideas.rpg.v2.utils.Draw; public class PlayerPortraitFrame {...
package com.example.pangrett.astroweather; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import...
package io.zipcoder.casino.player.gameTools; import io.zipcoder.casino.gameTools.Card; import io.zipcoder.casino.gameTools.CardValue; import io.zipcoder.casino.gameTools.Deck; import io.zipcoder.casino.gameTools.Suit; import org.junit.Assert; import org.junit.Test; import static org.junit.Assert.*; public class Car...
package com.tencent.mm.graphics.ui; import com.tencent.mm.graphics.b.a; import com.tencent.mm.graphics.b.b; import com.tencent.mm.graphics.b.d; import com.tencent.mm.sdk.platformtools.x; class WxBaseImageView$2 implements Runnable { final /* synthetic */ WxBaseImageView djS; WxBaseImageView$2(WxBaseImageView...
package com.ricex.cartracker.android.service; import android.util.Log; import com.ricex.cartracker.android.data.entity.RawReading; import com.ricex.cartracker.android.data.entity.RawTrip; import com.ricex.cartracker.android.data.entity.ReaderLog; import com.ricex.cartracker.android.data.manager.RawReadingManager; imp...
package seedu.address.logic.parser; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import java.util.StringTokenizer; import seedu.address.commons.core.index.Index; import seedu.address.commons.exceptions.IllegalValueException; import seedu.address.logic.commands.CustomCommand; impo...
/* * 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 gedeon1; import base_dato.ManejadorSQL; import base_dato.validaciones; import java.awt.Color; import java.awt.Dimension; impo...
package com.tencent.mm.app; import com.tencent.mm.g.a.po; import com.tencent.mm.model.au; import com.tencent.mm.modelmulti.a; import com.tencent.mm.plugin.bbom.r; import com.tencent.mm.protocal.c.bz; import com.tencent.mm.sdk.b.c; import com.tencent.mm.sdk.platformtools.x; class WorkerProfile$31 extends c<po> { f...
/* * Copyright (c) 2017. Universidad Politecnica de Madrid * * @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es> * */ package org.librairy.modeler.lda.services; import org.librairy.modeler.lda.helper.ModelingHelper; import org.librairy.modeler.lda.tasks.LDASubdomainShapingTask; import org.librairy.modeler.lda....
package de.zarncke.lib.value; /** * Something which has a {@link Class type}. * * @author Gunnar Zarncke */ public interface Typed { Class<?> getType(); }
package com.mc.messaging; import javax.persistence.*; import java.util.Set; @Entity public class Person { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @OneToMany(mappedBy = "person") private Set<Message> message; private String personName; public long getId() { ...
package com.nefee.prawn.web.controller; import com.nefee.prawn.data.dao.WowSpecRepository; import com.nefee.prawn.data.entity.WowSpec; import com.nefee.prawn.logic.service.DatabaseService; import com.nefee.prawn.logic.service.FindMyBestInSlotsService; import com.nefee.prawn.logic.service.TransformerService; import com...
//Problem : 260. Single Number III class Solution { public int[] singleNumber(int[] nums) { Set<Integer> num = new HashSet(); int i = 0; for (; i < nums.length; i++) { if(num.contains(nums[i])) num.remove(nums[i]); else ...
package rocks.lechick.android.newsapp; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import java.text.SimpleDateFormat; import java.util.Date; import org.w3c.dom.Text; imp...
package dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; import dto.Post; public class PostDao ...
package de.lenic.redsync.listeners; import de.lenic.redsync.RedSync; import de.lenic.redsync.objects.PlayerData; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerLoginEvent; impo...
package calculadora.operadoresmatrizes; import calculadora.colecoes.Matriz; public abstract class Cofatores<T> implements OperadorUnario<T> { protected Matriz<T> getMenorComplementar(Matriz<T> m, int i, int j) { Matriz<T> mc = m.getNovaInstancia(m.getTamanhoLinhas() - 1, m.getTamanhoColunas() - 1); int r = ...
package org.webmaple.admin.service.Impl; import org.webmaple.admin.mapper.UserMapper; import org.webmaple.admin.model.User; import org.webmaple.admin.service.UserService; import org.webmaple.common.enums.UserAuth; import org.webmaple.common.model.Result; import org.apache.commons.lang3.StringUtils; import org.slf4j.Lo...
package de.jmda.app.uml.advertise; public interface UMLStyleModelVisualisation extends CoolStuff { }
package com.jim.multipos.ui.admin_auth_signup.fragments.confirmation; import com.jim.multipos.core.BaseView; public interface ConfirmationView extends BaseView { void onSuccess(); void onError(String error); }
package com.ibeiliao.pay.impl.thirdpay.alipay; import com.ibeiliao.pay.api.Constants; import com.ibeiliao.pay.api.dto.response.PayRecord; import com.ibeiliao.pay.api.enums.CurrencyType; import com.ibeiliao.pay.api.enums.PayCode; import com.ibeiliao.pay.api.enums.PaymentStatus; import com.ibeiliao.pay.api.enums.UserTyp...
package de.madjosz.adventofcode.y2015; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Day08 { private final List<String> input; public Day08(List<String> input) { this.input = input; } public int a1() { int sum = 2 * input.size()...
package br.com.bytebank.modelo.dominio; import javax.persistence.AttributeConverter; public class ConversorTipoConta implements AttributeConverter<TipoConta, Character>{ public Character convertToDatabaseColumn(TipoConta tipo) { return tipo.getValor(); } public TipoConta convertToEntityAttribute(Character val...
package com.tencent.mm.plugin.appbrand.appcache.a.c; import com.tencent.mm.plugin.appbrand.appcache.a.b.b; import com.tencent.mm.plugin.appbrand.appcache.a.b.c; import com.tencent.mm.plugin.appbrand.appcache.a.b.d; import com.tencent.mm.plugin.appbrand.appcache.a.b.e; import com.tencent.mm.plugin.appbrand.appcache.a.b...
public class StringConcat { String foo() { return "bar" + 1 + null; } }
package com.levi9.taster.core; import com.levi9.taster.commons.model.Identifiable; /** * Represents answer to a question, containing the answer text and * flag which determines correctness of answer. * * @author d.gajic */ public interface Answer extends Identifiable { /** * Content, actually an answer (HT...
package chapter_2_02_IO; import java.nio.file.Files; import java.util.stream.Stream; import java.io.IOException; import java.nio.file.*; import static chapter_2_01_Java8_Streams.Streams.prints; public class Files7 { public static void main(String[] args) throws IOException { Path p = Paths.get("txtfile...
package com.osce.api.system.org; import com.osce.dto.common.PfBachChangeStatusDto; import com.osce.entity.SysOrg; import com.osce.vo.PfTreeSelectVo; import com.osce.vo.system.org.PfOrgZtreeVo; import java.util.List; /** * @ClassName: PfOrgService * @Description: 机构服务 * @Author yangtongbin * @Date 2019-05-05 */ ...
package com.tbt.testapi; import com.tbt.testapi.model.Case; import com.tbt.testapi.model.Step; public class Executor { public boolean runCase(Case c) { return false; } public boolean runStep(Step step) { return false; } }
import java.util.HashMap; import java.util.Scanner; public class Desafio { public static void main(String[] args) { // TODO Auto-generated method stub Scanner nomeAluno = new Scanner(System.in); HashMap<Integer, String> chamada = new HashMap<Integer, String>(); for (int i = 0; i < 3; i++) { ...
package LeetCodeUtils.Contest.C2021_04_11; import org.junit.Test; public class Second { @Test public void test() { System.out.println(findTheWinner(5, 2)); } int count = 0; public int findTheWinner(int n, int k) { count = n; boolean[] arr = new boolean[n + 1]; int...
package Paquete; public class Cama { private int idCama; private boolean estado; public Cama(int idCama, boolean estado) { super(); this.idCama = idCama; this.estado = estado; } public int getidCama() { return idCama; } public void setidCama(int idCama) { this.idCama = idCama; } public void ...
import java.util.ArrayList; import java.util.Iterator; public class ForEachLoop { public static void main(String[] args) { /*String[] cars = {"BMW","GTI","New Car"}; for (String car: cars ) { System.out.println(car); }*/ ArrayList<Integer> numbers = new ArrayList<Integer>(); numbers.add(3); numbers...
package Percobaan.src; public class SepedaDemo { public static void main(String[] args) { Sepeda spd1 = new Sepeda(); Sepeda spd2 = new Sepeda(); SepedaGunung spd3 = new SepedaGunung(); spd1.setMerk("Polygone"); spd1.tambahKecepatan(10); spd1.gantiGear(2); spd1.cekStatus(); System.ou...
package com.gmail.merikbest2015.ecommerce.repos; import com.gmail.merikbest2015.ecommerce.domain.Order; import com.gmail.merikbest2015.ecommerce.domain.User; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; /** * A repository for {@link Order} objects providing a set of JPA metho...