text
stringlengths
10
2.72M
/* * OKRoughCast.java * * Created on August 20, 2004, 11:03 AM */ package RoughCast; import java.io.*; import java.util.*; import java.util.regex.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.awt.geom.*; import javax.imageio.*; import OKUtils.CmdLineHandler; import OKUtils....
package com.saaolheart.mumbai.store.stock; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface StockHistoryRepo extends JpaRepository<StockHistoryDetailsDomain, Long> { }
// Sun Certified Java Programmer // Chapter 8; P676_2 // Inner Classes class Food { Popcorn p = new Popcorn() { public void sizzle() { System.out.println("anonymous sizzling popcorn"); } public void pop() { System.out.println("anonymous popcorn"); } }; ...
package ashman; import java.io.IOException; import java.io.ObjectInputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Observable; import javafx.scene.canvas.Canvas; import javafx.scene.image.Image; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; import javafx.sc...
package com.oumar.learn.application; public final class PageMap { private PageMap(){ } public static final String ADMIN = "admin"; public static final String REGISTER_PRE = "register"; public static final String LOGIN = "login"; public static final String HOME = "home"; }
package com.allen.lightstreamdemo.callback; import com.orhanobut.logger.Logger; import retrofit2.adapter.rxjava.HttpException; import rx.Subscriber; /** * Created by: allen on 16/8/11. */ public class SubscriberCallback<T > extends Subscriber<T> { private final static String TAG = "SubscriberCallback"; pr...
package adsaufgabe1; public class Shellsort_tsosedow implements IShellsort { /* Der Konstruktor hat kein Argument */ public Shellsort_tsosedow() { } /* Rueckgabewert: Anzahl der Schluesselvergleiche */ public int shellsort(IPermutation[] feld) { int vgl = 1; int schrittw...
package com.company.ch01_Array; public class Student { private String name; private int score; public Student(String name,int score){ this.name=name; this.score=score; } public String getName() { return name; } public void setName(String name) { this.name ...
//模仿判断valid parenthesis的方法,记录已经使用的‘(’ 和‘)’,以及抵消的‘(’ //用dfs class Solution { public List<String> generateParenthesis(int n) { List<String> ans = new ArrayList<>(); if(n == 0){ return ans; } StringBuilder sol = new StringBuilder(); dfs(ans, sol, n, 0, 0, 0); ...
package zajaczkowski.adrian; import zajaczkowski.adrian.simulation.Simulation; import zajaczkowski.adrian.tools.Item; import zajaczkowski.adrian.tools.Rocket; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; public class App { public static void main...
package com.ubs.opsit.interviews; import org.junit.Assert; import org.junit.Test; public class ClockValidatorTest { @Test public void testHourValidation() { Assert.assertFalse(BerlinClockValidator.validateTimeFormat("72:00:00")); Assert.assertTrue(BerlinClockValidator.validateTimeFormat("23:00:00")); } @T...
package com.mobiledev.shapedprogressview; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity implements View.OnClickListener{ private Button squareButton, ...
package com.penzias.service.impl; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.penzias.core.BasicServiceImpl; import com.penzias.core.interfaces.BasicMapper; import com.penzias.dao.SmDepartmentMapper; import com.penzias.entity.SmDepartment; import com.penzias....
package com.campus.controller; import com.campus.entity.Exam; import com.campus.utils.PoiImportExcel; import com.campus.common.Result; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org....
package ro.Stellrow.HarderMinecraftMobs.utils; import org.bukkit.configuration.file.FileConfiguration; public class ConfigurationManager { public void updateValues(FileConfiguration configuration){ updateAffectValues(configuration); updateMobStats(configuration); updateMobStatsAffect(conf...
package com.example.android_essential_07_hw2; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity { int pos = 0; ...
package org.bashemera.openfarm.form; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; import org.springframework.data.annotation.Id; public class AccountForm { @Id private String id; @Size(min=1, max=32, message="The account name ...
package com.shopify.mapper; import org.apache.ibatis.annotations.Mapper; import com.shopify.seller.SellerData; @Mapper public interface SellerMapper { public int insertSeller(SellerData seller); public int updateSeller(SellerData seller); public int updateSellerPasswd(SellerData seller); public int selectSellerC...
package ga.selection; import ga.Population; public class SelectionRandomBasedElitist extends Selection { private int numElitist = 1;// keeps n best individuals @Override public void select(Population population) { super.select(population); // keep 'n' best individuals for next generation for (int rank =...
/*(Financial application: find the sales amount) You have just started a sales job in a department store. * Your pay consists of a base salary and a commission. The base salary is $5,000. * Write a program that finds the minimum sales you have to generate in order to make $30,000. */ import java.util.Scanner; pu...
package com.sunny.token.response; import lombok.Getter; public class Response<T>{ @Getter private String code; @Getter private String message; @Getter private T result; public Response(){} public Response(T result){ this.result = result; this.code = ResponseCode.SUCCE...
package br.com.alura.core; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; public class PersistenceUtil { private static final String PERSISTENCE_UNIT_NAME = "conta-db"; private PersistenceUtil() { super(); } publi...
package com.jawspeak.unifier.changes; import java.util.Arrays; import java.util.List; public class NewClass implements Change { private int version; private int access; private String name; private String signature; private String superName; private String[] interfaces; private List<NewMethod> newMetho...
package valatava.lab.warehouse.controller; import java.util.List; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.spr...
package com.gg.example.springExample.aop; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; /** * User: adurmaz * Date: 5/12/13 * Time: 1:44 PM */ @Aspect public class PetClinicTrackerAspect { //@Around("execution(* com.gg.examp...
package net.minecraft.init; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemArmorStand; import net.minecraft.item.ItemBow; import net.minecraft.item.ItemEmptyMap; import net.minecraft.item.ItemFishingRod; import net.minecraft.item.ItemMap; import net.minecraft.item.It...
// Sun Certified Java Programmer // Chapter 3, P226 // Assignments class Tester226 { public static void main(String[] args) { Dog[] myDogs = new Dog[6]; // creates an array of 6 // Dog references for (int x = 0; x < myDogs.length; x++) { myDogs[x] = new Dog(); // as...
package swm11.jdk.jobtreaming.back.app.lecture.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import swm11.jdk.jobtreaming.back.app.lecture.model.Lecture; import swm11.jdk.jobtreaming.back.app.user.model.User; import java.time.LocalDateTime;...
package com; import java.nio.charset.Charset; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; /** * @author xuxinbin * @version $$Id: nettyJoin, v 0.1 2017/8/17 12:58 xuxinbin Exp $$ */ public class ByteBufTest { public static void main(String[] args) { test1(); System.out.pr...
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GN...
package pms.dto; public class pms_projectSch { // 1. 검색 속성 private String project_name; // 프로젝트 제목 // 2. 페이징 처리 private int count; // 총데이터 건수 private int pageSize; // 한페이지 보여줄 데이터 건수 private int pageCount; // 총 페이지 수 count/pageSize private int curPage; // 클릭한 현재 페이지 번호 private int start; // 페이지의 시작 번호 pri...
package com.kunsoftware.service; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.T...
/** * Alipay.com Inc. * Copyright (c) 2004-2012 All Rights Reserved. */ package com.github.obullxl.lang.xml; import java.util.ArrayList; import java.util.List; import com.github.obullxl.lang.MapExt; import com.github.obullxl.lang.ToString; /** * XML节点模型 * * @author shizihu * @version $Id: XML...
package java2.businesslogic; import java2.database.AnnouncementRepository; import java2.domain.Announcement; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.Optional; @Component public class AnnouncementFieldValidator { @Autowired p...
package org.proyectofinal.gestorpacientes.modelo.entidades; public class Estadistica { private Object id; private Object total; public Estadistica(Object id, Object total) { super(); this.setId(id); this.setTotal(total); } public Object getMedicoId() { return id; } public Object getTotal() { retur...
package rjm.romek.awscourse.repository; import static org.junit.Assert.assertTrue; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import org.springfra...
package Controllers; import backend.model.Person; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Alert; import javafx.scene.control.Button; import javafx.scene.control.DatePicker; import javafx.scene.control.TextField; import org.apache.logging.l...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.sql.ResultSet; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; /** * * @author Derek *...
package com.ccxia.cbcraft.item; import com.ccxia.cbcraft.CbCraft; import com.ccxia.cbcraft.creativetab.CreativeTabsCbCraft; import net.minecraft.item.Item; public class ItemCocoaCream extends Item { public ItemCocoaCream() { this.setUnlocalizedName(CbCraft.MODID + ".cocoaCream"); this.setRegistryName("cocoa_cre...
package edu.upc.adapterviews; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class Auth_Activity extends Activity implements View.OnClickListener { priva...
package com.tencent.mm.plugin.subapp.ui.voicereminder; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import com.tencent.mm.plugin.subapp.c.d; class RemindDialog$3 implements OnClickListener { final /* synthetic */ RemindDialog otT; RemindDialog$3(RemindDialog...
package questions.GroupAnagrams_0049; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; /* * @lc app=leetcode.cn id=49 lang=java * * [49] 字母异位词分组 * * https://leetcode-cn.com/problems/group-anagrams/description/ * * algorithms * Medium (...
package com.junye.rest.controller; import java.security.Provider.Service; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; impor...
package com.kunsoftware.controller.manager; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annot...
package mygame.gameplay; import com.jme3.bullet.control.CharacterControl; import com.jme3.scene.Geometry; import com.jme3.scene.Node; import com.jme3.scene.Spatial; import mygame.StageManager; import mygame.stage.GamePlayManager; public class Player { private Node modelNode; private GamePlayManager gamePlay...
package com.tencent.mm.plugin.freewifi.e; import com.tencent.mm.plugin.freewifi.a.a.a; import com.tencent.mm.plugin.freewifi.e.i.1; import com.tencent.mm.plugin.freewifi.k.b; import com.tencent.mm.plugin.freewifi.m; import com.tencent.mm.plugin.freewifi.ui.FreeWifiFrontPageUI; import com.tencent.mm.plugin.freewifi.ui....
/** * Data Transfer Objects. */ package projet.jee.gi.ensa.service.dto;
package jp.smartcompany.job.enums; /** * @author xiao wenpeng */ public interface ResponseMessage { /** * 返回状态码 * @return int */ int code(); /** * 返回提示信息 * @return String */ String msg(); }
/* * Copyright (C) 2019-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 minimal; import static org.junit.Assert.*; import org.junit.*; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.Platform; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.remote.DesiredCapabilities; ...
package com.study.demo.security.handlers; import java.util.List; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.GrantedAuthority; import com.study.demo.vo.Member; import lombok.Data; //현재 로그인한 사용자 객체 저장 DTO @Data public ...
package com.company.crackingthecode.stringsandarrays; import java.util.ArrayList; import java.util.List; public class Anagram { public static void main(String[] args) { System.out.println(numOfDeletions("fcrxzwscanmligyxyvym", "jxwtrhvujlmrpdoqbisbwhmgpmeoke")); } static int wrongAnswerDoesntAl...
package com.freak.printtool.hardware.utils; import java.text.DateFormat; import java.text.DecimalFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.Random; /** * 时间的工具类 * * @author Freak ...
package com.bytedance.ies.bullet.kit.rn; import com.bytedance.ies.bullet.b.e.aa; import com.bytedance.ies.bullet.b.e.h; import com.bytedance.ies.bullet.b.e.i; import com.bytedance.ies.bullet.b.e.l; import com.bytedance.ies.bullet.b.e.m; import com.bytedance.ies.bullet.b.e.s; import com.bytedance.ies.bullet.b.e...
package me.solidev.library.ui.activity; import me.solidev.library.utils.ToastUtil; /** * Created by _SOLID * Date:2016/6/2 * Time:16:58 * Desc: */ public abstract class BaseMainActivity extends BaseActivity { private long lastBackKeyDownTick = 0; private static final long MAX_DOUBLE_BACK_DURATION = 1500...
package pl.finsys.setterExample; public class OutputHelper { private IOutputGenerator outputGenerator; public void generateOutput() { outputGenerator.generateOutput(); } //wstrzykniecie przez metode setter'a public void setOutputGenerator(IOutputGenerator outputGenerator) { this.outputGenerator = outputGene...
package com.sarf.dao; import java.util.List; import javax.inject.Inject; import org.apache.ibatis.session.SqlSession; import org.springframework.stereotype.Repository; import com.sarf.vo.ReplyVO; @Repository public class R_ReplyDAOImpl implements ReplyDAO{ @Inject private SqlSession sql; Str...
package com.yt.factory; public class WhiteHumanWomen extends WhiteHumanMan { @Override public void sex() { System.out.println("白种人性别为女"); } }
package listaJava2; import java.util.Scanner; public class ListaJavaExercicio2 { public static void main(String[] args) { // Ler 10 números e imprimir quantos são pares e quantos são ímpares. (FOR) int x =0, par =0, impar =0, numero =0; Scanner leia = new Scanner(System.in); for(x = 1; x<= 10; x++)...
package com.codegym.checkinhotel.repository; import com.codegym.checkinhotel.model.AppRole; import org.springframework.data.repository.CrudRepository; import javax.management.relation.Role; public interface IRoleRepository extends CrudRepository<AppRole,Long> { }
package com.acculytixs.wayuparty.entity.vendor; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity ...
package cn.xyz.repository; import java.util.List; import org.mongodb.morphia.query.UpdateResults; import cn.xyz.mianshi.vo.PublicNum; public interface PublicNumRepository { Integer addPublicNum(PublicNum publicNum); PublicNum getPublicNum(Integer publicId); List<Integer> getServiceIds(Integer publicId); Li...
public abstract class Box { int height; int weight; String name; public String getName() { return name; } public void setName(String name) { this.name = name; } public void setHeight(int height) { this.height = height; } public void setWeight(int weight) { this.weight = weight; } public Str...
package todos; import java.util.Scanner; public class TodoApplication { /* TO DO 1. dodaj 2. Wczytaj 0. Koniec Tablica [10] - 10-elementowa MENU(1,2,0) Kliknij 1 - prosisz użytkownika o dodanie " to do ": Dodaj "to do ", naciśnij enter i powróć do menu Kliknij 2 - Wczytaj wszystkie elementy, które użytkownik dodał ...
package com.tencent.mm.plugin.mmsight.model.a; import com.tencent.mm.plugin.mmsight.model.a.c.a; import com.tencent.mm.plugin.mmsight.model.a.d.c; import com.tencent.mm.sdk.platformtools.x; class n$3 implements a { final /* synthetic */ n ljp; n$3(n nVar) { this.ljp = nVar; } public final vo...
package Tests; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.LinkedList; import javax.imageio.ImageIO; import IO.SpriteLoader; import Utils.Images; public class ImageBorder { public static void main(String[] args) { BufferedImage...
package com.Collections_PriorityQueue_HashMap_TreeMap; //7. Write a Java program to compare two priority queues. import java.util.PriorityQueue; public class PriorityQueue_Comparision { public static void main(String[] args) { // Create a empty Priority Queue PriorityQueue<String> pq1 = n...
package gdut.ff.generator.util; /** * * @author liuffei * @date 2018-04-03 update * @description */ public class StringUtil { /** * 表名转成类名 * @param tableName * @return */ public static String tableNameToClassName(String tableName) { StringBuffer className = new StringBuffer(""); String names[] = t...
package ru.lischenko_dev.fastmessenger.util; import android.content.*; import android.preference.*; public class PrefsManager { private static Context context; public static PrefsManager getInstance(Context c) { return new PrefsManager(c); } public PrefsManager(Context c) { this.context = c; } public s...
/* * Robot Explorer * * Stefan-Dobrin Cosmin * 342C4 */ package explorer.gui; import java.awt.Canvas; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import explorer.Cell.Direction; import explorer.Cell.Type; import explorer.Cell.Visibility; /** * The Class ...
package main; import java.awt.Color; public class ColorStyle { public static final ColorStyle ORIGINAL = new ColorStyle(Color.GREEN, Color.RED, Color.BLUE); public static final ColorStyle PAPER = new ColorStyle(Color.decode("#91bfdb"), Color.decode("#fc8d59"), Color.decode("#ffffbf")); private Colo...
package com.facemelt.spitter.service; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transaction...
package com.btsandjjiao.controller; import com.btsandjjiao.domain.Employee; import com.btsandjjiao.domain.Msg; import com.btsandjjiao.service.EmployeeService; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import org.springframework.beans.factory.annotation.Autowired; import org.spring...
package fall2018.csc2017.slidingtiles; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.support.v7.app.AppCompatAc...
package eu.senla; public class Main { static byte a; static short b; static int c; static long d; static float e; static double f; static char g; static boolean h; static Byte aByte; static Short bShort; static Integer cInteger; static Long dLong; static Float eFloat; static Double fDouble; static C...
package com.example.a.projectcompanyhdexpertiser.APIConnection; public class APIConnection { public static String LINK="http://192.168.1.53:8181/api/8.0/system/"; public static String HOST="http://192.168.1.53:8181/"; public static String PATH="api/8.0/system/"; public static String getHOST() { ...
package hrishi.gad.repository; import hrishi.gad.entity.Alerts; import org.springframework.data.repository.CrudRepository; import java.util.List; public interface AlertsRepository extends CrudRepository<Alerts, String> { List<Alerts> findByVin(String vin); }
package com.website.views.pages; import javax.enterprise.context.RequestScoped; import javax.inject.Inject; import javax.inject.Named; import org.mindrot.jbcrypt.BCrypt; import com.website.models.entities.Author; import com.website.persistence.AuthorService; import com.website.tools.navigation.Redirector; import com...
package com.joy.http.volley.toolbox; import android.util.Log; import com.joy.http.Progress; import com.joy.http.volley.Response; import com.joy.http.volley.Result; import com.joy.http.volley.ServerError; import com.joy.http.volley.VolleyLog; import java.io.File; import java.io.IOException; /** * Created by Daisw o...
package hackathon.viasat.marksdankburgers; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.text.TextUtils; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; i...
package org.codeshifts.spring.db; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.test.context.ContextConfiguration; import...
package com.xiaodao.core.domain; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.Date; /** * Entity基类 * * @author ruoyi */ @Data...
package com.tencent.mm.g.a; import com.tencent.mm.sdk.b.b; public final class pe extends b { public a caa; public b cab; public pe() { this((byte) 0); } private pe(byte b) { this.caa = new a(); this.cab = new b(); this.sFm = false; this.bJX = null; } }...
package com.jp.photo.biz; import java.util.List; import com.jp.photo.po.AlbumPo; public interface AlbumBiz { public int addAlbumPo(AlbumPo po); public int deleteAlbumPoById(AlbumPo po); public List<AlbumPo> getAlbumPoList(AlbumPo po); public int updateAlbumPoById(AlbumPo po); public AlbumPo getAlbumP...
package fun.witt.stream; import java.util.Random; import java.util.stream.Stream; /** * @author witt * @fileName StreamPrincipleDemo * @date 2018/8/19 02:51 * @description 流运行原理 * @history <author> <time> <version> <desc> */ public class StreamPrincipleDemo { public static void main(String[] args...
package com.pangpang6.books.pattern.iteratormode; /** * 迭代器模式 * 封装遍历,迭代器接口 * 数据组的返回对象就是迭代器模式 * 提供一种方法顺序访问一个聚合对象中的各个对象 * * 首先定义个迭代器接口,然后类中添加内部类实现迭代器接口 * * */ public class Test { }
package com.philippe.app.service.kafka; import com.philippe.app.domain.SparkPocNotification; import com.philippe.app.domain.User; import com.philippe.app.service.avro.AvroCodecService; import com.philippe.app.service.mapper.CustomMapperService; import example.avro.sparkpoc.Notification; import lombok.extern.slf4j.Slf4...
package day21multidimensionalarray; import java.util.Arrays; public class MultiDimensionalArrray02 { public static void main(String[] args) { // Multi Dimensional Array olusturup deger atama int arr[][] = { {1,2}, {3}, {4,5,6} }; System.out.println(Arrays.deepToString(arr)); System.out.println(arr[0][...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package co.tweetbuy.servlet; import co.tweetbuy.bean.CardBean; import co.tweetbuy.bean.ErrorBean; import co.tweetbuy.bean.UserBean; import co.tweetbuy.db.DBUtil; import co.tweetbuy.util.AppUtil; import co.tweetbuy.util....
package com.example.libroapp.ui; import android.os.Bundle; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import com.exampl...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cz.mutabene.controller.admin; import cz.mutabene.model.entity.FileEntity; import cz.mutabene.model.form.admin.FileAddForm; import cz.mutabene.model.form.admin.FileEditForm; import cz.mutabene.model.form.admin.Fi...
package com.ibeiliao.account.test.provider; import com.ibeiliao.pay.pub.api.provider.UploadProvider; import com.ibeiliao.pay.account.impl.utils.QiniuUtils; import com.ibeiliao.pay.common.utils.JsonUtil; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowire...
package com.hedong.hedongwx.web.controller.webpc; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.s...
package com.zjw.myapplication.utils; public interface OnFinishListener { Void onSuccess(Object obj); Void onError(); }
package io.ygg.common; /* * Copyright (c) 2015 * Christian Tucker. All rights reserved. * * The use of OGServer is free of charge for personal and commercial use. * * * THIS SOFTWARE IS PROVIDED 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,...
package test; public class Main1 { public static void main(String[] args) { String s = " I like you "; String[] arr = s.split(" "); System.out.println(arr.length); for(String val:arr) { System.out.println(val); } } }
package com.github.jvogit.springreact.response; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import lombok.Data; @Data public class ApiResponse { private final HttpStatus status; private final String message; public ResponseEntity<Object> toResponseEnti...
package visitor; import java.util.HashMap; import java.util.LinkedList; import java.util.Vector; public class Arginfo { public String str,toprint; public int where,ans,delay,flag,iscall,val,labelprint; public Vector vec; public LinkedList<String> list; public Arginfo(String str){ this.str=str; this.where=-1...
1.class Student2{ 2.int rollno; 3.String name; 4. 5.void insertRecord(int r,String n){//method 6.rollno=r; 7.name=n; 8.} 9. 10.void displayInformation(){System.out.println(rollno+" "+name);}//method 11. 12.public static void main(String args[]){ 13.Student2 s1=new Student2(); 14.Student2 s2=new Student2();...
package pl.edu.ur.polab4.obiekty; public class Szescian { private String nazwa; private String kolor; private double bok; public Szescian(String nazwa, String kolor, double bok) { this.nazwa = nazwa; this.kolor = kolor; this.bok = bok; } private double pol...