text stringlengths 10 2.72M |
|---|
class ListNode{
int val;
ListNode next;
ListNode(int x){
val = x;
}
}
public class MiddleofLinkedList {
public static void main(String[] args) {
ListNode l1 = new ListNode(1);
// l1.next = new ListNode(2);
// l1.next.next = new ListNode(4);
ListNode res = fin... |
package com.bierocratie.ui.view.catalog;
import com.bierocratie.model.catalog.Beer;
import com.bierocratie.model.catalog.Capacity;
import com.bierocratie.model.catalog.Supplier;
import com.bierocratie.ui.component.AbstractMenuBar;
import com.bierocratie.ui.component.OrderMenuBar;
import com.bierocratie.ui.view.... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
package com.stark.design23.abstractfactory;
/**
* Created by Stark on 2018/1/26.
* 工厂类生产者
*/
public class FactoryBuilder {
public static ProductFactory getFactory(String type) {
switch (type) {
case "A":
return new FactoryA();
case "B":
return new ... |
/*
* 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 classes;
import java.util.ArrayList;
/**
* Lists current Logged Users, and saves its patient list to be monitored
* @autho... |
package com.example.gastos;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.... |
package com.yemyat.zopa.challenge.interest;
public class EffectiveInterestRateFunction implements InterestRateFunction {
@Override
public double getMonthlyInterestRate(double annualInterestRate) {
// References:
// - https://www.experiglot.com/2006/06/07/how-to-convert-from-an-annual-rate-to-... |
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;
public class ZoneDateTimeDemo1
{
public static void main(String[] args)
{
Instant instant = Instant.now();
/*
* Parameters:
*
* instant - the instant to create the date-time from, not
* null
*
* zone - the ti... |
package com.example.texttrafficeapplication.cjass;
import android.support.annotation.IdRes;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.RadioGroup;
/**
* Created by 赵洪斌 on 2017/10/22.
*/
public abstract class CCC implements CompoundButton.OnCheckedChangeListener {
prot... |
package day50_inheritance;
/*
Sub class
child class
Derived class
*/
public class Teacher extends Person{
int teacherID;
public void teach(String topic){
System.out.println("Teacher is teaching " +topic);
System.out.println("Teacher name is " +name);
System.out.println("Teacher age is... |
package com.tencent.xweb.xwalk;
import com.tencent.xweb.xwalk.h.2;
class h$2$1 implements Runnable {
final /* synthetic */ String vFe;
final /* synthetic */ 2 vFf;
h$2$1(2 2, String str) {
this.vFf = 2;
this.vFe = str;
}
public final void run() {
this.vFf.vFd.fwL.b(this.v... |
package com.unsee.tea.biz.services;
import org.apache.ibatis.session.SqlSession;
import com.unsee.gaia.dal.brokers.AbstractBroker;
import com.unsee.gaia.dal.brokers.DefaultBroker;
import com.unsee.gaia.dal.entities.BaseEntity;
import com.unsee.tea.biz.entities.CompanyEntity;
// if need logger remove comment... |
/*******************************************************************************
* =============LICENSE_START=========================================================
*
* =================================================================================
* Copyright (c) 2019 AT&T Intellectual Property. All rights res... |
/*
*
*/
// Imports and Packages
package TLTTC;
import java.util.*;
public class ControllerList
{
CTCController _controller;
ControllerList (CTCController controller)
{
_controller = controller;
}
} |
package sortdemo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
//class SortByBalanceAsc implements Comparator<Customer>{
//
// @Override
// public int compare(Customer o1, Customer o2) {
// // TODO Auto-generated method stub
// return ((Double)o1.getBalance()).compareTo(o2.g... |
package com.yfancy.web.weixin.controller;
import com.yfancy.common.base.Result;
import com.yfancy.common.base.init.Weixin_Init_Param;
import com.yfancy.common.base.url.WEB_WEIXIN_URL_Mapping;
import com.yfancy.common.base.util.HttpClientUtil;
import com.yfancy.web.weixin.config.WeixinConfig;
import com.yfancy.web.wei... |
package com.codemine.talk2me;
import android.app.ActionBar;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.Intent;
import android.graphics.Color;
import android.media.AudioFormat;
import android.media.AudioManager;
impo... |
package com.vajra.TestClass;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.Test;
import com.vajra.pageobjects.AddCustomerSales;
import com.vajra.pageobjects.CreateOrderPageObject;
public class TC_CreateCustomer_003 extends BaseClas... |
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
public class FortuneCookie implements ActionListener {
private JFrame frame;
private JPanel panel;... |
package com.chanpyaeaung.moviez.view.fragment;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AlertD... |
package br.senai.sp.informatica.mobileb.aulas.ex04;
import br.senai.sp.informatica.mobileb.lib.Util;
public class Ex0401 {
public static void main(String[] args) {
double nota = Util.leReal("Informe a nota: ");
nota += Util.leReal("Informe a nota: ");
nota += Util.leReal("Informe a nota: ");
nota += Util.... |
package accessories;
import interfaces.ISellable;
public class Accessory extends Product implements ISellable {
private String partName;
private String brand;
private String partFor;
private String type;
private double buyingPrice;
private double sellingPrice;
public Accessory (String ... |
package servlets;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.reflect.Type;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;
import javax.script.ScriptEngine;
import ja... |
/*
* 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 berlin.iconn.rbm.views;
import berlin.iconn.rbm.main.AController;
import berlin.iconn.rbm.main.BenchmarkModel;
import java.ne... |
package vanadis.extrt;
public class InheritedInject implements InjectHeritage {
private TestService service;
@Override
public void setTestService(TestService service) {
this.service = service;
}
public TestService getService() {
return service;
}
}
|
package com.example.leegyowon.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.SeekBar;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
su... |
package com.odm.managesystem.controller;
import com.alibaba.fastjson.JSONObject;
import com.odm.managesystem.service.InitPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestControl... |
package ADD;
import java.util.Objects;
import java.util.Arrays;
public class Node
{
protected static final int NUMBER_CHILDS = 2;
protected String name;
protected boolean primed;
protected Node[] childs;
protected Integer hashCode;
protected Integer hashCodeVar;
public Node()
{
childs = new Node[NUMBER_... |
package task114;
/**
* @author Igor
*/
public class Main114a {
public static void main(String[] args) {
int n = 7;
long dp[] = new long[n + 2];
dp[0] = 1;
for (int i = 0; i <= n; i++) {
dp[i + 1] += dp[i];
for (int j = i + 4; j <= n + 1; j++) {
... |
package com.example.wuzp.xmlparsedemo.view.main;
import android.content.res.AssetManager;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import com.example.wuzp.xmlparsedemo.R;
import com.example.wuzp.xmlparsedemo.base.BindActivity;
import com.example.wuzp.xmlparsedemo.databinding.Activi... |
class Car extends Vehicle {
public Car() {
spotsNeeded = 1;
vehicleSize = VehicleSize.Compact;
}
public boolean canFitInSpot(ParkingSpot parkingSpot) {
return parkingSpot.getVehicleSize() == VehicleSize.Compact || parkingSpot.getVehicleSize() == VehicleSize.Large;
}
public void print() {
Sys... |
package useStandartExceptions;
public class UseStandartExceptions {
public static void main(String[] args) {
exceptionMethod(-5);
}
public static void exceptionMethod(int i){
if(i<0)throw new IllegalArgumentException("i < 0");
}
}
|
/* 1: */ package com.kaldin.common.db;
/* 2: */
/* 3: */ import java.sql.SQLException;
/* 4: */
/* 5: */ public class ExceptionFactory
/* 6: */ {
/* 7: */ public static DatabaseException getException(int databaseType, String msg, SQLException e)
/* 8: */ {
/* 9:27 */ switch (d... |
package net.plazmix.core.api.common.orm;
public interface Column {
String getName();
Class<?> getType();
boolean isNullable();
boolean isUnique();
boolean isInsertable();
boolean isUpdatable();
boolean isPrimary();
default int length() {
return 255;
}
}
|
package com.pfchoice.springboot.service;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import com.pfchoice.springboot.model.MembershipHedi... |
package com.fab.devportal.service;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.fab.devportal.dao.SubApiTbl;
public interface SubApiService {
public List<SubApiTbl> findByParentApiName(String parentapiname);
public Iterable<Sub... |
package net.optifine.entity.model;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelPig;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.RenderPig;
import net.minecraft.entity.passive.Entity... |
package com.lolRiver.river.persistence;
import com.lolRiver.river.models.State;
import com.lolRiver.river.models.Video;
import com.lolRiver.river.persistence.interfaces.VideoDao;
import com.lolRiver.river.util.DateUtil;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
impo... |
package interpreter.ast.nodes;
import interpreter.Visitor;
public interface Node
{
Object accept(Visitor v, Object o);
}
|
//package it.polimi.se2019;
//
//import it.polimi.se2019.controller.GameBoardController;
//import it.polimi.se2019.controller.PlayerController;
//import it.polimi.se2019.model.GameBoard;
//import it.polimi.se2019.model.map.UnknownMapTypeException;
//import it.polimi.se2019.model.player.Player;
//import it.polimi.se2019... |
package model;
import java.sql.Timestamp;
import lombok.Getter;
import lombok.Setter;
public class UserModel extends Model {
private static final long serialVersionUID = 1L;
@Getter @Setter private int id;
@Getter @Setter private String username;
@Getter @Setter private String email;
@Getter @Setter pri... |
package com.landg.myaccount.ui;
public class User {
private String PartyID;
public User() {
}
public User(String partyID) {
PartyID = partyID;
}
public void setPartyID(String partyID) {
PartyID = partyID;
}
public String getPartyID() {
return PartyID;
}
}... |
package com.ali.rent.service;
import com.ali.rent.pojo.Room;
import java.util.List;
public interface RoomService {
List<Room> selectAll();
Integer updateById(Integer id);
Room getRoomById(Integer id);
Integer insertRooom(Room room);
List<Room> selectSortordAll(String site,String pattern,Stri... |
package prefeitura.siab.apresentacao;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.we... |
package com.zen.model.manage.service;
import com.alibaba.fastjson.JSONObject;
import com.zen.model.manage.dto.ModelInfoDto;
import org.springframework.web.multipart.MultipartFile;
import javax.xml.bind.ValidationException;
import java.util.List;
/**
* @Author: morris
* @Date: 2020/6/11 15:43
* @description
* @re... |
package com.jinshu.xuzhi.feeling;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.drawable.BitmapDrawable;
import android.media.MediaPlayer;
import... |
/*
* 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 Aula5.Exercicio2;
import java.util.Date;
/**
*
* @author mauricio.moreira
*/
public class Venda {
private int codigo;
... |
package com.example.tiamo.gym;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
im... |
package com.spr.service;
import com.spr.beans.Message;
import com.spr.beans.ProfileUser;
import com.spr.rest.InsertEdgeDTO;
import java.util.List;
/**
* Created by saurav on 27/03/17.
*/
public interface GraphJetService {
String insertEdge(InsertEdgeDTO insertEdgeDTO);
String createGraph();
List<Pro... |
package com.cybertek.utilities;
public class Assert {
public static void fail(String s) {
}
public static void assertTrue(boolean equals) {
}
}
|
package com.nxtlife.mgs.service;
import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;
import com.nxtlife.mgs.view.GradeRequest;
import com.nxtlife.mgs.view.GradeResponse;
public interface GradeService {
ResponseEntity<?> uploadGradesFromExc... |
package com.tencent.mm.ab;
import android.os.Looper;
import com.tencent.mm.ab.a.a;
import com.tencent.mm.protocal.c.bhp;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.al;
import com.tencent.mm.sdk.platformtools.x;
import java.util.concurrent.CountDownLatch;
import java.util.concur... |
package fr.demos.Data;
import java.util.List;
import fr.demos.formation.today.Climatisation;
//DAO: Data Access Object : objet qui sert a l'acces aux données
public interface ClimatisationDAO {
void sauve(Climatisation cl) throws Exception;
List <Climatisation> recherchetout() throws Exception; // on veut etre... |
package com.wllfengshu.mysql.storage.impl;
import com.wllfengshu.mysql.common.Constant;
import com.wllfengshu.mysql.exception.CustomException;
import com.wllfengshu.mysql.model.dto.ExecutePlanDTO;
import com.wllfengshu.mysql.model.entity.ResultSet;
import com.wllfengshu.mysql.storage.StorageEngine;
import com.wllfengs... |
package com.gyk.s2h.varmisin;
/**
* Created by HULYA on 27.08.2017.
*/
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReferenc... |
package com.example.aswantourguide;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayLis... |
package cn.e3mall.service;
import java.util.List;
import cn.e3mall.common.pojo.EasyUIDataGridResult;
import cn.e3mall.common.util.E3Result;
import cn.e3mall.pojo.TbItem;
/**
* 商品service
* @author Dragon
*
*/
public interface ItemService {
/**
* 根据商品Id获取商品
* @param itemId
* @return
*/
TbItem getItemById(... |
package com.test.mjp.repository.service.serviceimplementation;
import com.test.mjp.entity.aimal.AnimalDetail;
import com.test.mjp.repository.service.serviceinterface.AnimalDetailsCacheService;
public class AnimalDetailsCacheServiceImpl implements AnimalDetailsCacheService {
private AnimalDetail animalDetailCache;... |
package calculation.calculations;
public class _Calculation_DivisionTest {
} |
package ua.babiy.online_store.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ua.babiy.online_store.entity.Cart;
import ua.babiy.online_store.entity.InCartProduct;
import java.util.Optional;
import java.util.Set;
public interface InCartProductRepository extends JpaRepository<InCartPr... |
package dp;
import java.util.Arrays;
// !!!!!!!!!!!!!!!!!未完成!!!!!!!!!!!!!!!
public class GetMaxCoins {
// 一个N*M的矩阵上每个点都有一定数量的糖果。给你一个起点坐标X1、Y1和终点坐标X2、Y2,从起点到终点最多走K步,
// 每一步可以上下左右移动,但不能沿着对角线移动,每到达矩阵的一点可以拿走该点的糖果。请输出可以拿到的糖果的最大值。
//方法1:动态规划
public static int getMaxCoins(int[][] graph, int x1, int y1, int x2, int y2,... |
//package za.ac.cput.Repository;
//
//import za.ac.cput.Entity.ConsultationRecord;
//
//import java.util.HashSet;
//import java.util.Set;
//
//public class ConsultationRecordRepository implements IConsultationRecordRepository {
//
// //static helps with singleton
// private static ConsultationRecordRepository rep... |
package assignment;
import java.util.function.Function;
import java.util.function.Supplier;
/**
* An {@link Option} container that produces a default value through a {@link Producer}.
* @author I.A
*/
public final class None<T> implements Option<T> {
@Override
public <U> U visit(Supplier<U> onNone, Function<T, U... |
/*
* 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 controller.admin;
import entity.OrderStatus;
import java.sql.SQLException;
import java.util.List;
import javax.servlet.http.Ht... |
package geometries;
import java.util.LinkedList;
import java.util.List;
import static primitives.Util.alignZero;
import primitives.*;
import static primitives.Util.isZero;
/**
* Sphere class represents sphere in 3D Cartesian coordinate
* system
* @author Tamar and Rina
*
*/
public class Sphere e... |
/*
* 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 pplassginment;
import java.io.*;
import java.util.*;
/**
*
* @author Dark_ni8
*/
public class boysCSV
{
... |
package com.okellosoftwarez.modelfarm;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import an... |
package com.project.database.repository;
import com.project.database.entities.GroupEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springf... |
package com.github.baloise.rocketchatrestclient.util;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
public class Misc {
public static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
}
|
package de.raidcraft.skillsandeffects.pvp.skills.passive;
import de.raidcraft.skills.api.combat.EffectElement;
import de.raidcraft.skills.api.combat.EffectType;
import de.raidcraft.skills.api.exceptions.CombatException;
import de.raidcraft.skills.api.hero.Hero;
import de.raidcraft.skills.api.persistance.SkillPropertie... |
package com.university.wanstudy.adapters;
import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;
import com.university.wanstudy.MyApp;
import com.university.wanstudy.R;
import com.university.wanstudy.model.GenreModel;
import org.xutils.x;
import java.util.List;
/**
* 专业列表... |
/*
* 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 com.poly.slide5;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.... |
package it.datacode.tests.mongodb;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;
import org.apache.tapestry5.beaneditor.NonVisual;
import org.bson.types.ObjectId;
import java.math.BigDecimal;
import java.util.Date;
/**
* Created with IntelliJ IDEA.
* User: massi... |
package sample;
public class StudentRecord {
private String ID;
private double midterm;
private double assignments;
private double finalExam;
public StudentRecord(String ID, double midterm, double assignments, double finalExam) {
this.ID = ID;
this.midterm = midterm;
... |
package com.tencent.mm.ui.tools;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.mm.ui.tools.l.a;
class l$a$a {
TextView eGX;
ImageView gwj;
View nHH;
final /* synthetic */ a uAE;
private l$a$a(a aVar) {
this.uAE = aVar;
}
... |
package com.fqxyi.androidtemplatetest.demo.entities;
public class DemoEntity {
} |
package data;
import logic.model.Movie;
import logic.model.MovieRental;
import logic.repository.MovieRentalRepository;
import java.sql.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class MovieRentalController implements MovieRentalRepository {
@Override
public voi... |
package com.lubarov.daniel.web.http.server;
import com.lubarov.daniel.common.Logger;
import com.lubarov.daniel.data.dictionary.KeyValuePair;
import com.lubarov.daniel.data.option.Option;
import com.lubarov.daniel.data.table.MutableHashTable;
import com.lubarov.daniel.data.unit.Instant;
import com.lubarov.daniel.data.u... |
package com.example.quizapp;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import java.util.List;
public class Database extends SQLiteOpe... |
/*
* created 28.10.2005
*
* Copyright 2009, ByteRefinery
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* $Id... |
package classes;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.example.medicalprocess.MainActivity;
public class Stade {
private int sid;
private Maladie maladie;
private Phase phase;
private int stade;
public i... |
import java.util.Arrays;
import java.util.Iterator;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class MixStream {
public static <A> Stream<A> zip(Stream<A> first, Stream<A> second) {
Iterator<A> firstIterator = first.iterator();
Iterator<A> secondIterator = se... |
package mx.org.ift.ntp.service;
import java.sql.Timestamp;
public interface NtpService {
public Timestamp getTime(String url);
}
|
package com.ls.Test.packages.p4;
import java.util.Scanner;
public class Test2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s = new Scanner(System.in);
System.out.println("請輸入年月日");
int year = s.nextInt();
int mouth = s.nextInt();
int day = s.nextInt()... |
package dbreader;
import java.io.File;
import Conversion.Reformatgzip;
/**
* Final procedure of merging. For each data directory, we will first call the reformatgzip class
* and the reformat method to reformat our gzip files to .dat files with desired fields.
* Then we will do iterative merge where we merge all t... |
package com.mrhan.db.entitydaos.keytype;
import java.lang.annotation.*;
/**
* 自动增长键
*/
@Inherited
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AutoKey {
}
|
package javax.swing;
import java.util.HashMap;
public abstract class AbstractAction implements Action {
boolean enabled;
private HashMap<String, Object> values = new HashMap<String, Object>();
public void putValue(String key, Object value) {
values.put(key, value);
}
public Object g... |
package listexer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
//随机存十个数,反转输出、从大到小输出
public class exercise1 {
public static void main(String[] args) {
List<Integer> list = new ArrayList<Integer>();
for (int i = 0; i < 10; i++) {
li... |
package br.com.tomioka.vendashortalicas.services;
import br.com.tomioka.vendashortalicas.dto.ProdutoDto;
import br.com.tomioka.vendashortalicas.models.Produto;
import br.com.tomioka.vendashortalicas.repositories.ProdutoRepository;
import org.assertj.core.internal.bytebuddy.implementation.bind.annotation.Argument;
impo... |
public class Trab2{
public static void main(String[] args){
int op;
do{
System.out.println("MENU PRINCIPAL");
System.out.println("1- Consultar saldo");
System.out.println("2- Efetuar saque");
System.out.pr... |
package com.datastax.banking.service;
import java.util.List;
import com.datastax.banking.dao.BankDao;
import com.datastax.banking.model.Account;
import com.datastax.banking.model.Atm;
import com.datastax.banking.model.Bank;
import com.datastax.banking.model.Branch;
import com.datastax.banking.model.Permission;
import... |
// Práctica 2: SQL y Java
// Autoras: Ana María Casado Faulí - Matrícula: 20A003
// Alicia Germán Bellod - Matrícula: 20A059
package series;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOE... |
public class EducationalA {
private String degreeType;
private String major;
private String university;
private int graduationYear;
public EducationalA (String degreeType, String major, String university, int graduationYear) {
this.degreeType = degreeType;
this.major = major;
... |
import textio.TextIO;
public class HowManyEggs {
public static void main (String [] args) {
int inputEggs;
int grossEggs;
int dozenEggs;
int remainderEggs;
int grossRemainder;
System.out.println("How many eggs do you have?");
inputEggs = TextIO.getInt();
grossEggs = inputEggs / 144;
grossRemain... |
package de.jmda.app.uml.settings.mdl.pckg.tree;
import java.util.Collection;
import de.jmda.core.util.PackageProvider;
abstract public class PackageTreeFactory
{
public static Tree createFromClassPathAndLoader()
{
Tree result = new Tree();
Collection<Package> packages = PackageProvider.instance().ge... |
package pub.iseekframework.utils.date;
import org.apache.commons.lang3.time.DateFormatUtils;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
/**
* desc: 常用的时间处理类 <br>
* author: wangsong <br>
* date: 2018/5/14 下午5:26 <br>
* version: v1.0.0 <br>
*/
publ... |
public class RomanToInteger {
public int romanToInt(String s) {
int result = 0;
int len = s.length();
char ch;
for(int i = 0; i < len; i++) {
ch = s.charAt(i);
if (ch == 'M') {
result += 1000;
} else if(ch == 'D') {
... |
package com.igitras.codegen.common.next;
/**
* Represents a CG element (class, interface, method or constructor) which can own a type
* parameter list.
* <p>
* Created by mason on 1/4/15.
*/
public interface CgTypeParameterListOwner extends CgMember {
/**
* Checks if the element has any type parameters.
... |
package com.lr.service;
import com.lr.mapper.adminMapper;
import com.lr.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import... |
package de.codingchallenge;
import org.testcontainers.containers.GenericContainer;
abstract class ContainerBaseTest {
static final GenericContainer MONGO_CONTAINER;
static {
MONGO_CONTAINER = new GenericContainer("mongo:latest").withExposedPorts(27017);
MONGO_CONTAINER.start();
}
ContainerBaseTest() {
}
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.