text
stringlengths
10
2.72M
package com.github.dmstocking.putitonthelist.grocery_list; import com.github.dmstocking.putitonthelist.PerController; import dagger.Subcomponent; @PerController @Subcomponent(modules = { GroceryListModule.class, }) public interface GroceryListComponent { void inject(GroceryListController controller); }
//Omar Mustafa Dalal 1180171 import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Scanner; //Class containing methods used to read input files public class ReadMethods { public static City[] readFiles(File cityFile, File connectionFile) { City[] cities = readCitie...
package com.literature.service.impl; import com.literature.entity.Permission; import com.literature.repository.PermissionRepository; import com.literature.service.IPermissionService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @...
package io.github.Theray070696.raycore.client.gui.widget; import net.minecraft.client.gui.FontRenderer; /** * Created by Theray070696 on 8/1/2017. */ public abstract class Widget { protected int xPos; protected int yPos; public abstract void keyTyped(char typedChar, int keyCode); public abstract v...
package com.fight.job.admin.thread; import com.fight.job.admin.dao.ExecutorInfoDao; import com.fight.job.admin.entity.ExecutorInfoEntity; import com.fight.job.core.enums.ExecutorStateEnum; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annot...
package com.tencent.mm.plugin.ipcall.ui; import com.tencent.mm.plugin.ipcall.a.i; import com.tencent.mm.plugin.ipcall.b.a; import com.tencent.mm.sdk.platformtools.ah; class b$1 implements Runnable { final /* synthetic */ b ktn; b$1(b bVar) { this.ktn = bVar; } public final void run() { ...
package com.lqs.hrm.util.entity; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.github.pagehelper.u...
package it.unica.pr2; import java.util.stream.Collectors; import java.util.*; public class Utente implements Tuitter{ private String nome; private TestTuitter.Data data; public Utente(String nome, TestTuitter.Data data){ this.nome = nome.toLowerCase(); this.data = data; } public String username(){ retu...
package com.github.pratzn.oss.common.aop; import java.lang.reflect.Array; import java.text.DateFormat; import java.util.Date; import java.util.LinkedHashSet; import java.util.Set; import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.builder.ReflectionToStringBuilder; import org.apache.com...
package com.example.OCP.advancedClassDesing.nestedClasses.variablesInNestedClass; /** * Created by guille on 10/14/18. */ public class privateInterface { private interface Secret { public void ssh(); } class DontTell implements Secret{ @Override public void ssh() { S...
package com.tencent.mm.plugin.appbrand.g.a; import com.tencent.mm.plugin.appbrand.g.a.f.a; class f$3 implements Runnable { final /* synthetic */ String fwG; final /* synthetic */ f geo; final /* synthetic */ a gep = null; f$3(f fVar, String str) { this.geo = fVar; this.fwG = str; ...
package com.lubarov.daniel.data.util; import java.io.IOException; import java.io.Reader; /** * @see IOUtils */ public final class RWUtils { private RWUtils() {} public static String readUntilEnd(Reader reader) throws IOException { StringBuilder sb = new StringBuilder(); int nRead; char[] data = new...
package datechooser.view; public enum WeekDaysStyle { FULL, NORMAL, SHORT; private WeekDaysStyle() {} } /* Location: /home/work/vm/shared-folder/reverse/ketonix/KetonixUSB-20170310.jar!/datechooser/view/WeekDaysStyle.class * Java compiler version: 5 (49.0) * JD-Core Version: 0.7.1 */
public class Worker { public void doWork() { System.out.println("Does unskilled work."); earnWage(); //doWork is PUBLIC //so it can be overriden in a subclass.-. } private void earnWage() { System.out.println("Earns minimum wage."); //Private //will n...
import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPubSub; import services.FibonacciService; @SpringBootApplication ...
//https://leetcode.com/problems/strobogrammatic-number-ii/discuss/358470/Java-easy-recursive-solution-with-explanation class Solution { public List<String> findStrobogrammatic(int n) { List<String>result = new ArrayList<>(); if (n%2==1) { insertStrobogrammatic(result, "1", n, 1); ...
package br.com.treinarminas.academico.classandobject; public class Pessoa { int idade; char sexo; String nome; // Nao é um tipo primitivo de dados Endereco endereco; }
package LeetCode.ArraysAndStrings; public class ExpressiveWords { int ans; public int expressiveWords(String S, String[] words) { ans = 0; for (String word : words) { if(isStretchy(word, S)) ans++; } return ans; } public boolean isStretchy(String s1, String s2){ int count1 ...
package es.salesianos.controller; import java.util.Random; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapp...
package controlador; import java.io.IOException; import org.activiti.engine.delegate.DelegateTask; import org.activiti.engine.delegate.TaskListener; import alfrescoConection.InteractiveAuthentication; public class LoginAlfresco implements TaskListener{ public void notify(DelegateTask delegateTask) { // Se obtie...
package com.craw_data.models; import java.util.HashSet; import java.util.Objects; import java.util.Set; public class Category { private String categoryId; private String title; Set<Topic> topics = new HashSet<>(0); public String getCategoryId() { return categoryId; } public void set...
package Concurrency.ConcurrentPackage; import java.util.Random; import java.util.concurrent.ArrayBlockingQueue; public class MyProducer implements Runnable { private final ArrayBlockingQueue<String> buffer; private String color; public MyProducer(ArrayBlockingQueue<String> buffer, String color) { ...
package communication.netty; /** * This enum contains different types of data a {@link io.netty.handler.codec.http.websocketx.WebSocketFrame} may contain. */ public enum FrameType { Binary, Text, Undefined; }
package com.steven.base.util.RecyclerView; /** * @user steven * @createDate 2019/4/3 10:07 * @description Item移动后 触发 */ public interface OnItemMoveListener { void onItemMove(int fromPosition, int toPosition); }
package com.example.jbarrientos.bilbapp.Presenter.Activities; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ListView; import android.widget.Toast; import com.example.jbarrientos.bilbapp.Presenter.Adapters.QualificationOfSitiosAdapter; import com.example.jbarrientos.b...
package com.ck.hello.nestpullview; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.ViewGroup; import android.widget.TextView; import com.ck.hello.nestrefreshlib.View.Refr...
package com.test; public class Game { private String name; private String team; private String torunament; private String manager; public Game() { } public Game(String name, String team, String torunament, String manager) { super(); this.name = name; this.team = team; this.torunament = t...
package com.onplan.service.impl; import com.onplan.domain.transitory.VirtualMachineInfo; import com.onplan.service.VirtualMachineService; import javax.inject.Singleton; import java.lang.management.GarbageCollectorMXBean; import java.lang.management.ManagementFactory; import java.util.Collection; @Singleton public fi...
package com.tkb.elearning.action.admin; import java.io.IOException; import java.util.List; import com.tkb.elearning.model.AboutLaw; import com.tkb.elearning.service.AboutLawService; import com.tkb.elearning.util.UploadUtil; import com.tkb.elearning.util.VerifyBaseAction; import sso.spring.DeployInfoUtil; public cl...
package br.ufmg.ppgee.orcslab.upmsp.algorithm; import br.ufmg.ppgee.orcslab.upmsp.problem.Problem; import br.ufmg.ppgee.orcslab.upmsp.problem.Solution; import java.util.HashMap; import java.util.Map; import java.util.Random; /** * Base class for algorithms that process the input parameters to avoid {@code null} val...
package uk.gov.ons.ctp.response.action.export.domain; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; i...
package exercise_chapter6; import java.util.Scanner; public class exercise_6_4 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("input a nubmer: "); int number = input.nextInt(); System.out.println("the reverse is : " + reverse(number)); ...
package com.tencent.mm.ui; import com.tencent.mm.sdk.platformtools.ah; import com.tencent.mm.sdk.platformtools.x; class aa$10 implements Runnable { final /* synthetic */ aa toC; aa$10(aa aaVar) { this.toC = aaVar; } public final void run() { if (this.toC.tox) { x.i("Micro...
package symmetric_tree.v3; class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } } public class Solution { public boolean isSymmetric(TreeNode root) { return this.isMirror(root, root); } private boolean isMirror(TreeNode t0, TreeNode t1) { while (t0 != null && t1 != nul...
/* * Copyright 2018 original 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 or agreed to...
package se.kth.iv1350.pointofsale.view; import se.kth.iv1350.pointofsale.model.SaleDTO; import se.kth.iv1350.pointofsale.model.SaleObserver; /** * Displays the total revenue of all sales since the program started. */ public class TotalRevenueDisplay implements SaleObserver { private int totalRevenue; /** ...
package com.tencent.mm.pluginsdk.ui.preference; import android.content.Context; import android.graphics.Bitmap; import android.util.AttributeSet; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; impor...
package schr0.tanpopo.block.itemblock; import net.minecraft.block.Block; import net.minecraft.item.ItemBlock; public class ItemBlockEssenceCharcoalBlock extends ItemBlock { public ItemBlockEssenceCharcoalBlock(Block block) { super(block); } }
// Copyright 2014 The Chromium Authors. 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.chromium.chrome.browser.tabmodel; import org.chromium.chrome.browser.Tab; /** * Observes changes to the tab model selector. */ public inte...
/* * 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 modelo; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLExcep...
package com.mengdo.pub.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.Inet4Address; import java.net.InetAddress; impor...
package com.cse308.sbuify.label.payment; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.repository.CrudRepository; public interface PaymentRepository extends CrudRepository<Payment, Integer> { Page<Payment> findAllByStatusAndPeriod_Id(...
/** * Establishes the Isoceles Triangle class, extending EquilaterialTriangle, and constructor! * * @author C. Thurston * @version 5/1/2014 */ public class IsoscelesTriangle extends EquilateralTriangle { private double sideB; public IsoscelesTriangle(double A, double B) { super(A); this.sideB = B; } pub...
package creational.design.pattern.Factory; public class AlgorithmFactory { public static final int SHORTEST_PATH = 0; public static final int SPANNING_TREE=1; public static AlgorithmInterface createAlgorithm(int type) { switch (type) { case SHORTEST_PATH: return new Shortes...
package com.croxx.hgwechat.model.didiumbrella; import com.fasterxml.jackson.annotation.JsonIgnore; import javax.persistence.Entity; import javax.persistence.Id; import java.util.Date; @Entity public class DidiUmbrellaUser { @Id @JsonIgnore private String openid; @JsonIgnore privat...
package gui.resources; import gui.left_panel.PanelElements; import javafx.scene.image.Image; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import static gui.resources.Constants.*; public class Images { private static final Map<String, Image> images = new HashMap<>(); public st...
package com.tencent.mm.plugin.extqlauncher; import com.tencent.mm.model.au; import com.tencent.mm.model.c; import com.tencent.mm.sdk.e.m; import com.tencent.mm.sdk.e.m.b; import com.tencent.mm.sdk.platformtools.ad; import com.tencent.mm.sdk.platformtools.x; class b$1 implements b { final /* synthetic */ b iLM; ...
package com.learn_basic.lock; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class CountDownLatchDemo { public static void main(String[] args) throws InterruptedException { // 创建一个具有固定线程数量的线程池对象(推荐使用构造方法创建) ...
/* * Copyright (c) 2016. Universidad Politecnica de Madrid * * @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es> * */ package org.librairy.modeler.lda.tasks; import com.google.common.collect.ImmutableMap; import com.google.common.primitives.Doubles; import org.apache.spark.api.java.JavaRDD; import org.apache.s...
package codewars; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; import static java.util.Arrays.stream; /** * Given an array, find the int that appears an odd number of times. * * There will always be only one intege...
/** * */ package kit.edu.pse.goapp.server.tests; import static org.junit.Assert.assertEquals; import java.io.IOException; import org.junit.Test; import org.mockito.Mockito; import kit.edu.pse.goapp.server.daos.DatabaseConnection; import kit.edu.pse.goapp.server.daos.UserDaoImpl; import kit.edu.pse....
package com.example.healthmanage.ui.activity.consultationinfo; import android.os.Bundle; import android.widget.RadioGroup; import androidx.lifecycle.Observer; import androidx.recyclerview.widget.LinearLayoutManager; import com.example.healthmanage.BR; import com.example.healthmanage.R; import com.example.healthmanag...
package com.zmyaro.ltd; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class TitleActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.on...
package com.es.phoneshop.model.product.Cart; import com.es.phoneshop.model.product.Product; import com.es.phoneshop.model.product.exceptions.OutOfStockException; import com.es.phoneshop.model.product.exceptions.ProductNotFoundException; import javax.servlet.http.HttpSession; public interface CartService { Cart g...
package ru.lischenko_dev.fastmessenger.adapter; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView;...
package HomeWork_2; public class Circle { double r; // radius of Circle double d; // diameter of Circle public double getLength() { // length of Circle double l; return l = 2 * 3.14 * r; } public double getArea() { // area of Circle double a; return a = 3.14 * (d * d / 4); } } ...
package com.baixiaowen.javaconcurrencyprogramming.singleton单例模式8种写法; /** * 描述: 饿汉式:(静态常量) [可用] * * 优点:比较简单,在类加载的时候就已经完成了初始化 */ public class Singleton饿汉式静态代码块2 { private final static Singleton饿汉式静态代码块2 INSTANCE; static { INSTANCE = new Singleton饿汉式静态代码块2(); } pr...
package com.spring1.Service; /** * com.spring1.Service * * @author jh * @date 2018/8/21 16:54 * description: */ public interface UserService { void save(); void delete(); void update(); void find(); }
package com.olal.caclulator.model; import org.postgresql.util.PGInterval; import javax.persistence.*; import java.io.Serializable; import java.util.Date; import java.util.Set; @Entity @Table(name = "recipes") public class Recipe implements Serializable { private Integer id; private String name; private bo...
package it.unica.pr2.attrezzaturaNautica; import java.util.*; public class Timone extends AttrezzaturaNautica{ private Integer angle; public Timone(Integer angle){ this.angle = angle; } public Integer getAngle(){ return this.angle; } public void imposta(Integer angle){ this.angle = angle; } @Ove...
package my.battleships.Players; public enum FiringResult { MISS("MISS"), HURT ("you HURT the ship!"), DROWNED("enemy's ship was DROWNED..."), MINE(" have struck the MINE!"), MINE_SACRIFICE(" exploded on the enemy's mine... RIP, dear :("); String status; FiringResult(String status) { ...
package com.algorithms4.sort; /** * Created by saml on 11/1/2017. */ public class ShellSort extends SortTemplate { public static void sort(Comparable[] a) { int h = 1; while (h < a.length / 3) { h = 3 * h + 1; } while (h >= 1) { for (int i = h; i < a.leng...
package com.company; public class Airplane { private int airplaneID; private int rows; private int columns; private int businessClassRows; private String airplaneDescription; public String getAirplaneDescription() { return airplaneDescription; } public void setAirplaneDescri...
/* * [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.zpjr.cunguan.common.base; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.net.Uri; import android.text.TextUtils; import android.view.Gravity; import android.view.View; ...
package entity; import com.fasterxml.jackson.annotation.JsonManagedReference; import javax.persistence.*; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; import java.util.ArrayList; import java.util.List; @Entity @XmlRootElement ...
package com.tencent.mm.ui.conversation; import com.tencent.mm.sdk.platformtools.al.a; class d$1 implements a { final /* synthetic */ d uom; d$1(d dVar) { this.uom = dVar; } public final boolean vD() { if (d.d(this.uom)) { d.e(this.uom); } return false; ...
/* * 66661 MOHAMAD HAIDIL BIN IDRIS * 66783 MUHAMMAD AIMAN BIN MOHD AZMI * 67872 SYAZZWA NATASYA BINTI MOHD ZAIDI * 66477 LIM AI XIN * 64631 AMNAH NADIAH BINTI SUFIAN */ import java.util.Scanner; public class Assignment { public static void main(String[] args) { Scanner scan = new Sca...
package Lambda; public interface Interf1 { public void add(int a,int b); static void m2() { System.out.println("static method"); } default void m1() { System.out.println("default method"); } }
package enstabretagne.BE.AnalyseSousMarine.SimEntity.SousMarin; import enstabretagne.BE.AnalyseSousMarine.SimEntity.MouvementSequenceur.EntityMouvementSequenceurInit; import enstabretagne.simulation.components.data.SimInitParameters; public class EntitySousMarinInit extends SimInitParameters { private EntityMouvemen...
package com.Oovever.easyHttp.util; import com.Oovever.easyHttp.exception.JSONException; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationFeature; import com.faste...
/* * 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 TFD.DomainModel; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedVa...
import java.io.InputStream; import java.util.Scanner; public class Menu { public Menu(InputStream is) { this.scanner = new Scanner(is); } public int character() { System.out.println("Character 1 - Press 1"); System.out.println("Character 2 - Press 2"); boolean validKey = false; in...
package loops; import java.util.Scanner; public class table { public void tab(){ int i; Scanner nn = new Scanner(System.in); System.out.println("Please enter n value:-"); int n = nn.nextInt(); for(i=1;i<=n;i++){ if(i%3 != 0 && i%5 != 0 && i%7 != 0){ ...
package controllers.travelbusiness; import java.io.File; import java.io.FileOutputStream; import java.io.UnsupportedEncodingException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import ja...
package com.example.accounting_app.fragment; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Linear...
package com.jack.rookiepractice.test; import lombok.Data; /** * @author jack * @Classname Student * Create by jack 2019/12/19 * @date: 2019/12/19 21:31 * @Description: */ @Data public class Student { private int age; private String name; }
package com.milos.domain.util; import java.util.Date; public class TimeUtil { public static long diffInMillis(Date dt1, Date dt2) { return Math.abs(dt1.getTime() - dt2.getTime()); } }
package jupiterpa.masterdata; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import static org.hamcrest.Matchers.*; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframewo...
/* 什么时候使用静态? 从两方面下手: 1.什么时候定义静态变量(类变量)❓ 对象中出现共享数据(数据指的是具体值,张三,而不是属性,name), 该数据被静态所修饰,存在于 内存共享区(数据区); 而对象中特有的数据要定义成非静态存在于堆内存 2.什么时候定义静态函数❓ 当功能内部没有访问到非静态数据( 对象特有的数据, 对象还没创建,主要意思是拿不到的数据,像在它之前出现在栈中的数据都是可以的), 那么该功能可以定义为静态的。 静态的应用 若每一个应用程序中都有共性的功能,可以将这些功能抽取,独立封装,以便复用 */ // class StaticDemo{ // public sta...
package com.devinchen.library.common.base.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import com.devinchen.library.common.base.holder.BaseHolder; import java.util.List; import java.util.Random...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package atm; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.*; import javax.swing.*; /** * * @author Moustafa(DAR4) */ public class check extends JFrame implements ActionL...
package au.gov.ga.geodesy.igssitelog.support.marshalling.moxy; import org.hamcrest.Matcher; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Test; import org.junit.matchers.JUnitMatchers; import java.time.Instant; import static org.junit.Assert.*; /** * Cre...
package com.example.enroute.demo.application; import java.net.InetAddress; import java.net.UnknownHostException; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.UUID; import org.osgi.service.component.annotations.Component; import org.slf4j.Logger; import org.slf4j.LoggerFa...
package DataStructures; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import java.util.Vector; public class GraphicData { Vector<NodeData> list = new Vector<>(); //Creates a new NodeData and inserts it into the list public void newNode(String text, Double x, Double y){ N...
package com.tencent.mm.model; import com.tencent.mm.protocal.c.ajs; import com.tencent.mm.protocal.k; import com.tencent.mm.protocal.k.c; import com.tencent.mm.protocal.k.e; public class az$b extends e implements c { public ajs dBV = new ajs(); public final int G(byte[] bArr) { this.dBV = (ajs) new a...
package com.fleet.netty.server.config; import com.alibaba.fastjson.JSON; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author April Han */ public class NettyServerHandler extends ChannelInboundHand...
package com.duanxr.yith.easy; import java.util.Stack; /** * @author 段然 2021/6/30 */ public class ComplementOfBaseTenInteger { /** * Every non-negative integer n has a binary representation.  For example, 5 can be represented as "101" in binary, 11 as "1011" in binary, and so on.  Note that except for n = 0, t...
package com.tencent.mm.plugin.appbrand.appcache; import com.tencent.mm.a.e; import com.tencent.mm.sdk.d.c; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import java.io.File; import org.json.JSONObject; class j$1 extends c { final /* synthetic */ j ffE; j$1(j jVar) { ...
package cine; public class Ticket { public Ticket() { // TODO Auto-generated constructor stub } }
package com.Collections_PriorityQueue_HashMap_TreeMap; //2. Write a Java program to copy a Tree Map content to another Tree Map. import java.util.TreeMap; public class TreeMap_CopyContent { public static void main(String args[]) { // Create a tree map TreeMap<String, String> tree_map1 = new TreeMap<S...
package com.action; import com.entity.Usera; import com.hibernate.HibernateSessionFactory; import java.io.PrintStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.apache.struts2.ServletActionContext; import org.hibernate.Query; import org.hibernate.Session; public...
package ch.epfl.seti.server; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.NavigableMap; import j...
package com.pawi.data.enums; /** * The {@link ResultType} enumeration represents the result type of a {@link Result} It is used as well to sort the results into the output file. The order the * enumerations are set here is the same order, they are formatted into the output file. **/ public enum ResultType { ALL_WO...
public class Widget { private double widgetsPerHour = 10.0; private int shifts = 2; private int hoursPerShift = 8; private int numWidgets; public void setNumWidgets(int n) { numWidgets = n; } public int getNumWidgets() { return numWidgets; } public double getDaysToProduce() { double widgetsPerDa...
package com.base.crm.product.entity; import com.base.common.util.PageTools; public class ProductAssort { private Long id; private String assortName; private String status; private String updatedDate; private String createdDate; public Long getId() { return id; ...
package br.org.funcate.glue.tool; import java.awt.Cursor; import java.util.ArrayList; import java.util.EventObject; import java.util.List; import br.org.funcate.eagles.kernel.dispatcher.EventHandler; import br.org.funcate.eagles.kernel.listener.ListenersHandler; import br.org.funcate.eagles.kernel.listener.ListenersH...
public class JSONFileParser implements MyCustomFileParserInterface{ String text; String fileType = "JSON"; @Override public void setText(String text) { this.text = text; } @Override public void findWord(String word) { System.out.println("Searching for a word in...
package samples.findbugs; public class HashCodeContainsEquals { private static final int LONG_SHIFT_VALUE = 32; private final long id; private final long version; public HashCodeContainsEquals(final long id, final long version) { this.id = id; this.version = version; } @Override public int hashCode() { ...
package org.newdawn.slick.tests; import java.nio.FloatBuffer; import org.lwjgl.BufferUtils; import org.lwjgl.opengl.GL11; import org.newdawn.slick.AngelCodeFont; import org.newdawn.slick.Animation; import org.newdawn.slick.AppGameContainer; import org.newdawn.slick.BasicGame; import org.newdawn.slick.Game; import org....