text stringlengths 10 2.72M |
|---|
package com.shahinnazarov.gradle.models.k8s;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.shahinnazarov.gradle.models.enums.K8sPodTemplateSpecDnsPolicies;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import ... |
package dev.liambloom.softwareEngineering.chapter17.balance;
import java.util.ArrayList;
public class BinarySearchTree<E extends Comparable<E>> {
private TreeNode<E> root = null;
public static void main(final String[] args) {
final BinarySearchTree<Integer> tree = new BinarySearchTree<>();
tr... |
package com.estrok;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.P... |
package org.sayesaman.database.model;
/**
* Created by ameysami on 9/11/13.
*/
public class OrderItem {
private String no;
private String id;
private Goods goods;
private String qty;
private String price;
private String price_sum;
public String getPrice() {
return price;
}
... |
import java.util.Scanner;
public class Assignment2 {
public static void main(String[] args) {
CustomerList cl = new CustomerList(); // instantiate a Customer List
Customer c = null;
boolean continueToPrompt = true;
do
{
System.out.println("Please enter a selection between 1 to 62\r\n" +"... |
package polymorphishTest;
public class Cat extends Animal {
@Override
public void makeSound() {
System.out.println("moew");
}
public void 前進() {
System.out.println("GOGO");
}
@Override
public void breath() {
}
}
|
package kr.co.shop.batch.product.model.master.base;
import lombok.Data;
import java.io.Serializable;
import kr.co.shop.common.bean.BaseBean;
@Data
public class BaseCmProductIcon extends BaseBean implements Serializable {
/**
* 이 필드는 Code Generator를 통하여 생성 되었습니다.
* 설명 : 상품아이콘순번
*/
pri... |
package com.db.retail.rest.service;
import javax.websocket.server.PathParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springfram... |
package ru.job4j.chess;
/**
* Класс OccupiedPositionException реализует исключение "Позиция занята".
*
* @author Goureyev Ilya (mailto:ill-jah@yandex.ru)
* @version 1
* @since 2017-05-04
*/
class OccupiedPositionException extends RuntimeException {
/**
* Конструктор.
* @param position п... |
/**
*
*/
package com.application.utils;
import java.util.HashMap;
import java.util.Map;
import android.content.Context;
import com.google.analytics.tracking.android.EasyTracker;
import com.google.analytics.tracking.android.GoogleAnalytics;
import com.google.analytics.tracking.android.Tracker;
import ... |
package servlet;
import java.io.IOException;
import java.io.PrintWriter;
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 or... |
package com.jpeng.demo.add;
import android.app.Dialog;
import android.content.Intent;
import android.support.design.widget.Snackbar;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import andr... |
public class exam01_순차탐색 {
public static void main(String[] args) {
// sequential Search 순차 탐색 알고리즘
int[] array = {100, 23, 56, 7, 8, 11, 99, 32, 14, 56};
int find = 200 ; //찾고자 하는 수
int index = -1; // 찾고자 하는 수의 인덱스
for (int i = 0; i < array.length; i++) {
if(find == array[i]) {
... |
package com.somoo.organizer;
import com.somoo.organizer.persistence.hibernate.conf.HibernateUtils;
import com.somoo.organizer.user.User;
import com.somoo.organizer.user.role.Role;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import java.util.ArrayList;
import ja... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package synch_demo;
import java.util.Arrays;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* <br>
* 〈〉
*
* @author wensir
* @create 2018/12/23
* @since 1.0.0
*/
public class BanK {
// 一家银行,有许多银行账户
private final double[] accounts;
private Lock bankLoc... |
public class ReverseNumber {
static void doResvers (int input)
{
int rem,res=0;
int num=input;
while(num>0)
{
rem=num%10;
res=res*10+rem;
num=num/10;
}
if (input==res)
{
System.out.println("Given number is p... |
package com.github.dongchan.scheduler;
import java.io.*;
/**
* @author DongChan
* @date 2020/10/23
* @time 2:09 PM
*/
public interface Serializer {
byte[] serialize(Object data);
<T> T deserialize(Class<T> clazz, byte[] serializedData);
Serializer DEFAULT_JAVA_SERIALIZER = new Serializer() {
... |
import java.util.*;
public class ComparatorEight {
public static void main(String[] args) {
Employee emp1 = new Employee("Amardeep","Bhowmick",26,1000d,7044475857l);
Employee emp2 = new Employee("Amardeep","Champa",29,1200d,7044475857l);
List<Employee> empList1 = new ArrayList(Arrays.asList... |
package effectivejava.item41;
public interface CustomInterface {
}
|
/*
* Main.java
*/
package GUI;
public class Main {
/** Default Constructor */
public Main() {
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new DigLibSEUI().setVisible(true);
}... |
import javafx.application.Application;
import javafx.scene.control.*;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.geometry.Pos;
import javafx.geometry.Insets;
import javafx.event.ActionEvent;
public class CreatePassword extends Application
{
private Labe... |
/*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
package com.aim.project.pwp.heuristics;
import java.util.Random;
import com.aim.project.pwp.interfaces.ObjectiveFunctionInterface;
import com.aim.project.pwp.interfaces.PWPSolutionInterface;
import com.aim.project.pwp.interfaces.XOHeuristicInterface;
public class OX implements XOHeuristicInterface {
p... |
// // Voter_truthful.java: sample implementation for Voter
// COS 445 HW1, Spring 2018
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
public class Voter_hop implements Voter {
// Constants
private double MEASURE_OF_BALANCE = 0.1;
private double SWITCH_THRESH = 0.3;
// IV... |
String[] fileNaming(String[] names) {
HashSet<String> kaka = new HashSet<String>();
for(int i = 0; i < names.length; i++)
{
if(kaka.add(names[i])) continue;
else
{
for(int j = 1; j < 16; j++)
{
String bab = names[i] + '(' + j + ')';
... |
package client;
public class Message {
Object origin;
String topic;
String payload;
Message(Object origin, String topic, String payload){
this.origin=origin;
this.topic=topic;
this.payload=payload;
}
public String toString() {
return "origin:"+origin+"\ntopic:"+topic+"\npayload:"+payload;
}
}
|
package pages;
import org.junit.Assert;
import org.openqa.selenium.By;
import runnerclass.ObjectRepo;
public class Loginpage extends ObjectRepo {
public void loginpageAssertion() {
Assert.assertEquals("Login | Tu clothing", driver.getTitle());
}
public void username() {
driver.findElement(By.cssSelector("#j_... |
package com.lab2;
import java.util.Scanner;
public class demo3 {
private static Scanner scanner;
public static void main(String[] args) {
thucHienTinhTong();
thucHienTinhTru();
}
public static void thucHienTinhTong() {
int a ,b;
scanner = new Scanner(System.in);
System.out.println("Nhap so a")... |
package aaa.assignment3;
import java.util.*;
import aaa.*;
public class StateMulti implements State
{
private Agent me;
private final Agent prey;
private final List<Agent> predators;
private HashMap<Agent, Coordinate> positions;
private List<Coordinate> distances;
public StateMulti(Agent me, Agent prey, ... |
//package sublist;
//
//public class BinaryTree {
// public String maxSubtree(){
// Info info = root.maxSubtree();
// return "" + info.where + info.maxSum;
// }
// class Info{
// int sum;
// int maxSum;
// char where;
// public Info(int sum, int maxSum, char where){
// this.sum = sum;
// this.maxSum = maxSum;... |
package com.globant.university;
import java.util.ArrayList;
import com.globant.university.Teacher;
public class Lesson {
private String name;
private String classroom;
private Teacher teacher;
private ArrayList<Student> studentList;
private static int amount=0;
public Lesson(String name, String class... |
package com.fedorov.example.rabbit.consumer.model;
import lombok.Data;
@Data
public class Event {
private Long id;
private String number;
private String text;
private Long timeStamp;
}
|
package Topic24Interface;
public class Triangle implements Shape {
private double a;
private double h;
public Triangle(double a, double h) {
this.a = a;
this.h = h;
}
@Override
public double calculateArea() {
return a * h / 2;
}
@Override
public double cal... |
package cz.muni.fi.pa165.monsterslayers.sample_data;
public interface SampleDataLoadingFacade {
void loadData();
}
|
package com.sh.offer.linkedlist;
/**
* @Auther: bjshaohang
* @Date: 2019/2/27
*/
public class DeleteRepeat {
public static void main(String[] args) {
ListNode head = new ListNode(1);
ListNode b = new ListNode(3);
ListNode c = new ListNode(3);
ListNode d = new ListNode(4);
... |
package org.seforge.monitor.web;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hyperic.hq.hqapi1.types.LastMetricData;
import org.seforge.monitor.domain.Metric;
import org.seforge.monitor.domain.ResourceGroup;
import org.seforge.monitor.manager.MetricManager;
import or... |
package iozip.transactions;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
public class TransactionFileManager {
public void saveTransactions(Path fi... |
package cn.okay.page.officialwebsite.secondpage;
import cn.okay.testbase.AbstractPage;
import cn.okay.tools.WaitTool;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
/**
* Created by yutz on 2018/2/5.
*培训机构的机构详情页
*/
public class TrainingInstit... |
package com.jwebsite.vo;
public class RoleRight {
private Integer ID;//ID
private Integer RoleID;//角色ID
private String PurviewCode;//权限名称
private String PurviewValue;//权限值
public Integer getID() {
return ID;
}
public void setID(Integer iD) {
ID = iD;
}
public Integer getRoleID() {
return RoleID;
... |
import java.util.*;
import java.text.*;
public class Solution {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double payment = scanner.nextDouble();
scanner.close();
NumberFormat enusC = NumberFormat.getCurrencyInstance(Locale.US);
... |
package com.mad.cityassignment;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View... |
package com.forfinance.dao;
import com.forfinance.domain.Customer;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import static org.junit.Assert.*;
public class CustomerDAOTest extends AbstractIntegrationTestCase {
@Autowired
private CustomerDAO... |
package com.stylefeng.guns.rest.order.serviceimpl;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.cskaoyan.bean.order.OrderInfo;
import com.cskaoyan.bean.order.O... |
package mdc.collab.nightreader.activities;
/**
* @author Jesse Frush
*/
import java.util.ArrayList;
import mdc.collab.nightreader.R;
import mdc.collab.nightreader.application.NightReader;
import mdc.collab.nightreader.application.NightReader.SortingMode;
import mdc.collab.nightreader.singleton.MediaState;
import m... |
package com.social.server.controller;
import com.social.server.entity.Sex;
import com.social.server.http.ErrorCode;
import com.social.server.http.Response;
import com.social.server.http.model.UserDetailsModel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.autoconfigure.we... |
/*
* 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 boletin1_1;
import java.util.Scanner;
/**
*
* @author slorenzorodriguez
*/
public class Boletin1_1 {
/**
* @para... |
package com.softwareengineeringapp.kamys.findmean;
import android.content.ContentValues;
import android.database.Cursor;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import java.util.List;
public class Data... |
package com.windtalker.database.preference;
import android.content.Context;
import com.windtalker.database.IDatabase;
import com.windtalker.database.IDatabaseReference;
/**
* Created by jaapo on 26-10-2017.
*/
public class DatabaseLocalPreference implements IDatabase{
private String mDatabaseName;
@Ove... |
/*
* Copyright 2002-2012 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.homework.springhomework.loggers;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/*"you can just annotate the class with @Slf4j which will automatically generate a logger for the class without
* having to de... |
/*
* Copyright 2002-2020 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 walke.base.tool;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
/**
* Created by walke.Z on 2017/8/2.
*/
public class SetUtil {
public static List<String> arrToList(String[] arr){
List<String> list=new Arr... |
package fudan.database.project.entity;
public class ChiefNurse {
private int chiefNurseId;
private String name;
private String password;
private int areaId;
public ChiefNurse() {
//
}
public int getChiefNurseId() {
return chiefNurseId;
}
public void setChiefNurseI... |
import java.awt.*;
import javax.swing.JPanel;
/**
* @author (ikbiel)
* @version (23 March 2015)
*/
public class FractalTree extends JPanel
{
// how much smaller branches are
private double diffOfSize = .75;
// how small branches get
private double minSize = 5.0;
// angle between branches
... |
package com.networks.ghosttears.fragments;
import android.animation.Animator;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View... |
package com.meehoo.biz.core.basic.concurrency.task;
import lombok.Getter;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author zc
* @date 2020-12-31
*/
//@Setter
@Getter
public class TaskResult {
private AtomicInteger successQty;
private AtomicInteger failedQty;
public TaskResult() {
... |
package egovframework.adm.fin.service.impl;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import ... |
package dk.webbies.tscreate.paser.AST;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
import dk.webbies.tscreate.paser.ExpressionVisitor;
/**
* Created by Erik Krogh Kristensen on 01-09-2015.
*/
public abstract class Expression extends AstNode {
Expression(SourceRange location) {
s... |
package com.ua.dekhtiarenko.webapp.db.entity;
/**
* User entity.
* Created by Dekhtiarenko-Daniil on 25.02.2021.
*/
public class User {
private int id;
private String email;
private String name;
private String surname;
private boolean librarian;
private boolean admin;
private boolean ... |
package br.com.murilokakazu.ec7.ftt.cefsa.domain.specifications;
import br.com.murilokakazu.ec7.ftt.cefsa.domain.model.Account;
import br.com.murilokakazu.ec7.ftt.cefsa.domain.model.Account_;
import org.springframework.data.jpa.domain.Specification;
import java.util.ArrayList;
import java.util.List;
import static br... |
package pl.basistam.soa.parkingSpaceSensor.client;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFe... |
package com.tibco.as.util.file;
import java.io.File;
import org.junit.Assert;
import org.junit.Test;
public class TestFileUtils {
private final static File FILE = new File(
"/var/folders/tc/p_m_vk0d4yq3rdh3xw6qhf4w0000gq/T/com.tibco.as.util.Utils16978879243791375571414646018657/space1.csv");
@Test
public voi... |
//time: O(c) c: totel content of words
//space:O(1)
class Solution {
public boolean isAlienSorted(String[] words, String order) {
int[] index = new int[26];
for(int i = 0; i < order.length(); i++){
index[order.charAt(i) - 'a'] = i;
}
for(int i = 0; i < words.length - 1;... |
/**
* Lab2 - simple object oriented program in java
*
* @author Muhammad Faizan Ali(100518916)
* @version 1.0
*/
public class Song {
// variables required by the class
private String artist;
private String title;
private int duration;
public static String collectionName; // common for all instan... |
package com.example.logsys.controller;
import com.example.logsys.entity.Log;
import com.example.logsys.entity.LogVo;
import com.example.logsys.service.LogService;
import com.example.logsys.util.DownloadFileUtil;
import com.example.logsys.util.GetServerRealPathUnit;
import lombok.extern.slf4j.Slf4j;
import org.apache.... |
package com.seven.contract.manage.service.impl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.seven.contract.manage.common.PageResult;
import com.seven.contract.manage.dao.MemberDao;
import com.seven.contract.manage.model.Member;
import com.seven.contract.manage.service.MemberS... |
import java.util.*;
public class DS19L101 {
public static int solve_grid(String[][] grid,int x , int y, int row, int column) {
int a = 0; int b = 0;
if (x < row - 1 && y < column ) {
if (grid[x][y].equals("x")) {a = 1 + solve_grid(grid , x+1 , y, row, column);}
else {a = solve_grid(grid , x+1 , y,r... |
/*
* Copyright 2002-2017 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 processor;
import bean.ClientJSON;
public class ShareProcessor {
public void process(ClientJSON cJSON){
System.out.println("shareprocessor");
}
}
|
open module modmain { // allow reflective access, currently used in the example_jerry-mouse
requires modb;
// requires ALL-UNNAMED; // this does not compile, hence we need to set --add-reads modmain=ALL-UNNAMED in both compile and run scripts!
} |
public class ex1A {
public static void main(String[] args) {
String courseTitle = "Java Reskilling";
int nbrDays = 20;
double pricePerDay = 195.99;
boolean priorKnowledgeRequired = false;
System.out.println("Course title: " +courseTitle+ "\nNumber of days: " +nbrDays+ "\nPrice per day: " +pricePerDay+ "... |
package org.point85.domain;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.nio.charset.StandardCharsets;
import java.text.DecimalFormatSymbols;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
import java.time.Loca... |
/*
* 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.unisports.entities;
public class EmailAttachment {
private byte[] content;
private String contentName;
public void setContent(byte[] content){
this.content = content;
}
public byte[] getContent(){
return this.content;
}
public void setContentName(... |
/**
* Copyright (c) 2004-2021 All Rights Reserved.
*/
package com.adomy.mirpc.core.remoting.network;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.adomy.mirpc.core.remoting.invoker.MiRpcInvokerFactory;
import com.adomy.mirpc.core.remoting.network.request.MiRpcRequest;
import com.adomy.mirpc.co... |
package com.company;
public interface School {
Student adminStudent(Student student)throws ClassFullException;
Double chargeFees(Student student);
}
|
package com.vipvideo.ui.adpter;
import android.view.View;
import android.widget.TextView;
import com.lixh.base.adapter.VBaseHolder;
import com.vipvideo.R;
import com.vipvideo.bean.VideoInfoBean;
import java.util.List;
import butterknife.Bind;
/**
* Created by Moushao on 2017/8/30.
*/
public class VideoTopShareH... |
public class ThrowScreen extends TargetScreen {
@Override
protected String getVerb() {
return "throw";
}
@Override
protected boolean isAcceptable(Creature creature) {
if (player.canSee(creature.x, creature.y) && !isPlayer(creature)) {
return true;
... |
package com.yidatec.weixin.security;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframewor... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/* URL
http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=332&sca=50&sfl=wr_hit&stx=1053&sop=and
*/
public class Main1053_피보나치 {
public static void main(String[] args) throws NumberFormatException, IOException {
... |
/*
* Copyright 2020 Hippo B.V. (http://www.onehippo.com)
*
* 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 applic... |
package owner.aopbeans;
import org.springframework.stereotype.Component;
@Component
public class AopTest {
public void method(){
System.out.printf("AopTest method......Running");
}
}
|
import java.util.Properties;
import com.troila.redis.JedisInterface;
import com.troila.redis.factory.JedisFactory;
import com.troila.redis.utils.ConfigureUtils;
//@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration(locations = {"classpath:spring-core.xml"})
public class RedisTest{
// @Autowired
// ... |
/* Tipos primitivos ->
* (boolean , char , short int ou long , float ou double.)
* double variavel = 100.2;
* float variavel = 100.2f;
* char variavel = 'a';
* String e uma classe e nao um tipo primitivo.
* (&& and) (|| or)
* Operadores Unarios: ++(+1) --(-1) -(negativo) !(not)
* Operador Condicional (ternario)... |
package com.daydvr.store.bean;
import android.graphics.drawable.Drawable;
/**
* @author LoSyc
* @version Created on 2017/12/31. 0:37
*/
public class GameBean {
private String name;
private String summary;
private String type;
private Drawable icon;
private String url;
private String package... |
package com.example.pawansiwakoti.vicroadslicensetest.activities;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.support.v7.... |
package com.interestcalc;
import java.io.FileOutputStream;
import java.io.IOException;
//import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.ap... |
package loecraftpack.common.items;
import java.util.ArrayList;
import java.util.List;
import loecraftpack.LoECraftPack;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import net.... |
package ca.oneroof.oneroof.ui;
import androidx.test.core.app.ActivityScenario;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Random;
import ca.oneroof.oneroof.R;
import static androidx.test.espresso.Espresso.onView;
import static andr... |
package com.rednovo.ace.ui.activity.my;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.rednovo.ace.R;
import com.rednovo.ace.common.UpdateAttacher;
import com.rednovo.ace.data.UserInfoUtils;
import com.rednovo.ace.ui.activity.LoginActivity... |
package com.leon.meepo.tinyioc.xml;
import com.leon.meepo.tinyioc.AbstractBeanDefinitionReader;
import com.leon.meepo.tinyioc.BeanDefinition;
import com.leon.meepo.tinyioc.BeanReference;
import com.leon.meepo.tinyioc.PropertyValue;
import com.leon.meepo.tinyioc.PropertyValues;
import com.leon.meepo.tinyioc.io.Resource... |
package com.gxtc.huchuan.bean;
import java.util.List;
/**
* Describe:
* Created by ALing on 2017/5/21 .
*/
public class InComeAllCountBean {
/**
* chatMoney : 0.01
* groupMoney : 10.0
* rewardMoney : 0
* totalMoney : 10.01
* tradeMoney : 0
* userStreams : [{"balance":"0.01","cre... |
package com.test;
import com.test.base.Solution;
/**
* 桶概念的使用
* @author YLine
*
* 2018年11月13日 下午8:05:34
*/
public class SolutionA implements Solution
{
@Override
public int firstMissingPositive(int[] nums)
{
// 入口校验
if (null == nums || nums.length == 0)
{
retu... |
package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.Select;
public class ManageReservesPage extends BasePage {
private By addNewBankACBtnLocator = By.id("AccountAddNew");
private By accountTypeLocator = By.xpath("//select[@id='AccountType']");
private By defaultACChkBoxLocat... |
package com.test;
import java.io.IOException;
import com.android.uiautomator.core.UiObjectNotFoundException;
import com.android.uiautomator.testrunner.UiAutomatorTestCase;
public class Helper {
private UiAutomatorTestCase testcase;
public Helper(UiAutomatorTestCase testcase) {
this.testcase = testcas... |
package object;
/**
* 测试继承
* Object所有类的父类
*/
public class TestExtends {
public static void main(String[] args) {
Student student = new Student("高晓青", 11, "计算机");
System.out.println("姓名 = " + student.name);
System.out.println(student instanceof Student); //true
System.out.prin... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
package com.example.yx_lib_zxing.scanlogin.android;
/**
* Created by sdj on 2017/11/21.
*/
public class ScanConstants {
//二维码弱光标识
public static boolean isWeakLight = false;
public static final String KEY_DECODE_1D = "preferences_decode_1D";
public static final String KEY_DECODE_QR = "preferences_de... |
package com.harshitJaiswal.CareerBootCampEnteranceTest;
/*
*
* Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, In how many ways can we make the change? The order of coins doesn’t matter.
Input Format
First line of input contain two sp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.