text
stringlengths
10
2.72M
package com.tuitaking.tree; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; /** * 给定一棵二叉树,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值。 * * 示例: * * 输入: [1,2,3,null,5,null,4] * 输出: [1, 3, 4] * 解释: * * 1 <--- * / \ * 2 ...
package com.trantienptit.sev_user.chatbot23.bubble; /** * Created by SEV_USER on 9/20/2016. */ public interface OnInitializedCallback { void onInitialized(); }
/* * 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 safeflyeu.view; import javax.swing.DefaultComboBoxModel; import javax.swing.DefaultListModel; import javax.swing.JOptionPane; ...
package com.rc.portal.vo; public class TGoodsImages { private Long id; private String titel; private String artworkUrl; private String imageUrl; private Integer sort; private Integer userType; private Integer isdefault; private Long goodsid; public Long getId() { ret...
package com.example.world.repository.orm; import java.util.Collection; import java.util.List; import java.util.Objects; import java.util.Optional; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import org.springframework.stereotype.Repository; import org.springframework.transact...
package am.data.enums; import am.main.data.enums.logger.LoggerLevels; import am.main.spi.AMPhase; /** * Created by ahmed.motair on 2/9/2018. */ public class ALP extends AMPhase { private static final String AM_LOG = "AML"; public static final ALP BUSINESS_LOG = new ALP(AM_LOG, "Business"); ...
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.ERHITZENSolldatenType; import java.io.StringWriter; import javax.xml.bind.JAXBElement; import javax.xml.bi...
package com.days.moment.miniboard.dto; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.time.LocalDateTime; @Data @Builder @AllArgsConstructor @NoArgsConstructor public class ReplyDTO { p...
/* * 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 AAPA.Entity; import java.util.List; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.per...
/* * LumaQQ - Java QQ Client * * Copyright (C) 2004 notXX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ...
package cr.ulacit.dto; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name="menuDishDTO") public class MenuDishDTO { private int id_menudish; public int getId_menudish() { return id_menudish; } public void setId_menudish(int id_menudish) { this.id_menudish = id_menudish; } @Override pu...
package com.company; import java.util.Scanner; public class Refresher_Challenge { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Your name: "); String name=scanner.next(); System.out.println(); int times=10; if(nam...
package org.seckill.seckill.dao; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.seckill.seckill.entity.Seckill; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.contex...
package leecode.dfs; import com.sun.org.apache.bcel.internal.generic.FADD; public class 岛屿的最大面积_695 { //对比lee200 // 并查集只需要走右,走下 方向 即{1,0},{0,1} static int[][]dirs=new int[][]{{1,0},{0,1},{0,-1},{-1,0}};//表示上下左右搜索,{1,-1}表示斜着搜索 public static int maxAreaOfIsland(int[][]grid){ int m=grid.length; ...
import com.zsl.web.common.dao.IBaseDao; import com.zsl.web.common.dao.IOperations; /** * note * @author gq * */ public interface IModelDao extends IOperations<Model>,IBaseDao<Model> { }
package com.FCI.SWE.Models; import static org.testng.Assert.assertEquals; import java.util.ArrayList; import org.testng.annotations.Test; public class PageTest { /*** Failed ***/ @Test public void getPage() { boolean found = false; if(Page.getPage(2) != null) found = true; assertEquals( found...
package com.mes.old.meta; // Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final import java.math.BigDecimal; /** * J4WorkflowParaId generated by hbm2java */ public class J4WorkflowParaId implements java.io.Serializable { private BigDecimal id; private String processname; private String taskname; privat...
package com.example.usersessionmanagement; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public cl...
package com.zpjr.cunguan.view.setting; import com.zpjr.cunguan.common.base.IBaseView; /** * Description: 描述 * Autour: LF * Date: 2017/8/22 11:45 */ public interface ICMSWebView extends IBaseView{ //设置webview内容 void webViewInitial(String content); }
package Record; import java.util.ArrayList; import java.util.Objects; import java.util.Scanner; /** * Created by Sega on 03.08.2017. */ public class Parser { public static void parseRecords(String servletContext, ArrayList<Record> records) { Scanner scanner = new Scanner(servletContext); while (...
package gov.virginia.dmas.dao; import org.springframework.data.jpa.repository.JpaRepository; import gov.virginia.dmas.entity.ElectedOfficialRequestInternalEntity; public interface ElectedOfficialRequestInternalRepository extends JpaRepository<ElectedOfficialRequestInternalEntity, Long>{ }
package com.williamchik; import android.view.View; import android.widget.TextView; /** * view holder of AutoFitViewGroup's item, like RecyclerView's ViewHolder class * * @author WilliamChik on 15/9/26. */ public class AutoFitViewGroupItemViewHolder extends AutoFitViewGroup.ViewHolder { public TextView demoGrou...
package com.example.android.miwok; import android.content.Context; import android.media.AudioManager; import android.media.MediaPlayer; 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.Ad...
package com.example.changelogerror.service; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; /** * @author madengbo * @create 2018-11-06 14:09 * @desc * @Version 1.0 **/ @Slf4j @Component public class LogTest { public void testInfo(){ log.info("service info test"); ...
package round.first.linkedList; //https://www.lintcode.com/problem/reorder-list/description public class ReorderList { /** * @param head: The head of linked list. * @return: nothing */ public void reorderList(ListNode head) { // write your code here if (head == null || head.next == null || head.ne...
package chc; import shared.LogOptions; import shared.Inducer; import id3.ID3Inducer; import nb.NaiveBayesInd; import java.io.IOException; /** CHC is a genetic algorithm used with mlj inducers to find the * best possible combination of attributes for testing data samples. * The combinations, called hypothesis, ar...
package dev.etna.jabberclient.fragments; import android.app.Fragment; import android.content.Context; import android.database.Cursor; import android.os.Bundle; import android.support.v4.content.ContextCompat; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.Vie...
package util; import model.User; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.lang.reflect.Method; import java.util.Arrays; import java.util.Map; /** * IDE : IntelliJ IDEA * Created by minho on 2018. 9. 29.. */ public class UserUtils { private static final Logger log = LoggerFactory.ge...
package fr.lteconsulting.servlet.vue; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import fr.lteconsulting.servlet.DataAccessServlet; import fr.lteconsulting.servlet.Rendu; public class ListeCartesServ...
package com.example.demo.controller; import com.example.demo.dto.*; import com.example.demo.entity.*; import com.example.demo.exception.CustomException; import com.example.demo.repository.*; import com.example.demo.security.TokenProvider; import com.example.demo.service.UserService; import org.springframework.beans.fa...
package pl.finsys.springJpa; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; import javax.transaction.Transactional; import org.springframework.dao.DataAccessException; import org.springframework.stereotype.Repository; @Repo...
package bootcamp.test.filereaders.excelreader; public class TestcaseBO { private String name; private String pageName; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPageName() { return pageName; } public void setPageName(String page...
package com.alexkirillov.alitabot.models.logging; import com.mongodb.BasicDBObject; import com.mongodb.DBObject; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; //TODO !!!Test Concept!!! public class MessageLog { private final String messageDate; private final String use...
package bartender.bardatabase; public class BarStorageInfo { /** * An object which represents information about a single type of shoe in the store */ private String item; private int amountOnStorage; private int discountedAmount; /** * * @param shoeType the type of the shoe * @par...
package leetcode_arrays_strings; import java.io.File; import java.io.IOException; import java.util.HashSet; import java.util.Scanner; import random_generator.Random_String; /** * Question 575: Distribute Candies -- Given an integer array with even length, * where different numbers in this array represent different...
/* * ********************************************************* * Copyright (c) 2019 @alxgcrz All rights reserved. * This code is licensed under the MIT license. * Images, graphics, audio and the rest of the assets be * outside this license and are copyrighted. * ***************************************************...
package com.fixit.ui.activities; import android.content.ActivityNotFoundException; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.Typeface; import android.net.ConnectivityMan...
package fr.lteconsulting.formations; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import org.junit.Assert; import org.junit.Test; public class DateParsingTest { @Test public void test() { // 01-janv. SimpleDateFormat format = new SimpleDateForma...
package ru.vlad805.mapssharedpoints; public class IntervalDate { private int interval; public IntervalDate (int i) { interval = i; } public int getDays () { return interval / 60 / 60 / 24; } public int getHours () { return interval / 60 / 60; } public int getMinutes () { return interval / 60 % 60; } }
package round.first.linkedList; public class RemoveDuplicatesfromSortedList2 { /** * @param head: head is the head of the linked list * @return: head of the linked list */ public ListNode deleteDuplicates(ListNode head) { // write your code here if(head == null || head.next == null){ return ...
package com.example.bakingapp; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; impor...
/* * CS 349 Java Code Examples * * ShapeDemo Demo of MyShape class: draw shapes using mouse. * */ import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; import java.awt.geom.*; import java.util.ArrayList; import javax.vecmath.*; import javax.swing.event.MouseInputListener; import java.awt.event.Mou...
package com.licenta.server.repository; import com.licenta.server.model.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface UserRepository extends JpaRepository<User,Integer> { User findUserByUsername(String username); ...
package servlet; import java.util.ArrayList; import java.util.Map; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; import data.projectLogic; import data.riskLogic; import model.risk; public class ProjectAction extends ActionSupport{ //p private int sele...
package de.zarncke.lib.seq; import java.util.concurrent.atomic.AtomicLong; /** * A simple atomic in memory integer sequence. * * @author Gunnar Zarncke <gunnar@zarncke.de> */ public class SimpleSequence implements Sequence { private final AtomicLong sequence = new AtomicLong(); public SimpleSequ...
package org.lvzr.fast.java.patten.struct.proxy; public interface Sourceable { public void method(); }
package main.java.com.java4beginners.ex4; public abstract class Animal { public abstract void hablar(); public void comer(){; System.out.println("Me gusta comer comida"); } }
package com.tencent.tencentmap.mapsdk.a; import java.util.ArrayList; public final class jr extends mf { static ArrayList<ju> e = new ArrayList(); public ArrayList<ju> a = null; public String b = ""; public String c = ""; public String d = ""; public jr(ArrayList<ju> arrayList, String str, Str...
package problem_solve.shortest_path.dijkstra.baekjoon; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.PriorityQueue; import java.util.StringTokenizer; public class BaekJoon6118 { static int N,M; static Barn[] barn; static int[] cost; publ...
package rouchuan.viewpagerlayoutmanager; import android.content.Context; import android.view.WindowManager; import android.widget.PopupWindow; /** * Created by Dajavu on 26/10/2017. */ public abstract class SettingPopUpWindow extends PopupWindow { public SettingPopUpWindow(Context context) { super(cont...
package com.mmr.rabbitmq.work; import com.mmr.rabbitmq.util.ConnectionUtils; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import sun.applet.resources.MsgAppletViewer; import java.io.IOException; import java.util.concurrent.TimeoutException; public class Send { private static final S...
package com.example.truedevelop; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.AsyncTask; import android.os.Bundle; import android.support.design.widget.NavigationView; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import an...
package edu.kit.pse.osip.core.model.base; import edu.kit.pse.osip.core.SimulationConstants; import org.junit.Before; import org.junit.Test; import java.util.Observable; import java.util.Observer; import static junit.framework.TestCase.assertFalse; import static org.junit.Assert.assertEquals; import static org.junit.A...
package pl.connectis.cschool.client.domain; import com.sencha.gxt.core.client.ValueProvider; import com.sencha.gxt.data.shared.ModelKeyProvider; import com.sencha.gxt.data.shared.PropertyAccess; import pl.connectis.cschool.shared.Product; import pl.connectis.cschool.shared.dto.InvoiceDTO; /** * Created by B...
package com.mx.profuturo.bolsa.web.controller.corporate.notifications; import com.mx.profuturo.bolsa.model.service.BaseResponseBean; import com.mx.profuturo.bolsa.model.service.notifications.base.NotificationBase; import com.mx.profuturo.bolsa.service.notifications.NotificationService; import com.mx.profuturo.bolsa.ut...
package com.tencent.mm.plugin.label.ui; import android.content.Context; import android.content.res.ColorStateList; import android.database.Cursor; import android.os.Looper; import android.view.View; import android.view.ViewGroup; import com.tencent.mm.R; import com.tencent.mm.ac.m; import com.tencent.mm.bt.d; import c...
package smart.lib.payment; import smart.cache.SystemCache; import smart.config.AppConfig; import smart.util.Helper; import smart.service.OrderService; import com.alipay.easysdk.factory.Factory; import com.alipay.easysdk.kernel.Config; import com.alipay.easysdk.kernel.util.ResponseChecker; import com.alipay.ea...
@Capsule(exportKeyword = TaskAPI.class, friends = { "assemAssist.model.factoryline.workStation", "assemAssist.model.operations", "assemAssist" }) package assemAssist.model.operations.task; import capsules.Capsule;
package com.quickrant.admin.utils; import java.sql.Timestamp; import java.text.SimpleDateFormat; public class TimeUtils { public static long getNow() { return System.currentTimeMillis(); } public static Timestamp getNowTimestamp() { return new Timestamp(System.currentTimeMillis()); } public static Time...
/* * 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; /** * * @author mauricio.moreira */ public class Calculadora { public int somar(int a, int b){ return a ...
package com.rc.portal.service.impl; import java.sql.SQLException; import java.util.List; import com.rc.portal.dao.TMemberThreeBindingDAO; import com.rc.portal.service.TMemberThreeBindingManager; import com.rc.portal.vo.TMemberThreeBinding; import com.rc.portal.vo.TMemberThreeBindingExample; public class TMemberThree...
package mate.academy.internetshop.web.filter; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Set; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; i...
package com.angelhack.mapteam.controller; import com.angelhack.mapteam.api.model.IPtoLocation; import com.angelhack.mapteam.api.model.ProfileResponse; import com.angelhack.mapteam.model.MemberCondition; import com.angelhack.mapteam.model.MemberUser; import com.angelhack.mapteam.repository.MemberConditionRepository; i...
package com.example.afshindeveloper.afshindeveloperandroid.view.activity; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.SwitchCompat; import android.util.Log; import android.view.View; import android.view.animation.AccelerateInterpolator; import android.vie...
package com.redhat.bashburn.fuse.tasks; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import com.redhat.bashburn.taskmanager.ListTasksRequest; import com.redhat.bashburn.taskmanager.ListTasksResponse; import com.redhat.bashburn.taskmanager.TasksEndpoin...
package com.httpclientdemo; import org.testng.annotations.Test; /** * Created by Administrator on 2020/2/5 0005. */ public class HttpDemo { @Test public void test(){ } }
package com.sun.demo2; // done merge to Java-Basic public class Client { public static void main(String[] args) { Host host = new Host(); // 1. 每个 代理调用程序:可以动态返回代理类、动态代理方法 ProxyInvocationHandler proxyInvocationHandler = new ProxyInvocationHandler(); // 2. ProxyInvacat...
package com.inalab.dao.impl; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.jdbc.core.BeanPropertyRowMapper; import com.inalab.dao.EmployeeDao; import com.inalab.model.Employee; public class E...
/** * Javassonne * http://code.google.com/p/javassonne/ * * @author Kyle Prete * @date Apr 1, 2009 * * Copyright 2009 Javassonne Team * 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 o...
package com.terminal.action; import java.io.ByteArrayInputStream; import java.util.Map; import org.apache.struts2.interceptor.SessionAware; import com.opensymphony.xwork2.ActionSupport; import com.terminal.utils.SecurityCode; import com.terminal.utils.SecurityImage; public class SecurityCodeImageAction extends A...
package com.Oovever.esayTool.easyHttp; import com.Oovever.easyHttp.util.HttpUtil; import com.Oovever.esayTool.io.file.FileWriter; import org.junit.Assert; import org.junit.Test; /** * @author OovEver * 2018/7/18 21:57 */ public class BaiduSearchTest { String url = "https://baidu.com"; String qiubai = "htt...
package by.bsu.lab6.part1.util; import by.bsu.lab6.part1.entity.StarSystem; public class PlanetCounter { public int countPlanetsInStarSystem(StarSystem starSystem) { return starSystem.getPlanets().size(); } }
package game.maze; import java.io.*; import java.net.*; import java.util.ArrayList; import java.util.Random; import javax.xml.parsers.*; import org.w3c.dom.Document; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import math.geom.*; public class PlayerHandler implements Runnable { /* Notificat...
package edu.htu.ap.lesson7; public class CoffeeMaker_v1 { //instance varaibles (attributes) int water; int coffee; int sugar; //methods, functions (actions) public void boil() { System.out.println("Boiling water..."); } public void addCoffee() { System.out.println("Adding coffee..."); } public void...
/** * Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro * Copyright: 2013 Nan21 Electronics SRL. All rights reserved. * Use is subject to license terms. */ package seava.ad.presenter.impl.scheduler.model; import java.util.Date; import seava.ad.domain.impl.scheduler.JobLog; import seava.j4e.api.annota...
package javabasico.aula19labs; import java.util.Scanner; /** * @author Kim Tsunoda * Objetivo Criar um vetor A com 10 elementos inteiros. Escrever um programa que calcule e escreva: a) a soma de elementos armazenados neste vetor que são inferiores a 15; * b) a quantidade de elementos armazenados no vetor q...
/* * [y] hybris Platform * * Copyright (c) 2000-2016 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * li...
package com.project.linkedindatabase.repository.model.skill; import com.project.linkedindatabase.domain.BaseEntity; import com.project.linkedindatabase.domain.Profile; import com.project.linkedindatabase.domain.skill.Skill; import com.project.linkedindatabase.jsonToPojo.SkillPoJo; import com.project.linkedindatabase.r...
package com.enike.myapplication; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import com.facebook.shimmer.ShimmerFrameLayout; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstan...
package com.fixit.ui.fragments; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.text.TextUtils; import andr...
package com.propify.challenge.properties.services; import org.springframework.stereotype.Service; @Service public class AlertService implements AlertOperations { public void sendPropertyDeletedAlert(int id) { // What this method actually does is not important } }
import audio.AudioHandler; import java.awt.*; import java.util.LinkedList; public class EnemyHandler { private LinkedList<Enemy> enemies; public EnemyHandler(){ enemies = new LinkedList<Enemy>(); } public void draw(Graphics2D g){ int size = enemies.size(); for (in...
/* * 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 Lab; import Patients.AdmitPatientView; import Patients.ViewPatientRecordsView; import Patients.wardLogs; import java...
package com.dreamcatcher.util; import java.io.File; public class FileManager { public static boolean isExistingDirectory(File file){ boolean flag = false; if(file.exists() && file.isDirectory()) flag = true; return flag; } public static boolean deleteEmptyDirectory(String path) { boo...
package com.mideas.rpg.v2.hud.auction; import com.mideas.rpg.v2.Mideas; import com.mideas.rpg.v2.utils.Frame; public class AuctionHouseFrame extends Frame { private final Frame browseFrame; private Frame activeFrame; private final static short X_FRAME = 19; private final static short Y_FRAME = 118; private fina...
package datastructure; import org.junit.Test; import static org.junit.Assert.*; /** * Created by zhoubo on 2017/5/13. */ public class BinaryTreeTest { @Test public void search() throws Exception { BinaryTree<Integer> binaryTree = new BinaryTree<Integer>(); BinaryTreeNode<Integer> binaryTree...
package com.trashfun; import android.arch.core.util.Function; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.MutableLiveData; import android.arch.lifecycle.Transformations; import android.arch.lifecycle.ViewModel; import java.io.IOException; import java.io.InputStream; import java.net...
package enthu_l; interface Flyer{ } class Bird implements Flyer { } class Eagle extends Bird { } class Bat { } public class e_837 { public static void main(String[] args) { Flyer f = new Eagle(); Eagle e = new Eagle(); Bat b = new Bat(); if(f instanceof Bird) System.o...
package daggerok; import config.AuthorizationServerConfig; import daggerok.account.Account; import daggerok.account.AccountRepository; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.Sp...
package com.example.radio.Model; public class CheckModel { private boolean isChecked; private String Value; public CheckModel(boolean isChecked, String value) { this.isChecked = isChecked; Value = value; } public CheckModel() { } public boolean isChecked() { retur...
/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template */ package assignment2task2; import java.util.Scanner; import java.util.Random; /** * * @author ramananthirugnanasundaram...
public class NoADMSessionException extends RuntimeException { public NoADMSessionException() { super(); } public String to_string() { return "O administrador do sistema nao esta logado"; } }
package july.akberCollection; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; public class Collection_2 { public static void main(String[] args) { Collection<Integer>coll = new ArrayList<>(Arrays.asList(3,4,5,2,66,544,31) ); System.out....
package com.lingnet.vocs.dao.workorder; import com.lingnet.common.dao.BaseDao; import com.lingnet.vocs.entity.AreaResponsible; /** * 区域负责人 * @ClassName: AreaResponsibleDao * @Description: TODO * @author 薛硕 * @date 2017年6月28日 下午6:09:03 * */ public interface AreaResponsibleDao extends BaseDao<Ar...
package com.kaldin.test.scheduletest.dao; import com.kaldin.common.util.PagingBean; import com.kaldin.test.scheduletest.dto.TestScheduleDTO; import java.util.Date; import java.util.List; public abstract interface ScheduleTestInterface { public abstract List<?> getTestList(int paramInt); public abstr...
public class defaultconstructor { void disp() { System.out.println("i am sid"); } public static void main(String[] args) { defaultconstructor dc = new defaultconstructor(); dc.disp(); } }
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the ter...
package NewPattern; import java.io.File; public class FolderCreat { public static void main(String[] args) { String s = "C:/Grid"; File f = new File(s); try { if (f.exists() == false) { f.mkdirs(); System.out.println("Directory created"); } else { System.out.println("Directory already pres...
package org.adv25.ADVNTRIP.Clients.Authentication; import org.adv25.ADVNTRIP.Clients.Client; public interface Authentication { boolean start(Client client); String toString(); }
package logging; import java.io.PrintStream; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; /** * Fundamentals Of Security, Assignment 2 * Created by Jacob Dunk */ public class StreamLogger implements Logger { final DateFormat formatter = new SimpleDateFormat("HH:mm:ss.S...