text
stringlengths
10
2.72M
package com.stk123.spring.jpa.repository; import com.stk123.spring.jpa.entity.StkDataIndustryPeEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface StkDataIndustryPeRepository extends JpaRepository<StkDataIndustryPeEntity,...
package com.itheima.service.impl; import com.itheima.dao.impl.UserDaoImpl; import com.itheima.domain.PageBean; import com.itheima.domain.User; import com.itheima.service.UserService; import java.util.List; import java.util.Map; public class UserServiceImpl implements UserService { @Override public List<User> find...
package com.example.api_gastos; import android.app.ProgressDialog; import android.content.Context; import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widge...
package com.aoineko.common; import com.aoineko.entity.SysUserDetail; import com.aoineko.entity.User; import com.aoineko.service.UserService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.Authent...
package com.allmsi.plugin.open.controller; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; impo...
package org.usfirst.frc.team319.robot.subsystems; import edu.wpi.first.networktables.NetworkTable; import edu.wpi.first.networktables.NetworkTableEntry; import edu.wpi.first.networktables.NetworkTableInstance; import edu.wpi.first.wpilibj.command.Subsystem; public class Acubeulator extends Subsystem { NetworkTabl...
package com.lsjr.zizi.mvp.home.session; import android.app.AlertDialog; import android.content.ComponentName; import android.content.DialogInterface; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.text.InputFilter; import and...
package me.msce; import com.sun.org.apache.xpath.internal.operations.Bool; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.craftbukkit.v1_8_R3.entity.CraftArmorStand; import org.bukkit.entity.ArmorStand; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.e...
/** * Copyright (C) Alibaba Cloud Computing, 2012 * All rights reserved. * * 版权所有 (C)阿里巴巴云计算,2012 */ package com.aliyun.oss.common.comm; import com.aliyun.oss.ClientException; import com.aliyun.oss.ServiceException; import com.aliyun.oss.common.comm.ServiceClient.Request; /** * 对即将发送的请求数据进行预处理 * */ public i...
package com.arch.dependencyrule.presentation; import com.arch.dependencyrule.application.OutputBoundary; import com.arch.dependencyrule.application.StudentOutputPOJO; public class Presenter implements OutputBoundary { @Override public StudentViewModelPOJO presentStudent(StudentOutputPOJO outputPOJO) { ...
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.util.ArrayList; import java.util.List; public class SaveUrlContents { public static void saveUrlCont...
package views.elements.drawers; import views.elements.EntitiesDrawer; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import com.badlogic.gdx.utils.Array; import engine.Values; import engine.utils.general.AssetsLoader; i...
package com.zundrel.ollivanders.api.cores; public interface ICoreItem { /** * Returns the core of this core item. * * @return The core. */ ICore getCore(); }
package com.algorithm.tree; import java.util.*; public class LargestValues { public List<Integer> largestValues(TreeNode root) { if(root == null){ return Collections.emptyList(); } List<Integer> list = new ArrayList<Integer>(); Queue<TreeNode> queue = new LinkedList();...
/** * Transaction SPI implementation for JTA. */ @NonNullApi @NonNullFields package org.springframework.transaction.jta; import org.springframework.lang.NonNullApi; import org.springframework.lang.NonNullFields;
package com.lt.demo.domen.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import com.lt.demo.domen.Occasion; import com.vladmihalcea.hibernate.type.basic.PostgreSQLEnumType; import lombok.Data; import org.hibernate.annotations.Type; import org.hibernate.annotations.TypeDef; import javax.persistence.Cascad...
package com.example.expensemanager; import androidx.appcompat.app.AppCompatActivity; import androidx.cardview.widget.CardView; import android.content.Intent; import android.os.Bundle; import android.view.View; public class Main10Activity extends AppCompatActivity implements View.OnClickListener{ private CardVie...
package client; import java.awt.BorderLayout; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ...
package com.shahinnazarov.gradle.models.k8s; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.util.ArrayList; import java.util.List; @JsonPropertyOrder( { "nodeSelectorTerms", } ) public final class RequiredNo...
package com.arthur.leetcode; /** * @title: No83 * @Author ArthurJi * @Date: 2021/3/16 10:18 * @Version 1.0 */ public class No83 { public class ListNode { int val; ListNode next; ListNode() { } ListNode(int val) { this.val = val; } ListNod...
package com.cheese.radio.ui.user.profile.popup; import android.os.Bundle; import android.view.View; import com.binding.model.adapter.recycler.RecyclerSelectAdapter; import com.binding.model.model.ModelView; import com.binding.model.model.PopupRecyclerModel; import com.cheese.radio.R; import com.cheese.radio.base.cycl...
package com._520it.web.category; import java.io.IOException; import java.sql.SQLException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServle...
package com.badawy.carservice.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; i...
import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Dictionary; import java.util.Scanner; public class Array { static ArrayList <Declension> s= new ArrayList <Declension>(); static ArrayList <Declension> c= new ArrayList <Declension>(); static ArrayList <Word> im...
package com.leetcode; import java.util.LinkedList; import java.util.Queue; public class PrintTree { public static void print(TreeNode root){ if(root!=null){ Queue<TreeNode> list = new LinkedList<>(); list.add(root); System.out.print(" ["+root.val+"] "); TreeNode curNode; ...
package ejercicio18; import java.util.Scanner; /** * * @author Javier */ public class Ejercicio18 { int numero; Ejercicio18() { dameNumero(); } void dameNumero() { Scanner entrada = new Scanner(System.in); System.out.print("Introduce el numero: "); numero = ent...
package com.buddybank.mdw.dataobject.adapter; import java.time.OffsetDateTime; import java.time.format.DateTimeParseException; import javax.xml.bind.annotation.adapters.XmlAdapter; import org.apache.commons.lang3.StringUtils; import com.buddybank.mdw.common.util.DateUtils; import com.buddybank.mdw.dataobject.domain...
import java.util.*; public class bankers { void safe(int avail[], int alloc[][], int max[][], int need[][], int n, int m) { boolean[] finish = new boolean[n]; Arrays.fill(finish, false); boolean fnd = false; int cnt = 0; int work[] = avail; int[] safe_seq = new int[n]; while(cnt < n) { int...
package ru.job4j.array; /** * Перевернуть массив. * @author solovev (sovliv@yandex.ru) * @since 26.01.2019 */ public class Turn { /** * Метод переварачивает массив. * @param array входной массив. * @return перевернутый массив. */ public int[] back(int[] array) { for (int i = ...
package ru.job4j.monitsync; import java.util.Objects; /** * Class User реализует сущность Пользователь. * * @author Gureyev Ilya (mailto:ill-jah@yandex.ru) * @version 1 * @since 2017-07-25 */ class User implements Comparable<User> { /** * Идентификатор пользователя. */ private int id; /** ...
package obj; import java.util.ArrayList; import java.util.List; /** * Recipe class of Cookoff. Contains a list of instructions along with other small data points. * @author KFed * */ public class Recipe { /** * The unique id of this Recipe */ private int rec_id; /** * The user_id of the creator of thi...
package com.lrms.controller; import java.math.BigDecimal; import java.sql.Date; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired...
package pers.mine.scratchpad.guava; import org.junit.Test; import com.google.common.base.Objects; /** * * @author Mine * @date 2019/06/24 18:53:49 */ public class ObjectsTest { /** * 安全的equal */ @Test public void equalTest() { String a = null; String b = null; System.out.println(a == b);//true ...
package com.wirelesscar.dynafleet.api; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apa...
import java.util.Scanner; public class PrimeNumber { private int n; Scanner scan = new Scanner(System.in); public void scanNumber() { System.out.print("Range 1-"); setN(); System.out.print("Prime Numbers: "); for (int i = 1; i <getN(); i++) { if (i==1) contin...
public class CircularQueue { int SIZE = 5; // Size queue int front, rear; int items[] = new int[SIZE]; CircularQueue() { front = -1; rear = -1; } // Cek Queue Full boolean isFull() { if (front == 0 && rear == SIZE - 1) { return true; ...
/** * https://www.hackerrank.com/challenges/candies/problem tag: #greedy #divide-and-conquer * #binary-search */ import java.util.Scanner; class Candies { public static void concatnate(int[] arr, int left, int right, int mid, int[] result) { if (arr[mid] < arr[mid + 1]) { if (result[mid] >= result[mid +...
package com.gsn.common.mq.service; import com.gsn.utils.JsonUtils; import com.gsn.utils.LogUtils; import com.gsn.utils.MqUtils; import com.rabbitmq.client.Channel; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.PostConstruct; impor...
package com.hunger.rpc.serialize; import io.netty.channel.ChannelPipeline; /** * rpc序列化帧 * Created by 小排骨 on 2018/1/10. */ public interface RpcSerializeFrame { /** * 为相应的channel选择序列化协议 * @param protocol 协议 * @param pipeline channel的流水线 */ void select(RpcSerializeProtocol protocol, Chan...
package cn.v5cn.v5cms.controller; import cn.v5cn.v5cms.service.SystemResService; import cn.v5cn.v5cms.entity.SystemRes; import cn.v5cn.v5cms.entity.wrapper.ZTreeNode; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stere...
/* * 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 es.albarregas.beans; import java.io.Serializable; import java.util.Date; import javax.persistence.DiscriminatorValue; import j...
package com.wsy; import com.jfinal.core.JFinal; /** * Created by Lenovo on 2017/10/13. */ public class Main { public static void main(String[] args) { JFinal.start("src/main/webapp", 3001, "/"); } }
package cn.e3mall.jedis; import java.util.HashSet; import java.util.Set; import org.junit.Test; import redis.clients.jedis.HostAndPort; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisPool; public class JedisTest { @Test public void testJ...
package com.restapi.converter; import com.restapi.model.Gedanke; import org.bson.Document; public class GedankeDTOConverter { public static Gedanke docToGedanke(Document doc) { String username = (String) doc.get("autor"); String situation = (String) doc.get("situation"); String bewertung...
package ch03; import java.util.*; public class Ch03_03_Minju { public static void main(String[] args) { int n; int m; Scanner sc = new Scanner(System.in); System.out.print("행의 개수와 열의 개수를 차례로 입력하세요 ->"); n = sc.nextInt(); //3 m = sc.nextInt(); //3 System.out.print("숫자를 입력하세요1 ->"); int arr1[...
public class TestaFor { public static void main(String[] args) { for (int contador = 0; contador <= 10 ; contador++){ System.out.println(contador); } //esse sysout não vai funcionar, pois o contador está no escopo do for //System.out.println(contador); } }
package com.nfschina.aiot.activity; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditTe...
package com.geeklib.util; import java.net.InetAddress; import java.net.UnknownHostException; /** * 网络工具类 封装了IP地址,网段,地址段等,并提供网络广播等功能 * * @author Geek1st * */ public class NetworkUtil { private static InetAddress IPAddress = null; private static InetAddress segment = null; public static InetAddress getIPAddr...
package exercicios_método; import java.util.Scanner; public class Resposta_n2 { public static void main(String[] args) { Scanner leitor = new Scanner(System.in); int x,y; double soma=0; int v=1; System.out.println("Digite dois números com valores diferentes: "); System.out.println(); ...
package com.ecej.nove.interceptor; import com.alibaba.dubbo.common.utils.NetUtils; import com.alibaba.fastjson.JSON; import com.ecej.nove.base.monitor.NoveMonitor; import com.ecej.nove.base.monitor.NoveMonitorFactory; import com.ecej.nove.base.po.MonitorBase; import com.ecej.nove.utils.common.PropertyConfigUtils; impo...
package org.dimigo.oop2; public class Single { private static Single a; private Single() { } public static Single get() { return a; } public static synchronized Single get2() { if(a==null) { a = new Single(); } return a; } }
package algo3.fiuba.modelo.excepciones; public class JugadorInhabilitadoParaColocarCartasExcepcion extends RuntimeException { public JugadorInhabilitadoParaColocarCartasExcepcion(String message) { super(message); } }
/* * 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 UI; import Logique.Categorie; import Logique.Chambre; import Logique.Clients; import Logique.Etages; import Logique.Generalite...
/* * Copyright 2018, Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.test; import io.strimzi.test.k8s.KubeClient; import io.strimzi.test.k8s.KubeClusterResource; import org.junit.Assert; import org.junit.Assume; import org.j...
/* * 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 model; /** * * @author labingsoftutb */ public class Corrientes extends Cuentas { private double limiteCredito; pr...
package com.buildud.server; import com.buildud.config.RtspConfig; import com.buildud.service.IBudCodeService; import io.netty.bootstrap.Bootstrap; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.*; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel; import io...
package com.group.etoko.Network; import androidx.annotation.NonNull; import com.group.etoko.BuildConfig; import java.io.IOException; import okhttp3.HttpUrl; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; public class QueryParameterInterceptor implements Interceptor { @Override ...
/******************************************************************************* * Copyright 2012 Ivan Morgillo * * 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.apach...
import java.util.*; /* * @lc app=leetcode.cn id=37 lang=java * * [37] 解数独 */ // @lc code=start class Solution { boolean[][] usedRow = new boolean[9][9]; boolean[][] usedColumn = new boolean[9][9]; boolean[][] usedBlock = new boolean[9][9]; public void solveSudoku(char[][] board) { for (int...
package com.gaby.util; import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.awt.image.RenderedImage; import java.io.IOException; import java.io.OutputStream; /** *@discrption:验证码 *@user:Gaby *@createTime:2019-03-17 22:24 */ public class VirifyCode { private String text...
package com.example.demo.dao; import com.example.demo.Entity.Article; import org.apache.ibatis.annotations.Mapper; @Mapper public interface ArticleDao { int deleteByPrimaryKey(Long id); int insert(Article record); int insertSelective(Article record); Article selectByPrimaryKey(Long id); int up...
package com.mygdx.game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; public class Button { private Texture texture; private int x; private int y; Button(String textureName){ texture = new Texture(textureName); } public void free(){ texture.dispose();...
/* * Copyright 2002-2022 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.wizinno.shuhao.manage.controller; import com.wizinno.shuhao.condition.UserCondition; import com.wizinno.shuhao.controller.BaseController; import com.wizinno.shuhao.data.PageDataVO; import com.wizinno.shuhao.data.ResponseVO; import com.wizinno.shuhao.device.data.DeviceDto; import com.wizinno.shuhao.exceptio...
package Network_Module.NettyClient; import Account_Module.util.SerializeUtils; import Network_Module.Message; import Network_Module.NetworkConstant; import Network_Module.Node; import Network_Module.OTChannelInitializer; import io.netty.bootstrap.Bootstrap; import io.netty.channel.ChannelFuture; import io.netty.channe...
/* * 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 compiler.syntaxAnalyzer; import static compiler.syntaxAnalyzer.SyntaxAnalyzer.tokenList; import static compiler.syntaxAnalyzer...
package com.amber.async.handler; import com.amber.async.EventHandler; import com.amber.async.EventModel; import com.amber.async.EventType; import com.amber.service.MailSender; import com.amber.service.MessageService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.C...
import java.util.Scanner; public class example32_01 { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Введите целое число в диапазоне от 1 до 7:"); //запрос try { int day = in.nextInt(); String dayString; switch (day) { ...
package exam3; import java.util.Random; public class ThreadLocalExample4 { public static void main(String[] args) { ThreadLocalThread thread1 = new ThreadLocalThread(); ThreadLocalThread thread2 = new ThreadLocalThread(); ThreadLocalThread thread3 = new ThreadLocalThread(); ThreadLocalThread thread4 = new T...
package application; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.Pane; import javafx.scene.text.Text; public class Player extends GameObject { private boolean alive; private int lives; private Image img = new Image("ufo.png"); private ImageView img...
package com.skytech.skytourism; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SkyTourismApplication { public static void main(String[] args) { SpringApplication.run(SkyTourismApplication.class, a...
package hwarang.artg.common.model; import lombok.Data; @Data public class AirportCodeDTO { private String cityCode; //도시코드 3 필수 KWJ 도시코드 private String cityKor; //도시명(한국어) 40 옵션 광주 도시명(한국어) private int numOfRows; //열 숫자 4 필수 10 열 숫자 private int pageNo; //페이지 번호 4 필수 1 페이지 번호 private int totalCount; //데이터 총계 5 필수...
// Implementation of Canine Animal Species // Overrides Animal methods abstract class Canine extends Animal { public String WakeUp() { return name_ + " wakes up."; } public String Eat() { return name_ + " eats."; } public String Roam() { return name_ + " roams."; ...
package co.company.test.config; import javax.annotation.Resource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Component; //직접 빈 등록 해볼꺼임 @Component public class TV { //@Autowired //@Q...
package com.appirio.service.member.api; import com.appirio.service.member.marshaller.MemberProfileSettings; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.In...
package beans; import java.io.Serializable; import dao.UserDao; import pojo.User; public class UserBean implements Serializable { private static final long serialVersionUID = 2462582538355598128L; private String userName; private String password; private String email; private String contactNumber; private Stri...
package commands.client.game.sync.player; import cards.equipments.Equipment.EquipmentType; import core.GameState; import exceptions.server.game.InvalidPlayerCommandException; public class SyncUnequipGameClientCommand extends AbstractSyncPlayerClientCommand { private static final long serialVersionUID = -49751312967...
package com.tang.manytomany.model; import java.util.List; /** * Student vo * @author TangXW * */ public class Student { private int sId; private String sName; private List<Course> courses; public int getSId() { return sId; } public void setSId(int id) { sId = id; } public String getSName() { return ...
package ShenQianCopy; public class Student implements Cloneable { private String name; private Address address; public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public String getName() { return n...
/** * Sencha GXT 3.0.1 - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.explorer.client.chart; import java.util.ArrayList; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; ...
package com.hackathon.edxchange.userservice; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class EdxchangeUserServiceApplication { public static void main(String[] args) { SpringApplication.run(EdxchangeUserSer...
package com.easymall.web; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet(nam...
package com.example.batch.issue.lazyexception.infrastructure.persistence.repository; import com.example.batch.issue.lazyexception.infrastructure.persistence.entity.PurchaseOrder; import org.springframework.data.jpa.repository.JpaRepository; public interface PurchaseOrderRepository extends JpaRepository<PurchaseOrder,...
package Spark.SparkBasicOperations.manish; public class Test { public static void main(String args[]){ String response = cleanLastName("Mehra MR"); System.out.println(response); } /** The Constant CHARACTERS_REMOVE_REGEX. */ public static final String CHARACTERS_REMOVE_REGEX = "/...
// https://leetcode.com/problems/jump-game-ii/solution/ // https://www.youtube.com/watch?v=dJ7sWiOoK7g class Solution { public int jump(int[] nums) { int jumps = 0, currentJumpEnd = 0, farthest = 0; for (int i = 0; i < nums.length - 1; i++) { farthest = Math.max(farthest, i + nums[i]); ...
package com.itheima.health.service.impl; /** * @Author: ZhangYongLiang * @Date: 2020/10/1 12:37 **/ import com.alibaba.dubbo.config.annotation.Service; import com.alibaba.fastjson.JSON; import com.itheima.health.dao.MenuDao; import com.itheima.health.pojo.Menu; import com.itheima.health.service.MenuService; import...
package com.cssl.oop.demo08; import java.util.Scanner; public class Text { public static void main(String[] args) { Scanner input = new Scanner(System.in); San san = new San(); String xuanZe = " "; do { System.out.print("请输入第一条边:"); int a = input....
package com.mec.datareceiver; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.jms.JMSException; import javax.jms.MessageProducer; import org.apache.log4j.Logger; import org.springframework.jms.JmsException; import com.mec.twitter...
package com.jaiaxn.design.pattern.structured.proxy.cglib; /** * @author: wang.jiaxin * @date: 2019年08月26日 * @description: **/ public class Engineer { public void work(){ System.out.println("working..."); } public final void sleep(){ System.out.println("sleeping..."); } privat...
package com.controller; import com.Dao.UserDao; import com.entity.User; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; imp...
package com.twuc.shopping; import com.fasterxml.jackson.databind.ObjectMapper; import com.twuc.shopping.controller.CommodityController; import com.twuc.shopping.domin.Commodity; import com.twuc.shopping.domin.Order; import com.twuc.shopping.entity.CommodityEntity; import com.twuc.shopping.entity.OrderEntity; import co...
package KataProblems.PipiNumbers; import org.junit.Test; import java.math.BigInteger; import static junit.framework.TestCase.assertEquals; public class JomoPipiTest { @Test public void test0() { assertEquals(BigInteger.ZERO, JomoPipi.pipi(0)); } @Test public void test1() { assert...
/* * Trafic scotland RSS viewer * Code by Matthew Metcalfe S1103282 */ package org.me.myandroidstuff; import android.app.TabActivity; import android.os.Bundle; import android.content.Intent; import android.widget.TabHost; import android.widget.TabHost.TabSpec; public class main extends TabActivity { @Override pu...
package com.arthur.bishi.zijie; /** * @description: * @author: arthurji * @date: 2021/9/12 9:59 * @modifiedBy: * @version: 1.0 */ public class No4 { public static void main(String[] args) { } }
import java.util.HashMap; public class HuffmanMinHeap { int heapSize; MinHeapNode[] nodeArray; public HuffmanMinHeap(char[] data, int[] freq, int size){ heapSize = size; nodeArray = new MinHeapNode[heapSize]; for(int i = 0; i < size; i++){ nodeArray[i] = new MinHeapNode(data[i], freq[i]); } } ...
/* * 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 io.github.minhaz1217.onlineadvising.models; /** * * @author 2016-1-60-134 */ public class CourseExtended { private Stri...
package com.example.thelimitbreaker.twoactivities; public class KeyUtils { public static final String SEND_MSG_KEY="send_msg_key"; public static final String REPLY_MSG_KEY="reply_msg_key"; public static int SEND_MSG_REQUEST=1; }
package com.jgw.supercodeplatform.trace.pojo.globalseq; import lombok.Data; import java.io.Serializable; /** * 全局序列编码表实体类 * @author liujianqiang * @date 2018年1月17日 */ @Data public class CodeGlobalseq implements Serializable{ private static final long serialVersionUID = 6911117287103607100L; private String keys...
package server.sport.controller; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.spr...
/** * Copyright (C) 2008 Atlassian * * 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 t...