text stringlengths 10 2.72M |
|---|
package com.tencent.mm.plugin.wxcredit;
import com.tencent.mm.ab.l;
import com.tencent.mm.plugin.wxcredit.a.a;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.wallet_core.d.g;
import com.tencent.mm.wallet_core.d.i;
class e$2 extends g {
final /* synthetic */ e qwh;
e$2(e eVar, MMActivity mMActivit... |
package com.twu.infrastructure;
import com.twu.model.User;
import java.util.Scanner;
public class ManageBookMenu {
private User user;
private ManageMainMenu menu;
public ManageBookMenu(User user, ManageMainMenu menu) {
this.user = user;
this.menu = menu;
}
public void showBookS... |
package com.zy.crm.entity;
import java.io.Serializable;
public class User implements Serializable{
private Integer userId;
private String userCode;
private String userName;
private String userPwd;
private Integer userState;
public Integer getUserId() {
return userId;
}
public... |
package parcial.model;
public class Prestamo {
private double valor;
private double interes;
private double plazo;
private Asociado a1;
public Prestamo(double valor, double interes, double plazo, Asociado a1) {
this.valor = valor;
this.interes = interes;
this... |
package com.example.signin;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
... |
package com.phgof.android_project.PacelableData;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
/**
* Created by Ph.GOF on 4/1/2018.
*/
public class MyData implements Parcelable {
int x=1;
String names;
protected MyData(Parcel in) {
x = in.readInt();
... |
package com.json;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
... |
public class TassaTest {
double importo;
public TassaTest(double newImporto) {
importo=newImporto;
}
public double getTassa() {
double tassa=0;
int tassa10=1000;
int tassa7=700;
int tassa5=500;
double a=0;
if(importo<=10000)
tassa=((importo*10)/100);
... |
package heihei.shenqi.presentation.rtys;
import java.util.List;
import heihei.shenqi.data.Task;
import heihei.shenqi.presentation.BasePresenter;
import heihei.shenqi.presentation.BaseView;
/**
* User: lyjq(1752095474)
* Date: 2016-07-25
*/
public class PicContract {
interface View extends BaseView<Presenter>... |
package org.ros.android.view.visualization.shape;
import org.ros.android.view.visualization.VisualizationView;
import uk.co.blogspot.fractiousg.texample.GLText;
import javax.microedition.khronos.opengles.GL10;
public class TextShape extends BaseShape {
private final GLText glText;
private final String text;
p... |
package com.example.isafety;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class SosHomeActivity extends AppCompatActivity {
private Button sosButton;
@Override
protected void onCr... |
package com.alodiga.wallet.ejb;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
imp... |
package com.niit.MobileShoppingBackend.test;
import static org.junit.Assert.assertEquals;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.niit.MobileShoppingBackend.DAO.ProductDAO;
import com.niit.MobileShoppin... |
package ativ_fix_hashmap_02_AndreLucas;
import java.util.HashMap;
import java.util.Scanner;
public class acesso {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
HashMap<String, String> login = new HashMap<String, String>();
f... |
package com.tencent.mm.plugin.account.ui;
import android.app.ProgressDialog;
import android.os.Bundle;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.account.a.j;
import com.tencent.mm.plugin.account.friend.a.v;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.ui.base.h;
import com.tencen... |
public class mixedMessages23 {
public static void main (String[] args) {
candidate1();
candidate2();
candidate3();
candidate4();
candidate5();
}
public static void candidate1() {
//00 11 21 32 42
int x = 0;
int y = 0;
while (x < 5) {
y = x - y;
System.out.print(x + ... |
package ru.molkov.core;
import java.io.Serializable;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transa... |
package com.bowlong.net.proto.gen;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.lang.reflect.Method;
import java.nio.charset.Charset;
import com.bowlong.util.NewList;
import com.bowlong.util.NewMap;
import com.bowlong.util.StrBuilder;
@SuppressWarnings({ "unuse... |
package com.service;
import java.util.List;
import com.dto.Baseinfo;
public interface BaseinfoService {
List<Baseinfo> getAll(Baseinfo baseinfo);
int delete(Long id);
boolean insert(Baseinfo baseinfo);
boolean update(Baseinfo baseinfo);
Baseinfo selectByPrimaryKey(Baseinfo baseinfo);
}
|
package com.xworkz.rental.controller;
import java.util.List;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.sp... |
package com.locadoraveiculosweb.constants;
import static java.util.Arrays.stream;
import com.locadoraveiculosweb.exception.NegocioException;
import lombok.Getter;
public class MessageConstants {
public enum ViewMessages {
SALVO_COM_SUCESSO("{0}: {1} salvo com Sucesso!", "SALVAR", "SUCESSO"),
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 marier.business;
/**
*
* @author linma
*
*/
public class Customer {
String emailID;
String firstName;
String ... |
package com.hs.doubaobao.model.AddLoanTable.uploadMessage;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.hs.doubaobao.R;
import com.hs.doubaobao.base.AppBarActiv... |
package com.tripad.cootrack.erpCommon.ad_callouts;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import javax.servlet.ServletException;
import org.apache.log4j.Logger;
import org.hibernate.criterion.Restrictions;
import org.openbravo.dal.service.OBCriteria;
import org.openbravo.dal.service.OBDal;
... |
package com.aws.demo.permids.services.dynamodb;
import com.aws.demo.permids.services.BatchPermIdService;
import com.aws.demo.permids.services.PermIdService;
import com.aws.demo.permids.services.ResetPermIdService;
public interface DynamoDBService<T, A> extends ResetPermIdService, PermIdService<T, A>, BatchPermIdServi... |
package com.esc.fms.service.base;
import com.esc.fms.entity.Dictionary;
import java.util.List;
/**
* Created by tangjie on 2016/12/9.
*/
public interface DictionaryService {
List<Dictionary> selectByDictType(String dictType);
}
|
package ru.lember.neointegrationadapter.handler.projectA;
import lombok.extern.slf4j.Slf4j;
import reactor.core.publisher.ReplayProcessor;
import reactor.core.publisher.FluxProcessor;
import ru.lember.neointegrationadapter.handler.Handler;
import ru.lember.neointegrationadapter.handler.Splitter;
import ru.lember.neoin... |
/**
* Client side of the handshake.
*/
import java.net.Socket;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.security.*;
import java.security.cert.*;
import java.security.spec.InvalidKeySpecException;
import java.util.Base64;
import javax.crypto.BadPaddingException;
import javax.cryp... |
package org.km.domain_model.domin;
import org.km.values.MfDate;
import org.km.values.Money;
public class RevenueRecognition {
private Money amount;
private MfDate date;
public RevenueRecognition(Money money, MfDate date) {
this.amount = money;
this.date = date;
}
public Money getAmount(){
return amount... |
package executors;
import java.util.concurrent.*;
public class executorMain {
public static void main(String[] args) {
// runs 10 at the same time
ExecutorService newExec = Executors.newFixedThreadPool(10);
for (int i = 0; i < 10; i++) {
Runnable worker = new threads(" " + i);... |
package com.example.kcroz.joggr.RecordRoute;
import android.content.Context;
import android.os.AsyncTask;
import com.example.kcroz.joggr.AsyncResponse;
import com.example.kcroz.joggr.DatabaseHelper;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class InsertRun extends AsyncTask<Void, Void, Int... |
package com.cskaoyan.mapper;
import com.cskaoyan.bean.Product;
import com.cskaoyan.bean.Unqualify;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @auther 芮狼Dan
* @date 2019-05-17 23:46
*/
public interface UnqualifyMapper {
//分页查找
List<Unqualify> findList(@Param("rows") int rows,... |
package guru.springframework.controllers.v1;
import guru.springframework.api.v1.model.VendorDto;
import guru.springframework.api.v1.model.VendorListDto;
import guru.springframework.services.VendorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
i... |
package br.com.funcionario.system.controller;
import java.net.URI;
import java.util.List;
import java.util.Optional;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.De... |
package ua.kiev.doctorvera;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Locale;
/**
* Created by Bodun on 19.08.2014.
*/
public class SMS {
private Integer id;
private String phoneNumber;
private String text;
private Byte state;
private Da... |
package com.wx.controller;
import com.wx.service.RestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEn... |
/*
Name - Amritpal Singh
Class - NYIT CSCI-860 Big Data Analysis
Date - 02/27/2016
Last modified - 04-02-2016
Project Description - Implement a MapReduce program that is able to run by Hadoop
on HDFS cluster or node. The program's function is to search for particular
information in multiple files and proces... |
package group.wnrcorp.com.navigationproject;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.vie... |
package com.qswy.app.utils;
import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import com.qswy.app.application.MyApplication;
import java.util.List;
/**
* Created by ryl on 2016/11/1.
* App相关工具类
*/
public class App... |
package com.utils.util.wrapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class PageUtil {
/**
* The total row. 总条数
*/
@ApiModelProperty(value = "总条数", name = "totalRow")
private int totalRow;
/**
* The total page.总页数
*/
@ApiModelPrope... |
package gr.athena.innovation.fagi.specification;
import java.util.HashMap;
import java.util.Map;
/**
* Enumeration of RDF formats.
*
* @author nkarag
*/
public enum EnumRDFFormat {
DEFAULT(0), NT(1), TTL(2), RDF(3), OWL(4), JSONLD(5), RJ(6), TRIG(7), TRIX(8), NQ(9);
private final int value;
private ... |
package in.yuchengl.scoutui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.parse.ParseException;
import com.parse.Pars... |
package com.ssgl.controller;
/*
* 功能:学生相关操作
* User: jiajunkang
* email:jiajunkang@outlook.com
* Date: 2017/12/30 0030
* Time: 23:53
*/
import com.alibaba.fastjson.JSONObject;
import com.ssgl.bean.Page;
import com.ssgl.bean.Result;
import com.ssgl.bean.Student;
import com.ssgl.service.StudentService;
import com.s... |
public class Driver {
public static String displayPath(QCell[] path) {
String ret = "";
if (path == null)
{
System.out.println("Incorrect return, Your path method should never return null. Make sure it returns an empty array if no path exists");
return ret;
}
if ( path.length == 0 ) {... |
package 문제풀이;
import java.util.Scanner;
public class 스트링 {
public static void main(String[] args) {
String[] s2 = {"java","jsp","srping"};
//s2[0] : 주소
//String 변수는 원래 주소가 들어가지만
// 내부적으로 그 주소가 가르키는 char들을 프린트되도록 조정이 되어있는 상태
String[] s = new String[3];
//배열 자동초기화 {null,null,null}
Scanner sc = new... |
package problem02;
public class Solution {
/**
* @author Jackid
* JDK-version:1.8
* Problem:牛客网-剑指offer《替换空格》
* Result:已通过了所有的测试用例
*/
/*
请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。
*/
public String replaceSpace(StringBuffer str) {
int old_length = str.length();/... |
///////////////////////////////////////////////////////////////////////////////
//
// Main Class File: Receiver.java
// File: BrokenImageException.java
// Semester: CS367 Data Structures Spring 2016
//
// Author: David Liang dliang23@wisc.edu
// CS Login: dliang
// Lecturer's Na... |
package parsing_json;
import com.google.gson.Gson;
import com.google.gson.stream.JsonReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Arrays;
/**
* @TODO
* The generate method in this class should load the JSON text (periodic_table.json) into
* an Eleme... |
package cloudserver;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
/*
* 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 edito... |
public class Publicacaow extends Publicacao{
private double taxaEntrega;
public void calcularAnuidade(){
}
public void calcularTaxaEntrega(){
}
public void imprimirDados(){
}
}
|
package com.tencent.mm.plugin.appbrand.wxawidget.console;
import android.os.Bundle;
import com.tencent.mm.ipcinvoker.d.e;
import com.tencent.mm.sdk.platformtools.x;
import java.util.ArrayList;
class d$1 implements e {
d$1() {
}
public final /* synthetic */ void at(Object obj) {
Bundle bundle = (B... |
/*
* 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 prepa4;
import java.util.Scanner;
/**
*
* @author Sony
*/
public class Aplicacion {
private Equipo[] vec_equipo ... |
package com.paytechnologies.cloudacar;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
public class AlarmReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Inte... |
package br.com.itau.dashboard.dao;
import org.springframework.data.repository.CrudRepository;
import br.com.itau.dashboard.model.Alarme;
public interface AlarmeDAO extends CrudRepository<Alarme,Integer>{
}
|
package com.ibeiliao.pay.account.impl.service;
import com.alibaba.dubbo.common.utils.NamedThreadFactory;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.ibeiliao.pay.ServiceException;
import com.ibeiliao.pay.account.api.dto.BankAccountPr... |
//import java.util.*;
public class Card {
private String value;
private char suit;
private String output = "";
public Card(int value, char suit) {
//kijkt eerst of de kaart naar een A K Q of J moet veranderd worden en voegt daarna de kaart definitief toe
intToString(suit, value);
setCard(output, suit);
}
... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.ArbeitsvorgangTypType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.BONDALIstdatenType;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.... |
package com.gg.example.springExample.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import com.gg.example.springExample.model.Owner;
import com.gg.example.springExample.model.Person;
import com.gg.example.springExample.... |
package com.findthewaygame.mygdx.game;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class WhiteCharacter {
public int RealX;
public int RealY;
public int Speed;
private Texture WhiteCircle = new Texture("WhiteCircle.png");
public DrawMap Map;
private GameR... |
package com.yougou.merchant.api.supplier.vo;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.yougou.merchant.api.common.UUIDGenerator;
public class MerchantContractUpdateHistory {
private String id;
private String operator;
private Date operationTime;
p... |
package com.smelending.kotak;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Logger;
import org.jpos.iso.ISOUtil;
public class writeIn... |
package lab3;
public class String_To_Int_Test {
public static void main(String[] args){
int x = 42;
String s = "" + x;
String s2 = "42";
int x2 = Integer.parseInt(s2);
String s3 = "Hello";
int x3 = Integer.parseInt(s3);
}
}
|
package com.goldgov.dygl.module.partymember.service;
import java.util.List;
import java.util.Map;
import com.goldgov.dygl.module.partymember.exception.NoAuthorizedFieldException;
import com.goldgov.gtiles.module.businessfield.service.BusinessField;
public interface IPartyMemberService_BA {
public void ad... |
package main;
import java.io.*;
import java.util.*;
import main.GreenhouseControls;
import tme3.Controller.ControllerException;
class Restore {
String filename = "";
public Restore(String filename) {
this.filename = filename;
}
public void display() throws IOException, ClassNotFoundException, ControllerExcep... |
package chatterby.ui;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.SimpleDateFormat;
import java.util.concurrent.locks.ReentrantLock;
import java.u... |
package com.test;
import com.service.impl.LenderUserServiceImpl;
import org.junit.Test;
import java.util.List;
public class LenderUserImplTest {
@Test
public void getListTest(){
LenderUserServiceImpl lenderUser = new LenderUserServiceImpl();
List admin = lenderUser.getLender("admin");
... |
public class Point {
int x;
int y;
Point(int x,int y){
this.x=x;
this.y=y;
}
int getX(){
return x;
}
int getY() {
return y;
}
}
|
public class BloomFilter {
private int[] bloomFilter = new int[10];
private final int m = 3;
public int HashOne(int value){
return value - 1 % m;
}
public int HashTwo(int value){
return value * 5 % m;
}
public void add(int value){
int hashOneValue = HashOne(value)... |
package frc.robot.controls;
public class Controls {
// Contoller mappings:
// Buttons :
// (A) button : 1
public static final int A_BUTTON = 1;
// (B) button : 2
public static final int B_BUTTON = 2;
// (X) button : 3
public static final int X_BUTTON = 3;
// ... |
import javax.swing.*;
import java.util.*;
import java.util.concurrent.ConcurrentLinkedDeque;
public class OrderBook {
String productName;
private TreeMap<Integer,ConcurrentLinkedDeque<Order>> orderBook = new TreeMap<>();
private int topBid = -1;
private int bottomOffer = 0;
private HashSet<Order> o... |
/*
* Sonar, open source software quality management tool.
* Copyright (C) 2009 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar 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... |
package com.ydl.iec.iec104.server;
import com.ydl.iec.iec104.config.Iec104Config;
import com.ydl.iec.iec104.server.handler.DataHandler;
/**
* 从站抽象类
*/
public interface Iec104Slave {
/**
*
* @Title: run
* @Description: 启动主机
* @throws Exception
*/
void run() throws Exception;
/**
*
* @Title: setDat... |
package Lab11.Zad2;
public abstract class State {
public abstract String onOffState();
public abstract String onOnState();
public abstract String onNextState();
public abstract String onPrevState();
public abstract String showChannel();
}
|
package com.locadoraveiculosweb.modelo.dtos;
import static java.math.BigDecimal.ZERO;
import static java.math.BigDecimal.valueOf;
import static java.util.Optional.ofNullable;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import ... |
package edu.uci.ics.sdcl.firefly.util.mturk;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Replaces workerIDs with consolidated workerIDs
* This is done in order to guarantee that a same... |
package com.altimetrik.demo.model;
import java.util.List;
public class Album {
private String name;
private float playcount;
private String mbid;
private String url;
// Getter Methods
public String getName() {
return name;
}
public float getPlaycount() {
return playcount;
}
public Stri... |
package fpt.fis.Controller;
import fpt.fis.Service.UserService;
import fpt.fis.dto.UserDto;
import fpt.fis.model.User;
import fpt.fis.repository.UserResponsitory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
i... |
package com;
/**
* Created by wangxin on 2017/4/7.
*/
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.glassfish.jersey.servlet.ServletContainer;
public class RestServer{
public static void main(String[] ar... |
package ByteDance;
public class TrappingRainWater {
public int trap(int[] height) {
if (height.length == 0) return 0;
int sum = 0;
int maxIndex = 0;
for (int i = 1; i < height.length; i ++) {
if (height[i] > height[maxIndex])
maxIndex = i;
}
... |
package ialogistica;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.Random;
import aima.basic.Agent;
import aima.search.... |
package again_again;
public class Class28_breakVsContinue {
public static void main (String [] args){
for(int n =1;n <=5 ;n++){
System.out.println(n);
if (n == 3){
break;
}
}
for(int i =1 ; i <=5; i++){
if(i == 4 || i == 2){
... |
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class ProyectoFinalizado_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.ge... |
package database.entity;
import javax.persistence.*;
import javax.xml.parsers.DocumentBuilderFactory;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
/**
* Created by csvanefalk on 18/11/14.
*/
@Entity
public class Project implements IEntity {
@Id
private int id;
public int ... |
package com.tencent.mm.plugin.soter.b;
import com.tencent.mm.protocal.c.bvg;
import com.tencent.mm.protocal.k;
import com.tencent.mm.protocal.k.c;
import com.tencent.mm.protocal.k.e;
public class c$b extends e implements c {
public bvg onw = new bvg();
public final int G(byte[] bArr) {
this.onw = (bv... |
package com.mycom.config;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;... |
import java.util.Arrays;
import java.util.Scanner;
public class Anagram2 {
static boolean isAnagram(String a, String b) {
if(a.length() != b.length())
return false;
boolean isAnagram = true;
char[] aArray = a.toCharArray();
char[] bArray = b.toCharArray();
A... |
package com.goldgov.gtiles.module.attachment.web;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
... |
package com.neo.test.curator;
import java.util.concurrent.TimeUnit;
import org.apache.curator.RetryPolicy;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.framework.recipes.locks.InterProcessMutex;
import org.apache.c... |
package ager;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
public class Waller {
static boolean[] GO_THRU = new boolean[1024];
static {
GO_THRU[Types.Air + 1] = true;
GO_THRU[Types.Tall_Grass + 1] = true;
GO_THRU[Types.Dead_Bush + 1] = true;
GO_THRU[Types.Rose + 1] ... |
package com.tencent.mm.plugin.collect.ui;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class CollectBillListUI$1 implements OnMenuItemClickListener {
final /* synthetic */ CollectBillListUI hXk;
CollectBillListUI$1(CollectBillListUI collectBillListUI) {
this.hXk... |
package level1;
import java.util.ArrayList;
import java.util.Arrays;
public class 나누어_떨어지는_숫자_배열 {
class Solution {
public int[] solution(int[] arr, int divisor) {
ArrayList<Integer> list = new ArrayList<>();
for (int i : arr) if (i % divisor == 0) list.add(i);
if(lis... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Class for the help menu
*
* @author Saksham Ghimire and Densai Moua
* @version 12/15/2010
*/
public class helpImage extends Actor
{
/**
* Act - do whatever the helpImage wants to do. This method is called whenever
... |
package ladder.DynamicProgrammingII;
/**
* A message containing letters from A-Z is being encoded to numbers using the following mapping:
* 'A' -> 1
* 'B' -> 2
* ...
* 'Z' -> 26
* Given an encoded message containing digits, determine the total number of ways to decode it.
*
* Given encoded message 12, it could ... |
package com.dahlstore.dnote5;
import android.view.View;
import android.widget.ImageView;
public class Memo {
public String header, bodyText;
public ImageView imageView;
public Memo(String header, String bodyText, ImageView imageView){
this.header = header;
this.bodyText =... |
package com.cmpickle.volumize.view.alerts;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.Context;
import android.support.annotation.StringRes;
import android.support.v4.content.ContextCompat;
import android.util.DisplayMetrics;
import android.view.LayoutInflater... |
package algo_basic.day1;
import java.util.Scanner;
public class SWEA_2050_D1_알파벳 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
String StringName = s.next();
for (int i = 0; i < StringName.length(); i++) {
sb.append(StringName.c... |
package advance.dev;
import java.util.*;
public class MainApp {
public static void input(Person[] persons) {
Scanner sc = new Scanner(System.in);
Person[] tc = new Teacher[1];
for (int i = 0; i < tc.length; i++) {
System.out.println("Nhap ten gv: ");
String tengv = sc.next();
System.out.println("Nhap ... |
public class Rectangle extends Shape implements Spatial {
private double length;
private double width;
public double getLength() {
return this.length;
}
public double getWidth() {
return this.width;
}
public void setWidth(double width) {
this.width=width;
}
public void setLength(double l... |
package com.encore.spring.model;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.encore.spring.domain.Item;
@Service
public class ItemCatalogImpl implements ItemCatalog {
@Autowired
private ItemDAO itemD... |
package com.fordprog.matrix.interpreter.execution;
import com.fordprog.matrix.interpreter.type.BuiltinFunction;
import com.fordprog.matrix.interpreter.type.UserDefinedFunction;
public interface FunctionVisitor {
void visit(UserDefinedFunction userDefinedFunction);
void visit(BuiltinFunction builtinFunction);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.