text
stringlengths
10
2.72M
/* * 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.dao.adan.impl; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util....
package com.example.demo.config.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotati...
package com.codementor.android.starwarsbattlefrontcommunity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.codementor.android.starwarsbattlefrontcommunity.model.Post; /** * Created by tonyk_000 on 12/13/2015. */ p...
package io.malibu.malibu; import android.app.Application; import android.content.Context; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import com.google.gson.Gson; /** * Created by Tier on 22.09.14. */ public class MalibuApp extends Application { private static Cont...
package com.sharind.controller; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import org.springframework.beans.factory.annotation.Value; import javazoom.jl.decoder.JavaLayerException; import javazoom.jl.player.Player; public class Musi...
package com.tencent.mm.ui.tools; public interface f$b { void onAnimationEnd(); void onAnimationStart(); }
/* * Copyright (c) 2014 Hewlett-Packard Development Company, L.P. * * 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 b...
package com.tencent.mm.plugin.appbrand.jsapi.f.a; import com.tencent.mm.plugin.appbrand.e.b; import com.tencent.mm.plugin.appbrand.e.c; import com.tencent.mm.sdk.platformtools.x; import java.util.HashMap; class b$2 extends b { final /* synthetic */ String bAj; b$2(String str) { this.bAj = str; } ...
package com.tencent.mm.ui.conversation; import android.content.Intent; import com.tencent.mm.c.i; import com.tencent.mm.c.i.a; import com.tencent.mm.model.au; import com.tencent.mm.protocal.d; import com.tencent.mm.sdk.platformtools.e; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.ui.conversation.i....
package com.example.dm2.ex20181109_1eval; import android.content.Context; import android.support.annotation.NonNull; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; public...
package net.learn2develop.moviedata_finaltask10.navigation; import net.learn2develop.moviedata_finaltask10.R; import java.util.ArrayList; //Deveti korak - podesavanje klase NavigationItem sa vrednostima title, subtitle i icon, kako // //bi kreirali nasu fijoku (drawer), a potom to pozvali u Main-u. public class ...
/* * 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 src; import java.io.ByteArrayInputStream; import java.nio.charset.Charset; import java_cup.runtime.Symbol; /** * * @author ...
package com.storytime.client.changevieweventhandlers; import com.google.gwt.event.shared.EventHandler; public interface HostRoomWindowLocalEventHandler extends EventHandler { public void onGoToHostRoomWindow(); }
/** * ファイル名 : VSM04030XServiceTest.java * 作成者 : Admin * 作成日時 : 2018/5/31 * Copyright © 2017-2018 TAU Corporation. All Rights Reserved. */ package jp.co.tau.web7.admin.supplier.service.top; import static org.assertj.core.api.Assertions.fail; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito....
/* * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. * * 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 requi...
package cn.ck.controller.jobs; import cn.ck.controller.AbstractController; import cn.ck.entity.Alluser; import cn.ck.entity.Jobs; import cn.ck.entity.Studio; import cn.ck.entity.bean.JobsStudio; import cn.ck.mapper.JobsMapper; import cn.ck.service.JobsService; import cn.ck.service.StudioService; import cn.ck.utils.Res...
package com.dnk.swa.controller; import java.io.File; import java.nio.file.Path; import java.nio.file.Paths; import java.text.SimpleDateFormat; import java.util.Iterator; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j....
package com.infobird.hive.HiveDemo; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class HiveDemo extends HiveBase{ public static void createTable(String tableName, Statement stmt) throws SQLException { String sql = "create table " + tableName + " (key s...
package de.jmda.sample.junit; import static de.jmda.core.mproc.ProcessingUtilities.getElementsAnnotatedWith; import static de.jmda.core.mproc.ProcessingUtilities.isProcessingOver; import java.io.File; import java.io.IOException; import java.lang.annotation.Annotation; import java.util.HashSet; import java.util.Set; ...
package repositories; import java.util.Collection; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import domain.Admin; import domain.Article; import domain.Customer; import domain.Newspaper; import...
package com.veracode.apiwrapper; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.Authenticator; import java.net.InetSocketAddress; import java.net.Proxy; import java.net.URL; import org.apache.commons.codec.binary.Base64; public class AdminAPIWrapper { ...
package com.rx.rxmvvmlib.repository.datasource.locate; import android.content.Context; import android.content.SharedPreferences; import android.text.TextUtils; import android.util.Base64; import com.rx.rxmvvmlib.util.EncryptUtil; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java....
package com.mx.profuturo.bolsa.service.desk; import com.mx.profuturo.bolsa.model.desk.data.DatosGrafica; public class ObserverCommDeskResponse { private KPIEscritorio entrevistasHoy; private KPIEscritorio candidatosProceso; private DatosGrafica candidatosEtapa; public KPIEscritorio getEntrevistasHoy() { ...
package com.tencent.mm.plugin.game.ui; import com.tencent.mm.plugin.game.model.m.b; import com.tencent.mm.sdk.platformtools.bi; class GameDownloadView$4 implements b { final /* synthetic */ GameDownloadView jXJ; GameDownloadView$4(GameDownloadView gameDownloadView) { this.jXJ = gameDownloadView; ...
package com.ge.hc.emrad.xer.bootstrap; import com.ge.hc.emrad.xer.domain.ReportingPhysician; import com.ge.hc.emrad.xer.domain.Site; import com.ge.hc.emrad.xer.service.ReportingPhysicianService; import com.ge.hc.emrad.xer.service.SiteService; import org.apache.log4j.Logger; import org.springframework.beans.factory.ann...
package org.alienideology.jcord.handle.client; import org.alienideology.jcord.handle.ISnowFlake; import org.alienideology.jcord.handle.user.IUser; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** * INote - A note that the client can attach to any users. The note is only visibl...
package com.mysql.cj.log; import com.mysql.cj.Query; import com.mysql.cj.Session; import com.mysql.cj.protocol.Resultset; public interface ProfilerEventHandler { void init(Log paramLog); void destroy(); void consumeEvent(ProfilerEvent paramProfilerEvent); void processEvent(byte paramByte, Session par...
package com.dao; import com.bean.Account; import com.bean.Customer; public interface AccountDao { public Account createAcccount(String name,String username, String password, String address, String phoneno, String email,String type,String bname); public String deposit(Account c,String money); public String ...
package com.tencent.mm.plugin.gcm.modelgcm; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Build.VERSION; import com.tenc...
package com.etercode.etershutui; import org.thehecklers.monologfx.MonologFX; import org.thehecklers.monologfx.MonologFXBuilder; import org.thehecklers.monologfx.MonologFXButton; import org.thehecklers.monologfx.MonologFXButtonBuilder; public class ExitBox { private MonologFXButton mlb = MonologFXButtonBuilde...
package com.alibaba.dubbo.remoting; import com.alibaba.dubbo.common.Constants; import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.common.extension.Adaptive; import com.alibaba.dubbo.common.extension.SPI; /** * 通信消息的顶层接口 * 默认使用netty实现协议处理 */ @SPI("netty") public interface Transporter { /** * B...
/* * Copyright (c) 2021, salesforce.com, 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 applicabl...
package milandr.courseproject.controllers; import milandr.courseproject.dtos.TopicDto; import milandr.courseproject.services.TopicService; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.Request...
package com.licyun.dao.imp; import com.licyun.dao.MessageDao; import com.licyun.model.Message; import com.licyun.vo.MessageJsonBean; import org.hibernate.HibernateException; import org.hibernate.Session; import org.springframework.orm.hibernate4.HibernateCallback; import org.springframework.stereotype.Repository; imp...
package com.inalab.util; import java.io.Serializable; import java.util.Date; import java.util.Map; import java.util.Properties; import java.util.TreeMap; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.mail.Authenticator; import javax.mail....
package com.unicom.myapplication; import android.os.Bundle; import android.webkit.WebChromeClient; import android.webkit.WebResourceRequest; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import androidx.appcompat.app.AppCompatActivity; public class MainActivit...
package com.company.carseller.action; import com.company.carseller.database.CarDAO; import com.company.carseller.entity.Car; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOExce...
package cqu.shy.game; import java.awt.Graphics; import java.awt.image.BufferedImage; import cqu.shy.resource.ImageResource; class SkillZ extends FlyingObject{ private int MPconsume; //蓝量消耗 private boolean iscold; //是否冷却中 private int coldtime; //冷却时间 private BufferedImage icon = ImageResource.SkillZ_ico...
package FileReader; //Coding Conventions Check Bob Laramee's Coding conventions //Passed Rule 1 Method Length //Passed Rule 2 Indentation //Passed Rule 3 No line of Code exceeds 80 characters //Passed Rule 4 All class variables must start with two character sequence //Passed Rule 5 All class variables are accesse...
package io.xlink.wifi.pipe.http; import org.apache.http.Header; import org.apache.http.HeaderElement; import org.apache.http.ParseException; /** * @author LiuXinYi * @Date 2015年5月25日 下午5:44:05 * @Description [封装http header 便于传输] * @version 1.0.0 */ public class XHeader implements Header { privat...
package com.example.wristband.activities; import android.content.DialogInterface; import android.graphics.Canvas; import android.support.annotation.NonNull; import android.support.v7.app.ActionBar; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; imp...
package com.w11k.psql; import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; import org.flywaydb.core.Flyway; import org.junit.Rule; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.testcontainers.containers.DockerComposeContainer; import org.testcontai...
package com.sixmac.service.impl; import com.sixmac.core.Constant; import com.sixmac.dao.AreaDao; import com.sixmac.dao.CityDao; import com.sixmac.dao.ProvinceDao; import com.sixmac.entity.Area; import com.sixmac.entity.City; import com.sixmac.entity.Province; import com.sixmac.service.ProvinceService; import org.sprin...
package org.dummy.jdbc.sql; import java.lang.reflect.Field; import org.dummy.jdbc.annotation.Join; import org.dummy.jdbc.annotation.LeftJoin; import org.dummy.jdbc.annotation.ManyToOne; import org.dummy.jdbc.annotation.Tab; import static org.dummy.jdbc.utils.EntityUtils.getColFields; import static org.dummy.jdbc.utils...
package com.booking.hotelapi.entity; import java.io.Serializable; import java.util.List; 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...
/** * Class MyJava3 extends Homework3 * * @author C. Thurston * @version 5/7/2014 */ public class MyJava extends Homework { MyJava() { } public void createAssignment(int pages) { setPagesRead(pages); setTypeHomework("Java"); } public String toString() { return getTypeHomework() + " - must read "...
package com.fang.example.lock; import com.fang.example.spring.di.util.NotNull; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; import redis.clients.jedis.Protocol; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import ja...
package toby.reactor.practice; import java.util.Iterator; public class IterableTest { // Iterable <---> Observable (duality) // Pull Push public static void main(String[] args) { java.lang.Iterable<Integer> iter = () -> new Iterator<>() { int i=0; ...
package com; import java.util.Map; /** * Created by chenzhang on 2016/10/9. */ public class RegistryService1Impl implements RegistryService1 { @Override public Map hello(Map map) { map.put("name","chenz"); return map; } }
package com.zeng; import com.zeng.filter.AllFilter; import com.zeng.servlet.*; import com.zeng.utils.DBUtil; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHandler; import javax.servlet.DispatcherType; import java.util.EnumSet; ...
package com.espendwise.manta.web.resolver; import com.espendwise.manta.util.arguments.Args; import com.espendwise.manta.util.alert.ArgumentedMessage; import com.espendwise.manta.util.alert.ArgumentedMessageImpl; import com.espendwise.manta.util.validation.resolvers.AbstractBatchOrderSaveExceptionResolver; import com.e...
package graft.utils; import org.apache.tinkerpop.gremlin.structure.Edge; import org.apache.tinkerpop.gremlin.structure.Vertex; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.FileWriter; import java.io.IOException; import graft.cpg.structure.CodePropertyGraph; import gra...
package es.uma.sportjump.sjs.web.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller @RequestMapping("/error") public class ErrorCont...
package com.awsp8.wizardry; import net.minecraft.block.Block; import net.minecraft.item.ItemBucket; public class SparklingWaterBucket extends ItemBucket { public SparklingWaterBucket(Block fluidBlock) { super(fluidBlock); } }
package com.seu.care.bed; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; @SpringBootApplication @EnableEurekaClient public class BedApplication { public static void main(Strin...
package com.itcr.plantillaapk; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.graphics.drawable.BitmapDrawable; import android.support.v4.app.NotificationCompat; /** * **********...
package com.ts.timesTable.controller; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import com.google.gson.Gson...
package com.snow.weevideo.module.samecity.entity; /** * @user steven * @createDate 2019/6/25 13:52 * @description 同城 */ public class SameCityEntity { private long id; private String userHeadUrl; private double distance; private boolean isLiving; private String firstTitle; private String sen...
package com.smxknife.springboot._07_jsonserializable; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import lombok.Data; /** * @author smxknife * 2021/8/1 */ @Data public class User { @JsonSerialize(using = StatusJsonSerializable.class) private Integer status; private String username; private...
package lesson09; public enum SeasonSP04 { //đặt tên class này trùng với tên class của bài 4 là để so sánh cách sử dụng của 2 class ở trong Bai9 //... FALL }
package de.mufl.sandbox.osm.routing.cloudmade; import java.util.ArrayList; import de.mufl.sandbox.geo.common.Position; public class RoutingResult{ Summary summary; ArrayList<Position> geometry = new ArrayList<Position>(); ArrayList<Instruction> instructions = new ArrayList<Instruction>(); public Sum...
package com.spring.ost.model; public class DpdDto { boolean dpdStatus; String message; public boolean isDpdStatus() { return dpdStatus; } public void setDpdStatus(boolean dpdStatus) { this.dpdStatus = dpdStatus; } public String getMessage() { return message; } public void setMessage(String...
package rmi_test.server; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; /** * Description: * * @author Baltan * @date 2019-03-10 17:19 */ public class SayServiceImpl extends UnicastRemoteObject implements SayService { protected SayServiceImpl() throws RemoteException { } ...
/* */ package de.stuuupiiid.dungeonpack; /* */ /* */ import java.util.Random; import net.minecraft.util.ResourceLocation; /* */ /* */ /* */ /* */ /* */ public class DungeonGeneratorTempleDeath /* */ extends DungeonGenerator /* */ { /* */ public boolean generate(Ran...
package vo; public class Game { private String location_id; private String time; private String home_id; private String away_id; private String game_date; private String home_result; private String away_result; public Game(String location_id, String time, String home_id, String away_id, String game_date, Str...
/* * 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 dao; import factory.ConnectionFactory; import gui.Main; import java.sql.Connection; import java.sql.Date; import ja...
package com.tencent.mm.plugin.exdevice.f.a; import android.graphics.Bitmap.CompressFormat; import com.tencent.mm.compatible.util.e; import com.tencent.mm.sdk.platformtools.ac; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.c; import java.io.File; public final class d { private...
package s4n.week1.challenge; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.Stream; import static org.junit.jupiter.api.Assertions.*; public class StreamsTest { Person person1; Pers...
package com.hendriksen.fragments; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ListView; import com.hendriksen.adapters.Hi...
package prefeitura.siab.apresentacao; import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import org.springframework.we...
/*Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once in a word. Example: Input:...
package tachyon.master; /** Type of Image entry. */ enum ImageElementType { Version, Checkpoint, InodeFile, InodeFolder, RawTable, Dependency, }
package com.techlab.basic; public class PassByValue { public static void main(String args[]) { int marks = 100; mutateMarksToZero(marks); System.out.println("Marks is:" + marks); int[] marks1 = { 10, 20, 30, 40 }; mutateMarksToZero(marks1); for (int m : marks1) { System.out.println("marks of array are...
/* * [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 ter...
package com.theoffice.moneysaver.adapters; import android.annotation.SuppressLint; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ImageButton; import android.widget...
package bank; public class Entity extends Client { public Entity(double balance) { setPaymentAccount(balance); } @Override public void withdrawal(double withdrawal) { double commission = 0.01; double allWithdrawal = withdrawal + withdrawal * commission; System.out.prin...
package ch.epfl.tchu; /** * Preconditions Class * <p> * Class to check for conditions and throw exceptions * * @author Eduardo Neville (314667) */ public final class Preconditions { private Preconditions() { } /** * Checks boolean, throws IAException if false * * @param shouldBeTrue a...
package util; import java.util.List; public class UniqueAggregatingHashtable extends AggregatingHashtable { public UniqueAggregatingHashtable() { super(); } protected boolean shouldAdd(List list, Object value) { return list == null || list.indexOf(value) < 0; } }
package com.gtfs.service.interfaces; import java.io.Serializable; import java.util.List; import com.gtfs.bean.UserLoginDtls; public interface UserLoginDtlsService extends Serializable{ List<Object> findMaximumLoginTimeOfUser(Long UserId); Long insert(UserLoginDtls userLoginDtls); }
package cn.xyz.mianshi.service; import java.util.List; import java.util.Map; import org.bson.types.ObjectId; import cn.xyz.commons.vo.ResultInfo; import cn.xyz.mianshi.example.UserExample; import cn.xyz.mianshi.example.UserQueryExample; import cn.xyz.mianshi.vo.Course; import cn.xyz.mianshi.vo.CourseMessage; import ...
package com.zetwerk.app.zetwerk.data.model; import android.os.Parcel; import android.os.Parcelable; import java.util.ArrayList; /** * Created by varun.am on 19/01/19 */ public class Employee implements Parcelable { public static final String EMP_ID_BASE = "ZET0"; public static final String DEFAULT_EMP...
package com.choa.reviewBook; import java.util.List; import com.choa.comment.CommentDTO; public interface ReviewBookDAO { // ??? public int selectTotalCount(); // 댓글삭제 public int reviewBookDelete(int num); // 댓글작성 public int reviewBookWrite(ReviewBookDTO dto); // 댓글보기 public List<ReviewBookDTO> ...
package moe.pinkd.twentyone.player.contestants; import moe.pinkd.twentyone.core.GameManager; import moe.pinkd.twentyone.core.OperationExecutor; import moe.pinkd.twentyone.player.Player; import java.lang.reflect.Field; import java.util.ArrayDeque; import java.util.ArrayList; public class ReflectCheater extends Player...
package org.dmonix.xml.html; import java.io.File; import java.io.IOException; import java.net.URL; import javax.xml.transform.OutputKeys; import org.xml.sax.SAXException; import org.dmonix.xml.XMLConfigurationException; import org.dmonix.xml.XMLDocument; import org.dmonix.xml.XMLElement; /** * Util...
package com.ttan.linkedList; /** * @Description: 两个链表的第一个公共结点 * @author ttan * @time 2019年7月5日 下午3:36:46 */ public class FindFirstCommonNode { /*输入两个链表,找出它们的第一个公共结点。*/ /** * 1->2->3->4 * * 3->4 */ public ListNode FindFirstCommonNode(ListNode pHead1, ListNode pHead2) { ListNode p1 = pHead1; List...
package com.andrew749.heart_rate_monitor.Activities; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.andrew749.heart_rate_monitor.Activities.HeartRateMonitor; import com.andrew749.heart_rate_monitor.R; /** * Cre...
package com.example.illuminate_me; import android.media.Image; public class User { private Image userImage; //might change //(1) public Image takePicture(){ //code return userImage; } //(2) public Image uploadPicture(){ //code return userImage; } //(3) public void repeatVerbalDescription...
package br.com.formacao.java.encapsulado; /** * Classe que representa uma modelagem da conta de um cliente. * * @author Guilherme Vilela * @version 0.1 */ public class Conta { private double saldo; private int agencia; private int numero; private Cliente titular; /** * * @param valor ...
package com.example.android.applicationmovies; import android.arch.persistence.room.Entity; import android.arch.persistence.room.PrimaryKey; import android.support.annotation.NonNull; /** * Created by mac-lab on 10/11/2018. */ @Entity public class FavMovie { @NonNull @PrimaryKey private int movieId; ...
package pages; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.How; import org.openqa.selenium.support.PageFactory; import utils.BY_TYPE; import utils.PAYMENT_TYPE; import utils.TARIFF_TYPE; import wrappers.GenericWrapper; /** * Page class for the...
package com.czy.hello.spring.cloud.web.admin.feign.controller; import com.czy.hello.spring.cloud.web.admin.feign.service.AdminService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMeth...
package com.ns.greg.basearchitecture.user; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.ns.greg.basearchitecture.DemoActivity; import com.ns.greg.base...
package gfgPractice; public class HeightOfTree { public static void main(String[] args) { int arr[] = {-1, 0, 1, 6, 6, 0, 0, 2, 7}; System.out.println(findDepth(arr)); } public static int findDepth(int arr[]) { int maxDepth = -1; int currDepth = -1; int j; for(int i = 0; i<arr.length; i+...
package com.ssalphax.recyclerviewimage; import android.content.Context; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RelativeLayo...
package com.dmzj.manhua; import com.baidu.frontia.FrontiaApplication; public class CHApplication extends FrontiaApplication { @Override public void onCreate() { super.onCreate(); } }
package com.mindorks.bootcamp.learndagger.di.component; import com.mindorks.bootcamp.learndagger.di.module.ActivityModule; import com.mindorks.bootcamp.learndagger.di.scope.ActivityScope; import com.mindorks.bootcamp.learndagger.ui.HomeFragment; import com.mindorks.bootcamp.learndagger.ui.MainActivity; import dagger....
package net.sourceforge.vrapper.plugin.surround.state; import static net.sourceforge.vrapper.plugin.surround.state.DelimiterStrings.DELIMITER_STRINGS; import net.sourceforge.vrapper.keymap.SequenceState; import net.sourceforge.vrapper.keymap.State; import net.sourceforge.vrapper.plugin.surround.commands.ChangeDelimite...
package com.fleet.alg; import java.util.ArrayList; import java.util.List; public class MedianFinder { static List<Integer> list = new ArrayList<>(); /** * initialize your data structure here. */ public MedianFinder() { } public static void addNum(int num) { // int i = 0; // ...
package com.osce.server.rest.user.role; import com.osce.api.user.menu.PfMenuService; import com.osce.api.user.role.PfRoleService; import com.osce.dto.user.role.PfRoleCommonDto; import com.osce.dto.user.role.PfRoleListDto; import com.osce.dto.user.role.PfRoleMenuDto; import com.osce.entity.SysRole; import com.osce.serv...
/* * MIT License * * Copyright (c) 2018 Alen Turkovic * * 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, copy, mo...