text
stringlengths
10
2.72M
package com.gfa.minispringsecurity.services; import com.gfa.minispringsecurity.DTO.UserDTO; import com.gfa.minispringsecurity.repositories.UserDTORepository; import java.util.ArrayList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.userdetails.User; import org....
package com.tencent.mm.plugin.sns.g; import com.tencent.mm.bk.a; import java.util.LinkedList; public final class d extends a { public LinkedList<e> nuS = new LinkedList(); public LinkedList<e> nuT = new LinkedList(); public LinkedList<e> nuU = new LinkedList(); public LinkedList<e> nuV = new LinkedLis...
package seleniumwebdriver; public class WrapperDemo { public static void main(String[] args) { // TODO Auto-generated method stub int i=100; Integer i1 = new Integer(i); //converting primitive to object Integer i2 = new Integer("100"); //converting string to integer object String str1=i2.toString(...
package nl.quintor.studybits.studybitswallet.exchangeposition; import org.hyperledger.indy.sdk.anoncreds.ProofRejectedException; import nl.quintor.studybits.indy.wrapper.dto.EncryptedMessage; import nl.quintor.studybits.indy.wrapper.dto.ProofRequest; import nl.quintor.studybits.studybitswallet.room.entity.University;...
package sampletest.firebase.samplefirebase; import android.databinding.DataBindingUtil; import android.databinding.ViewDataBinding; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.List; public class RecyclerV...
package com.zhny.gr.wisdomcity.adapter; import android.view.View; /** * Created by czm on 2017/6/12 0012. */ public interface MyItemClickListener { void onItemClick(View view, int position); }
package com.tencent.mm.plugin.wallet.pwd.ui; import android.view.View; import android.view.View.OnClickListener; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.plugin.wallet_core.model.o; import com.tencent.mm.wallet_core.c.g; class WalletIdCardCheckUI$2 implements OnClickListener { final /*...
package com.zhouyi.business.core.model.provincecomprehensive; import lombok.Data; import lombok.ToString; import java.util.Date; /** * @Author: first * @Date: 上午7:00 2019/10/31 * @Description: **/ @Data @ToString public class PersonInfo { private String personId; /** * 指纹编号 */ private Str...
/* * Copyright (c) 2016 Mobvoi Inc. * * 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...
/** * 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 org.tc; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.tc.service.HelloWorld; /** * 测试AOP类 * 使用方法:直接执行该类main方法 */ public class TestAop { public static void main(String[] args){ //@SuppressWarnings("re...
public class InheritanceExample { public static void main(String[] args) { MountainBicycle mtb = new MountainBicycle(1001, "삼천리", "카본", true); // 재사용 System.out.println(mtb.id); System.out.println(mtb.brand); // 추가된 메소드 호출 mtb.printInfo(); System.out.println(mtb.toString()); System.out.print...
package compiler; import java.io.DataOutputStream; import java.io.IOException; public interface Constant { void emitCode(DataOutputStream outputStream) throws IOException; short getIndex(); }
package com.jim.multipos.ui.mainpospage.presenter; import com.jim.multipos.core.Presenter; import com.jim.multipos.data.db.model.Discount; import com.jim.multipos.data.db.model.ServiceFee; import java.util.List; /** * Created by Portable-Acer on 27.10.2017. */ public interface ProductInfoPresenter extends Present...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; /*This program helps us understand how to sort strings and integers.*/ public class BDedhiaHw2 { //Declaration of variables static String returnString = ""; static String returnNumber = ""; sta...
package com.qtrj.simpleframework.util; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import org.beetl.core.Configuration; import org.beetl.core.GroupTemplate; import org.beetl.core.ResourceLoader; import org.beetl.core.Template; import org.beetl.core.resource.String...
import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; public cl...
/* * 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 chatroom; import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.util.Scanner; import jav...
/* * 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 fr.aurelien.swingDB.entity; /** * Creation d'un DTO * * @author formation */ public class Student { pri...
package upeu.edu.pe.ExaHelmerM.Dao; import java.util.List; import upeu.edu.pe.ExaHelmerM.Entity.Libro; public interface LibroDao { List<Libro> listar(); }
package lp2.algoritmos; import lp2.lerDados.Usuario; /** * Classe que define um dos tipos de algoritmos a serem utilizados * no sistema de recomendacao. * * @author Flavia Gangorra<br> * Irvile Rodrigues Lavor<br> * Jordao Ezequiel Serafim de Araujo<br> */ public class CossenoInte...
package com.tencent.mm.g.a; import com.tencent.mm.plugin.offline.a.s.h; public final class tb$a { public h ceB; }
/* * Copyright 2008 Kjetil Valstadsve * * 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 agre...
package soft.chess.action; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.MulticastSocket; import java.net.SocketException; import java.net.UnknownHostExcep...
import java.util.Scanner; public class Problem3_16 // Random point of rectangle { public static void main(String[] args) { Scanner input = new Scanner(System.in); int width = (int)((Math.random() *1000 % 100 )-50); int height = (int)((Math.random()*1000 % 200)-100); // Display coordinate System.out.println(...
package com.kmilewsk.github.Service; import com.kmilewsk.github.Model.GitHubApiDto; import com.kmilewsk.github.Model.UserOutputDto; import com.kmilewsk.github.Repository.LoginRequestRepository; import com.kmilewsk.github.Web.Client.GitHubApiClient; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api....
//参考算法设计与分析(第二版本) 王晓东著 P1856tg public class Stamps { static int n, //邮票面值数 m, //每张信封允许贴的最多邮票数 maxR, //当前最优值 maxin, //大整数 maxl; //邮资上界 static int [] x; //当前解 static int [] y; ...
package test.android.kubra.com.kubraandroidtest.models; /** * Created by ramdharandonda on 6/22/17. */ public class User { private String userId; private String name; private String email; private String phone; private String webSite; private Address address; private Geo geo; public Str...
package com.qgil.utils; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.springframewor...
package eiti.sag.facebookcrawler.accessor.util; import org.apache.http.NameValuePair; import org.apache.http.client.utils.URLEncodedUtils; import java.net.URI; import java.util.List; public class UsernameParser { private final String baseUrl; public UsernameParser(String baseUrl) { this.baseUrl = b...
package br.com.luvva.challenge.jaxrs; import br.com.luvva.challenge.common.model.ReaderException; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; /** * @author Amsterdam Luís */ @Provider public class ReaderExceptionMappe...
package com.example.remotestarvideonew; import androidx.test.platform.app.InstrumentationRegistry; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class TestHelper { /** * Source: https://stackoverflow.com/questions/29378552/in-espresso-how-to-choose-one...
package ls.example.t.zero2line.base; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Bundle; import android.support.annotation.LayoutRes; import android.support.v7.app.AppCompatActivity; import android.view.LayoutInflater; import android.view.View; import ls.example.t.zero2line....
package claseResurse; public class AfisarePredare { private String numeProfesor; private String prenumeProfesor; private String titulatura; private String numeDisciplina; private String tipDisciplina; private String an; private String specializare; private int grupa; public String getNumeProfesor...
package org.libreoffice; import android.app.Activity; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.res.AssetManager; import android.util.Log; import org.libreoffice.kit.LibreOfficeKit; import java.io.InputStream; import java.nio.ByteBuffer; import static org.libre...
package com.xiruan.demand.entity.automation; import com.xiruan.demand.entity.IdEntity; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; @Entity @Table(name = "DEMAND_ROLE_USER") public class DemandRoleUser extends IdEntity { ...
package ast.declaration; import ast.identifier.*; import ast.type.*; public class StructDeclaration extends Declaration { private StructType structType; public StructDeclaration(StructType structType, StructIdentifier structId) { super(structId); this.structType = structType; this.ad...
package NiuKe; import java.util.Arrays; import java.util.Scanner; public class 排序 { /** * @param args */ public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()){ String s = in.next(); char[] arr = s.toCharArray(); Arrays.sort(arr); s = S...
package com.openkm.cache; import java.util.HashMap; import java.util.Map; import org.apache.jackrabbit.core.NodeId; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.openkm.bean.cache.NodePermissions; import com.openkm.util.Serializer; /** * @author pavila */ public class NodePermissionsManager ...
package net.mk786110.wisdomthoughts.EnglishHadiths; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import android.widget.Toast; import...
package entity; // Generated Sep 3, 2019 7:58:03 PM by Hibernate Tools 3.6.0 import java.util.Date; /** * Admins generated by hbm2java */ public class Admins implements java.io.Serializable { private int adminId; private String adminName; private String adminPassword; private String salt; priva...
package com.tencent.mm.protocal.c; import com.tencent.mm.plugin.wxpay.a$k; import f.a.a.b; import f.a.a.c.a; import java.util.LinkedList; public final class cae extends bhp { public int rfh; public LinkedList<byx> rfi = new LinkedList(); public int rxG; public long rxH; public int seq; public ...
package com.service.activity.domain; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.per...
package coppermobile.googlesearch; public interface GoogleSearchListener { public void searchedResult(GeocodeResponse geoCodeResponce); }
package com.mrhan.text.tatl; import com.mrhan.text.tatl.event.ITATLConstructionEvent; import java.util.List; /** * <h1 align="center">文本操作模板接口</h1> * * @author MrHanHao * */ public interface ITextTemplate { /** * 添加全局引用对对象<br/> * 如果存在此名称的全局对象,则会被替换掉 * * @param objName 对象名称 * @param value 对象的值 */ ...
package com.originspark.drp.util.json; public class IdsJson { private long ids[]; public long[] getIds() { return ids; } public void setIds(long[] ids) { this.ids = ids; } }
package ds.osgi.example.api; public interface ServiceProxyMBean { public void startMessageService(); public void stopMessageService(); public void setMessage(String message); public String getMessage(); }
package kodlama.io.hrms.core.utilities.verification; import java.util.UUID; import org.springframework.stereotype.Component; @Component public class VerificationManager implements VerificationService { @Override public void sendCode(String email) { //email'e göndermeyi simule ediyor UUID uuid = UUI...
package com.Collections_HashSet; public class GetNoOfElement { }
/** * Reads comma separated numbers from nums.txt and prints the * numbers out on separate lines. * * @author Jesse Li */ import java.io.*; import java.util.Scanner; public class NodeFileReader { /** * Reads comma separated numbers from nums.txt and prints the * numbers out on separate lines. ...
package main; import javax.swing.*; import java.awt.event.ActionEvent; import java.io.IOException; import java.util.ArrayList; import java.util.BitSet; import java.util.List; import java.util.Random; public class DesOkno extends JPanel { private JLabel jLabel1; private JLabel jLabel2; private JLabel jLab...
/* * 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 locationrestfulservice; import java.io.Serializable; import javax.json.Json; import javax.json.JsonObject; import javax.json.J...
package com.tencent.mm.plugin.sns.a.b; import android.view.View; import com.tencent.mm.plugin.sns.i.f; import com.tencent.mm.plugin.sns.model.af; import com.tencent.mm.plugin.sns.model.aj; import com.tencent.mm.plugin.sns.storage.b; import com.tencent.mm.plugin.sns.storage.n; import com.tencent.mm.protocal.c.boy; impo...
package cn.first.toolClass; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import cn.first.toolClass.myInterface.Graph; public abstract class AbstractGraph<V> implements Graph<V> { protected List<V> vertices;// 存储顶点 protected List<List<Integer>> neighbors;// 存储邻接顶点 protected Abst...
package com.wlt.retrofit; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.TextView; import com.wlt.retrofit.bean.MenuBean; import com.wlt.retrofit.bean.Verification; import com.wlt.retrofit.network.NetWorks; import rx.Observer; public class M...
/* Created by Adam Jost on 09/13/2021 */ package com.pb.ProgrammersBase.category; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind...
package com.java.app.beans.trans; import java.util.Date; public class TransServeyVersionDO { private Integer id; private TransSurvryInitDO initDO; private String sEmailId; private Integer iVersion; private String sCreatedBy; private Date dCreatedDate; private String sUpdatedBy; private Date dUp...
package com.bjtu.deviceusage.track; public class TrackSystemAndDevice { }
/* * Copyright 2018 MovingBlocks * * 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 datastructure.sort; /** * @description: 快速排序 * @author: dsy * @date: 2022/7/19 10:36 */ public class FastSort implements Sorter { //i = 2; arr[i] = 1; j = 1; arr[j] = 7; tmp = 1; arr[j + 1] = arr[1]; 4 7 7 ;j -- = 0; arr[j] = 4; 4 4 7 j = public static void main(String[] args) { int...
package polydungeons.block; import net.minecraft.block.Block; import net.minecraft.block.Material; import net.minecraft.block.MaterialColor; import net.minecraft.sound.BlockSoundGroup; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class DungeonDoorBlock extends Block { public D...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Stack; import java.util.StringTokenizer; /* ACMICPC 문제 번호 : 2304 문제 제목 : 창고 다각형 풀이 날짜 : 2020-09-24 ...
package com.baidu.camera.template.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import com.baidu.camera.template.module.SceneElement; import com.baidu.camera.template.module.TemplateElement; import com.baidu.camera.template.module.TemplateScene; import com.j256.ormlite.android.appt...
package com.thechema.game.level; import com.thechema.game.graphics.Shader; import com.thechema.game.graphics.Texture; import com.thechema.game.graphics.VertexArray; import com.thechema.math.Matrix4f; import com.thechema.math.Vector3f; public class Enemy { private float SIZE = 1.0f; private boolean direction = tr...
/* Natalie Suboc * September 25, 2017 * Library containing series of methods used * to describe the graph of a quadratic function */ public class Quadratic { public static String quadrDescriber(double a, double b, double c) { String desc = ""; desc += "Description of the graph of: \n"; String eq...
public class Depreciation { }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.jakc.payment.os.controller; import java.sql.Connection; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import org.jakc.common.util.P...
package rent.common.entity; import javax.persistence.*; /** * Роль */ @Entity @Table(name = RoleEntity.TABLE_NAME, indexes = { @Index(columnList = RoleEntity.Columns.ID), @Index(columnList = RoleEntity.Columns.NAME), }) public class RoleEntity extends AbstractEntity { public static final String ...
package com.fleet.couchbase.repository; import com.fleet.couchbase.entity.User; import org.springframework.data.couchbase.core.query.N1qlPrimaryIndexed; import org.springframework.data.couchbase.core.query.ViewIndexed; import org.springframework.data.couchbase.repository.CouchbasePagingAndSortingRepository; @N1qlPrim...
package arrays; import java.util.Scanner; public class ArithmeticMean { public static void main(String[] args) { int i,n,armean, sum=0; int arr[]=new int[50]; Scanner scan=new Scanner(System.in); System.out.println("How many numbers do you want enter? "); n=scan.nextInt()...
package com.aifurion.track.common; import org.springframework.util.ObjectUtils; import java.util.HashMap; /** * @author :zzy * @description:TODO 公共AJAX返回类 * 对返回数据进行封装 * @date :2021/3/23 19:43 */ public class AjaxResult extends HashMap<String, Object> { private static final long serialVersi...
/* * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the l...
package ca.ubc.cpen391team17; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.location.Location; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widge...
// class <-> object // : // переменная // массив // [прост.]типы данных и строки // for // if-else // тип и класс - синонимы // в компании(название, адресс) работают сотрудники(имя, фамилия возраст, зарплата) // из n заданных сотрудников найти сатрудника с макс. зарпл. // 1. Разработка; // 2. Компиляция; // 3. Исполн...
package com.wang.java8; import java.util.Arrays; import java.util.List; import java.util.function.Predicate; /* 函数式接口(Functional Interface)就是一个具有一个方法的普通接口。\ 如果一个接口定义个唯一一个抽象方法,那么这个接口就成为函数式接口。同时,引入了一个新的注解:@FunctionalInterface。 函数式接口可以被隐式转换为lambda表达式。可以用lambda表达式来实例化函数式接口 现有的函数式接口可以友好地支持 lambda。 */ public class Functio...
package org.ez.view; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Set; import javax.servlet.http.HttpServletRequest; import org.codehaus.jackson.JsonParseException; import org.codehaus.jackson.map.JsonMappingException; import org.codehaus.j...
import java.io.*; import java.util.*; public class Driver { public static void main(String[] args) { BSTree t = new BSTree(); t.seed(); System.out.println("Original: "); t.inorderTraverse(); //Checking Leaf System.out.println("Deleting leaf 8:"); t.delete(8); t.inorderTraverse(); //IT WORKS! ...
package com.nastenkapusechka.validation.analyzers; import com.nastenkapusechka.validation.util.exceptions.PasswordException; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import static org.junit.Assert.*; public class PasswordAnalyzer...
package com.dragon.system.quartz.service; import com.baomidou.mybatisplus.extension.service.IService; import com.dragon.system.quartz.model.QuartzJobModel; public interface QuartzJobService extends IService<QuartzJobModel> { /** * 启动或暂停Job * @param quartzJob */ void updateIsPause(QuartzJobMode...
package com.linkedbook.dao; import com.linkedbook.entity.PopularCommentView; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface PopularCommentRepository extends JpaRepository<PopularCommentView, Integer> ...
package mk.petrovski.weathergurumvp.data.remote; import io.reactivex.Observable; import mk.petrovski.weathergurumvp.data.remote.helper.error.ErrorHandlerHelper; import mk.petrovski.weathergurumvp.data.remote.model.location_models.SearchApiResponseModel; import mk.petrovski.weathergurumvp.data.remote.model.weather_mode...
package com.gmail.at.telchuev.leitnerboxlite; import android.app.Application; import android.content.Context; public class MyApp extends Application { private static Context context; public static final String TAG = "LeitnerBoxLite"; @Override public void onCreate() { super.onCreate(); ...
/* * Copyright (C) 2023 Hedera Hashgraph, LLC * * 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 la...
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Ge...
package enthu_l; public class e_1239 { public static void main(String args[]){ char i; LOOP: for (i=0;i<5;i++){ switch(i++){ case '0': System.out.println("A"); case 1: System.out.println("B"); break LOOP; case 2: System.out.println("C"); b...
package com.lsht.ml; /** * Created by Junson on 2017/8/21. */ public class MeanPoolingCalcOperator extends PoolCalcOperator { public MeanPoolingCalcOperator(ConvData data, int height,int width) { super(data, height,width); } @Override public void calcOutput() { initOutPutData...
package lejos.pc.comm; import java.io.IOException; import java.util.logging.Logger; /** * Connects to a NXT using Bluetooth or USB (or either) and supplies input and output * data streams. * * @author Lawrie Griffiths and Roger Glassey,<br /> * modified by Daniel Pyka for Open Roberta */ public class NX...
package de.fatoak.engine.video.texture; /** * Created by Markus on 22.05.2014. */ public final class TexturePreloadFailedException extends Exception { }
package com.espendwise.manta.dao; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.Query; import org.apache.log4j.Logger; import com.espendwise.manta.model.view.TradingPartnerListView; import com.espendwise.manta.util.Constants; import com.espendwise.manta.util.QueryHelp; impo...
package strings; import java.util.HashMap; import java.util.Map; public class IsomorphicStrings { public static boolean isIsomorphic(String s, String t) { Map<String, String> dictS = new HashMap<>(); // could use a bidirectional map instead Map<String, String> dictT = new HashMap<>(); for...
package tez.levent.feyyaz.kedi.activities.details; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.sig...
package encde; /** * Created by kreddy on 2/5/18. */ public class Decrypt { public static String decrypt(String src) { if (null == src || src.length() == 0) return src; int[] encs = new int[src.length()]; int counter = 0; for (int i = 0; i < encs.length; i++) { encs[i] = src.charAt(i);...
package com.tencent.mm.ui.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.OvalShape; import android.suppo...
package ayou.api; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import ayou.model.Player; @Path("/player") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICA...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the te...
package com.wonders.task.excel.model; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import java.io.Serializable; /** * Created with IntelliJ IDEA. * User: zhoushun * Date: 2014/11/21 * Time: 11:31 * To change this template use File | Settings | File Templates. */ @Entity @Table...
package com.tencent.mm.plugin.appbrand.ui; import com.tencent.mm.plugin.appbrand.appusage.i; import com.tencent.mm.plugin.appbrand.appusage.i.b; class AppBrandLauncherUI$1 implements b { final /* synthetic */ AppBrandLauncherUI guG; AppBrandLauncherUI$1(AppBrandLauncherUI appBrandLauncherUI) { this.g...
package flows; import forms.SikuliBase; import forms.TTNonPregnantForm; import org.testng.Assert; import org.testng.annotations.Test; import pages.*; import java.text.ParseException; public class TTNonPregnantFormTest { @Test public void registerNewStaffAndFillTTNonPregnantForm() throws ParseException { ...
package leetcode; /** * @author kangkang lou */ public class Main_115 { public void connect(TreeLinkNode root) { TreeLinkNode start = root; while (start != null) { TreeLinkNode cur = start; while (cur != null) { if (cur.left != null) cur.left.next = cur.rig...
public class PrefixTree { private PTNode root; private int size; public PTNode getRoot(){ return root; } public void setRoot(PTNode node){ root = node; } public int getSize(){ return size; } public PrefixTree(){ root = new PTNode (""); } //Add the new word to the tree (and all...