text
stringlengths
10
2.72M
/* * Sonar Timeline plugin * Copyright (C) 2009 SonarSource * dev@sonar.codehaus.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at yo...
package ru.mse.dataserver; import java.time.LocalDate; public class TimetableChangeRequest { public LocalDate date; public TimetableChange change; }
import commands.Command; import commands.CommandParser; import role.Commander; import ui.UI; import java.util.List; public class App { public static void main(String[] args) { UI ui = new UI(); String commandsInString = ui.getCommandsInString(); Commander commander = new Commander(); ...
package com.tencent.mm.plugin.wallet_ecard.b; import android.content.Intent; import android.os.Bundle; import com.tencent.mm.ab.l; import com.tencent.mm.plugin.wallet_ecard.a.a; import com.tencent.mm.plugin.wallet_ecard.a.b; import com.tencent.mm.plugin.wallet_ecard.a.c; import com.tencent.mm.plugin.wallet_ecard.a.d; ...
package edu.wayne.cs.severe.redress2.entity.refactoring.json; import java.util.List; public class OBSERVRefactorings { private List<OBSERVRefactoring> refactorings; public List<OBSERVRefactoring> getRefactorings() { return refactorings; } public void setRefactorings(List<OBSERVRefactoring> ...
package com.example.manyamadan.medlib; import android.content.Context; import android.widget.Toast; /** * Created by manyamadan on 03/07/16. */ public class MedLib { private static MedLib ourInstance = new MedLib(); public static MedLib getInstance() { return ourInstance; } private MedLib(...
package divideAndconquer; // https://discuss.leetcode.com/topic/20064/my-concise-o-m-n-java-solution // https://leetcode.com/problems/search-a-2d-matrix-ii/ public class Search2D { // start from top right corner // if target > current_num, then move to next row; // if target < curretn_num, then move to next colum...
package queue.operations; public interface QueueOperations { String enqueue(String arg); String dequeue(); Boolean isEmpty(); int length(); void listAllElements(); }
package com.cristovantamayo.ubsvoce.repositories; /** * Repositório para Geocode implementando JpaRepository<Score>. */ import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.cristovantamayo.ubsvoce.entities.Score; @Repository public interface Sco...
package org.tec.salsas.CarpoolingREST.services; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import database.Database; import org.tec.salsas.CarpoolingREST.model.Student; /** * Clase encargada de la conexi...
package rhtn_homework; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.PriorityQueue; import java.util.StringTokenizer; public class BOJ_1719_택배 { private static StringBuilder s...
import java.util.Scanner; /** * author : sangeun lee */ public class p3 { public static void main(String[] args) { System.out.println("What is the quote? "); String quote = new Scanner(System.in).nextLine(); System.out.println("Who said it? "); String name = new Scanner(System.in...
package com.tencent.mm.pluginsdk.ui; import android.view.KeyEvent; import com.tencent.mm.sdk.platformtools.x; class VoiceInputFooter$5 implements ChatFooterPanel$a { final /* synthetic */ VoiceInputFooter qHn; VoiceInputFooter$5(VoiceInputFooter voiceInputFooter) { this.qHn = voiceInputFooter; } ...
package com.xuecheng.pojo; import lombok.Data; import org.springframework.data.annotation.Id; import org.springframework.data.elasticsearch.annotations.DateFormat; import org.springframework.data.elasticsearch.annotations.Document; import org.springframework.data.elasticsearch.annotations.Field; import org.springframe...
package net.minecraft.block; import net.minecraft.block.material.Material; import net.minecraft.block.properties.PropertyDirection; public abstract class BlockDirectional extends Block { public static final PropertyDirection FACING = PropertyDirection.create("facing"); protected BlockDirectional(Material mater...
// 6번 public class Multiple { static int MultipleNum(int num1, int num2) { int result = (int) Math.pow(num1, num2); System.out.println(result); return result; } public static void main(String[] args) { MultipleNum(2, 5); } }
package com.facebook.react.bridge; public class NativeArgumentsParseException extends JSApplicationCausedNativeException { public NativeArgumentsParseException(String paramString) { super(paramString); } public NativeArgumentsParseException(String paramString, Throwable paramThrowable) { super...
package com.zhy.dagger2.multibindings; public class MyClassKey { }
package Ex1.SymbolTables; import ast.AstType; import ast.VariableIntroduction; public class VarEntry { AstType type; boolean isFormal; public boolean isFormal() { return isFormal; } public boolean isVarDecl() { return isVarDecl; } public boolean isField() { retur...
package samples; import tss.Helpers; import tss.Tpm; import tss.TpmFactory; import tss.Tss; import tss.tpm.*; import java.io.Serializable; public class sample implements Serializable { private boolean usesTbs; private Tpm tpm; private TPMT_PUBLIC aesTemplate; private byte[] iv; public static byte[...
package com.DeGuzmanFamilyAPI.DeGuzmanFamilyAPIBackend.app_service; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.validation.Valid; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework....
/* * Copyright (C) 2020-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 applicab...
package sample; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.ListView; import javafx.scene.control.TextField; import org.hibernate.Session; import org.hibernate.SessionFactory; import o...
/** * ==================================================================== * Codificacion {@code application-www-www-form-urlencoded}. * Los valores son codificados en tuplas de valores llaves separados * por '&', con un '=' entre la llave y el valor. * ===========================================================...
package ru.mirea.iis.chat.server.protocol; /** * Created by a4 on 2016-04-10. * Класс сообщения. */ public class Message { public enum Type // какие типы сообщений будут { LOGIN("l"), CHAT("c"), SERVICE("s"); private final String code; Type(String code) { ...
package jsExecutorExample; import java.io.File; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.ITestContext; import org.testng.ITestListener; import org.testng.ITestResult; publ...
package com.rc.portal.dao; import java.sql.SQLException; import java.util.List; import com.rc.portal.vo.TOrder; import com.rc.portal.vo.TOrderExample; public interface TOrderDAO { int countByExample(TOrderExample example) throws SQLException; int deleteByExample(TOrderExample example) throws SQLException; ...
package top.skyzc.juke.model; import cn.bmob.v3.BmobObject; public class Upgrade extends BmobObject { private User nowUser; private User upUser; private User myNineUser; public User getNowUser() { return nowUser; } public void setNowUser(User nowUser) { this.nowUser = nowUser...
/* * 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 Entidades.entEvaluador; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.PreparedSt...
package com.tencent.mm.console; import android.content.Intent; import com.tencent.mm.console.Shell.a; import com.tencent.mm.g.a.ig; import com.tencent.mm.sdk.platformtools.x; class Shell$11 implements a { Shell$11() { } public final void n(Intent intent) { ig igVar = new ig(); igVar.bRH.b...
package com.smxknife.spring.ignoredependency.type; /** * @author smxknife * 2020/2/5 */ public class IgnoreTypeImpl implements IgnoreType { }
class Solution { public List<String> findMissingRanges(int[] nums, int lower, int upper) { /* 1. compare the lower with the nums[0] 2. compare inside nums 3. compare the upper with the nums **/ List<String> res = n...
/* * Created on Mar 18, 2009 * * To change the template for this generated file go to * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments */ package it.usi.xframe.xas.bfutil.data; /** * @author us01170 * * To change the template for this generated type comment go to * Window&gt;Preferences...
package com.zhy.android_dagger; import android.os.Bundle; import android.util.Log; import com.zhy.android_dagger.di.UserService; import javax.inject.Inject; import dagger.android.support.DaggerAppCompatActivity; public class MainActivity extends DaggerAppCompatActivity { private static final String TAG = Main...
package net.chrisrichardson.eventstore.examples.customersandorders.orders.history.querysideservice.main; import net.chrisrichardson.eventstore.examples.customersandorders.orders.history.querysideservice.OrderHistoryQuerySideServiceConfiguration; import org.springframework.boot.SpringApplication; public class OrderHis...
import java.util.regex.Matcher; import java.util.regex.Pattern; public class NameClass { private static final String NAME_REGEX = "^[ACP]{1}[0-9]{4}[G, H, I, L, L, M]{1}$"; public NameClass() { } public boolean validate(String regex) { Pattern pattern = Pattern.compile(NAME_REGEX); M...
package Nomina; /** * @author Alejandro Erazo */ public class Empleado { // Atributos private String nombre; private int cedula; private String cargo; private int salario; // Constructor public Empleado(String Nombre, int Cedula, String Cargo, int Salario) { this.nombre ...
package com.sparknetworks.loveos.application.filtermatches; import com.sparknetworks.loveos.application.filtermatches.filter.*; import com.sparknetworks.loveos.domain.Range; import com.sparknetworks.loveos.domain.UserMatchedFilter; import java.util.ArrayList; import java.util.List; public class UserMatchedFilterBuil...
package com.example.apoxeo; import java.util.List; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.http.GET; public interface ApiInterface { @GET("place/nearbysearch/json?location=12.97,77.59&radius=5000&type=hindu_temple&key=AIzaSyAD90QUFl0kvHLyR98BmnivBEz79eGRisc") Call<ResponseBody> ge...
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 generiert // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2016.05.11 u...
package org.ms.iknow.persistence.repo.memory; import org.ms.iknow.core.assertion.ElementValidator; import org.ms.iknow.core.type.Neuron; import org.ms.iknow.core.type.Synapse; import org.ms.iknow.persistence.repo.Repository; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util...
package edu.cecar.controlador; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEnti...
package com.tencent.mm.plugin.subapp.c; import com.tencent.mm.ab.i$b; import com.tencent.mm.compatible.b.f.a; import com.tencent.mm.model.au; import com.tencent.mm.model.q; import com.tencent.mm.modelvoice.k; import com.tencent.mm.sdk.f.e; import com.tencent.mm.sdk.platformtools.al; import com.tencent.mm.sdk.platformt...
package com.zhny.gr.wisdomcity.bean; import java.util.List; /** * Created by tong on 2017/5/9. */ public class RecordRoot { private String name; private String id; private List<Results> results; public void setName(String name) { this.name = name; } public String getName() { ...
package android.support.b; import com.tencent.smtt.sdk.WebView; import java.io.FilterOutputStream; import java.io.OutputStream; import java.nio.ByteOrder; class a$b extends FilterOutputStream { ByteOrder lO; private final OutputStream lP; public a$b(OutputStream outputStream, ByteOrder byteOrder) { ...
package v1; public class AnimalHabitat implements Sqaure { private String animalName; private Player owner; private int numZoos; private int numNationalParks; private String biomeColour; private int investmentCost; private int fee_normal; private int fee_monopoly; private int fee_onehouse; private int fee_tw...
package cn.com.zjol.userhome.activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.text.TextUtils; import cn.com.zjol.biz.core.DailyActivity; import cn.com.zjol.biz.core.nav.Nav; import cn.com.zjol.userhome.R; import cn.com.zjol.userh...
package servlet; import java.io.IOException; import java.util.ArrayList; 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.HttpServletResponse; import ...
package com.codegym.controller; import com.codegym.entity.User; import com.codegym.repository.RoleRepository; import com.codegym.repository.UserRepository; import com.codegym.service.RoleService; import com.codegym.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springfra...
package xdpm.nhom11.angrybirdsproject.entities; import java.io.IOException; import java.util.ArrayList; import javax.xml.parsers.ParserConfigurationException; import org.andengine.engine.camera.SmoothCamera; import org.andengine.engine.handler.IUpdateHandler; import org.andengine.entity.IEntity; import org.andengine....
package com.hanxx.shiro.service; import com.hanxx.shiro.model.User; /** * @Author hanxx * @Date 2018/4/1716:00 */ public interface UserService { User findByUsername(String username); }
import javax.swing.*; import java.awt.*; import java.util.List; public class AfficherReservation extends JPanel { private final int MAX_LIST = 5; private JLabel[][] grilleJLabel = new JLabel[MAX_LIST-1][5]; private MonBouton[] tabBouton = new MonBouton[MAX_LIST-1]; private List<Reservation> listReservation; priv...
package com.zs.web.shopadmin; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * @Created by IDEA * @author:LiuYiBo(小博) * @Date:2018/7/27 * @Time:15:42 */ @Controller @RequestMapping...
package jp.co.logacy.validator.search; import java.util.Map; import org.apache.commons.lang3.StringUtils; public class ArtistNameValidator { public Map<String, String> validator(final String artistName, Map<String, String> errorMap) { if (StringUtils.isEmpty(artistName)) { errorMap.put("empty", "search.ms...
package sample; public interface CommerceInterface { public abstract void buy(Good good); }
package edu.pdx.cs.cs554.gomoku; import android.content.Context; import android.os.CountDownTimer; import android.util.AttributeSet; import android.widget.TextView; public class TimerView extends TextView { private static final int PLAYER_TIME_LIMIT_IN_MILLISECONDS = 10 * 60 * 1000; // 10 minutes private...
package 两个栈模拟一个队列; import java.util.Scanner; import java.util.Stack; public class TwoStacks { Stack<Integer> stack = new Stack<>(); Stack<Integer> cache = new Stack<>(); public void push(int node){ while (!cache.isEmpty()){ stack.push(cache.pop()); } stack.push(node); ...
package com.smartcity.commonbase.widget.pagestatus; import android.app.Activity; import android.content.Context; import android.os.Build; import android.support.annotation.IntDef; import android.support.annotation.RequiresApi; import android.util.Log; import android.view.View; import android.view.ViewTreeObserver; im...
package com.example.cral_gates.xmenu2; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import com.example.cral_gates.base.BaseActivity; import com.example.cral_gates.base.Constants; import com.example.cral_gates.fragment....
package de.jmda.app.xstaffr.common.service.jpa; import de.jmda.jpa.jse.AbstractPersistenceContextAccess; public class TestXStaffrService_JPA_SE_Environment { private static class PersistenceContextAccess extends AbstractPersistenceContextAccess { @Override public String getPersistenceUnitName() { return "...
package com.dbs.spring.capstoneproject.rest; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind...
package modul5.ae10.paket.paket2; import modul5.ae10.paket.paket1.KlasseA; class KlasseAC extends KlasseA { }
package com.tencent.mm.plugin.webview.model; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.model.au; import com.tencent.mm.modelcdntran.g; import com.tencent.mm.modelcdntran.i; import com.tencent.mm.modelcdntran.i.a; import com.tencent.mm.plugin.webview.model.d.b; import com.tencent.mm....
package recetas; import inventario.Naranjas; public class ZumoNaranja { public int comprobarItem(){ Naranjas naranjas = new Naranjas(); int n=naranjas.verNaranjas(); return n; } public void cocinar(){ if(comprobarItem()>=4){ if(Math.random()<=0.5){ System.out.print("Zumo naranj...
package com.tencent.xweb.xwalk.a; import com.tencent.xweb.c.a.b; public class a$c { public boolean bUseCdn; b vCo = new b(); public String vFk; public String vFp; public boolean vFq; public int vFr; public int vFs; public a.b[] vFt; public a$d vFu = new a$d(); }
package Logic; import Entities.*; /** * This class is for calling movements of all entities. * We've separated this logic with consideration for future improvements * e.g. configurable, customizable movement logic * * @author Cowteriyaki * @author K */ public class MovementLogic { private EntitiesContain...
package com.brainmentors.apps.controllers; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.sprin...
// Copyright (c) 2013-2014 MediaMiser Ltd. All rights reserved. package com.mediamiser.test; import org.apache.log4j.AppenderSkeleton; import org.apache.log4j.Level; import org.apache.log4j.spi.LoggingEvent; /** * A log4j1 extension that will throw an {@code java.lang.AssertionError} if a * {@code Level.ERROR} logg...
package com.tencent.mm.plugin.luckymoney.appbrand.ui.receive; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import com.tencent.mm.sdk.platformtools.x; class c$4 implements OnClickListener { final /* synthetic */ c kMQ; c$4(c cVa...
package tankas; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.*; public class Tankas { int x = 0, y = 0, suviai = 0, suviaiS = 0, suviaiR = 0, suviaiV = 0, suviaiP = 0; String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("HH:mm")); String kryptis; Ran...
package com.podarbetweenus.Adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.podarbetweenus.Entity.ResourceList; import com...
package com.pay.payo.viewmodels; import android.app.Application; import android.util.Log; import com.pay.payo.application.PayOApplication; import com.pay.payo.model.NetworksResponseModel; import com.pay.payo.network.APIService; import com.pay.payo.repository.Repository; import com.pay.payo.utils.AppExecutors; import ...
package com.pz.Dto; import lombok.*; @Setter @Getter @AllArgsConstructor @NoArgsConstructor @Builder public class SLTypyPokoiDto { private long id; private String nazwa; }
package com.sinata.rwxchina.component_home.adapter; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.LinearLayout; import android.widget.TextView; import com.amap.api.services.core.PoiIt...
package com.jlgproject.activity; import android.os.Handler; import android.text.TextUtils; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.jlgproject.MainActivity; im...
package lombok_test; import java.util.HashSet; import java.util.Set; /** * Description: * 1、必须勾选Preferences-Build,Execution,Deployment-Compiler-Annotation Processors-Enable annotation processing, * 否则无法通过编译 * 2、参考: * <a href="https://mp.weixin.qq.com/s?__biz=Mzg2OTA0Njk0OA==&mid=2247485385&idx=2&sn=a7c3fb4485ffd...
package com.cleo.ringto; import android.app.ProgressDialog; import android.content.pm.ActivityInfo; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.app.ActionBarActivity; import android.util.Log; import android.view.View; import android.widget.Pr...
package com.example.sam.cs_125_final_project; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import com.android.volley.Request; import com.andro...
package model.Eagle; import model.Tile; import model.interfaces.Piece; import resources.Sprites; public class NormDummyEagleDecorator extends EagleDecorator { public NormDummyEagleDecorator(Piece decoratedEagle) { super(decoratedEagle); super.setSprite(Sprites.Eagle); } // Used for debugg...
package com.example.demo.config; import com.couchbase.mock.BucketConfiguration; import com.couchbase.mock.CouchbaseMock; import java.util.ArrayList; public class CouchbaseStartConfig { private static CouchbaseMock couchbaseMock; public static void couchbaseStart() { BucketConfiguration bucketConfigur...
package swt6.timer.factories; import swt6.timer.interfaces.TimerServiceFactory; import swt6.timer.services.TimerServiceImpl; import swt6.timer.interfaces.TimerService; public class TimerServiceFactoryImpl implements TimerServiceFactory { public TimerService getTimerService() { return new TimerServiceImpl(...
package ict376.murdoch.edu.au.jobtaskrapp; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.FragmentTransaction; impor...
package com.nxtlife.mgs.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.spr...
/* * 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 initarray; import java.util.Scanner; public class InitArray { public static void main(String[] args) { int[] vetor = {...
package utils; import java.util.concurrent.TimeUnit; import play.libs.Akka; import akka.util.Duration; import com.typesafe.plugin.MailerAPI; import com.typesafe.plugin.MailerPlugin; public class AssyncEmailSender{ private Runnable sender = null; public AssyncEmailSender(String subject, String body, String fr...
package com.designpattern.createpattern.factory; public class FactroyB implements AbstractFactory { @Override public Object getInstance() { return new FactroyB(); } }
package com.tencent.mm.plugin.product.ui; import android.text.Spanned; import android.text.method.LinkMovementMethod; import android.widget.TextView.BufferType; import com.tencent.mm.sdk.platformtools.ah.a; class HtmlTextView$1 implements a { private volatile Spanned lSa; final /* synthetic */ String lSb; ...
import java.util.Vector; public class VectorDemo { public static void main(String[] args) { Vector<String> v1 = new Vector<String>(); v1.add("James"); v1.add("John"); v1.add("Smith"); System.out.println(v1.size() + ":" + v1.capacity()); v1.ad...
package com.moon.netty.server; import com.alibaba.fastjson.JSONObject; import com.moon.base.utils.Constant; import com.moon.netty.dto.BaseMsg; import com.moon.netty.dto.Msg_Type; import com.moon.netty.thread.servertask.Thread01; import com.moon.netty.thread.servertask.Thread02; import io.netty.channel.ChannelHandlerAd...
package com.spbsu.flamestream.runtime.master.acker; import com.spbsu.flamestream.core.FlameStreamSuite; import com.spbsu.flamestream.runtime.master.acker.table.AckTable; import com.spbsu.flamestream.runtime.master.acker.table.ArrayAckTable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.Ass...
// Given 3 int values, a b c, return their sum. However, // if any of the values is a teen -- in the range 13..19 inclusive -- then that value counts as 0, // except 15 and 16 do not count as a teens. public class NoTeenSum { static int noTeenSum(int a, int b, int c) { return fixTeen(a) + fixTeen(b) + fixTeen(c)...
import java.io.File; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; public class Configuration { public static void main(String[] args) { try { if (args.length > 1) { ...
package dev.borowiecki.home.after_week_1.solutions; import java.util.Arrays; public class Ex7 { public static void main(String[] args) { char[] someArray = "My lstirng".toCharArray(); for(int i = 0; i < someArray.length / 2;i++) { char temp = someArray[i]; someArray[i] =...
package Alpha; public class demolog { static java.util.logging.Logger log = java.util.logging.Logger.getLogger(demolog.class.getName()); public static void main(String[] args) { System.out.println("Logger"); } }
// ______________________________________________________ // Generated by sql2java - http://sql2java.sourceforge.net/ // jdbc driver used at code generation time: com.mysql.jdbc.Driver // // Please help us improve this tool by reporting: // - problems and suggestions to // http://sourceforge.net/tracker/?group_...
package com.xvr.serviceBook.controller.restapi.assemblers; import com.xvr.serviceBook.controller.restapi.dtorepresentation.TicketModelRepresentation; import com.xvr.serviceBook.entity.Ticket; import org.springframework.hateoas.CollectionModel; import org.springframework.hateoas.server.RepresentationModelAssembler; imp...
package duke.exception; public class InvalidIndexException extends DukeException { @Override public String toString() { return "You have entered an invalid index. Please try again."; } }
package com.jiw.dudu.structure.linklist; /** * @Description LeetCode328奇偶链表 * @Author pangh * @Date 2023年04月10日 * @Version v1.0.0 * <p> * 力扣算法题:https://leetcode.cn/problems/odd-even-linked-list/ */ public class LeetCode328 { private class ListNode { int val; ListNode next; ListNode...
package com.zimmermusic.kenobi; import java.io.IOException; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Random; import org.deeplearning4j.datasets.iterator.DataSetIterator; import org.nd4j.linalg.api.ndarray.INDArray; import org.n...
public class FactMethod { static int fact(int a) { int f=1; for(int i=1;i<a;i++) { f=f*i; } return f; } public static void main(String[] args) { int res=fact(7); System.out.println("result is"+res); } }