首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
牛客153186956号
获赞
0
粉丝
0
关注
3
看过 TA
2
河北科技学院
2021
Java
IP属地:北京
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客153186956号吗?
发布(36)
刷题
牛客153186956号
2022-06-02 21:43
Java
题解 | #JS动态创建节点#
<html> <head> <meta charset=utf-8> </head> <body> <ul></ul> </body> <script type="text/javascript"> ...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-21 21:19
Java
题解 | #设置文字颜色#
// JavaScript let pArr = document.getElementsByTagName('p') for(let i = 0; i < pArr.length; i++){ pArr[i].style.color = 'red' } // jQuery $('p').css('color','red')
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-21 21:09
Java
题解 | #文件扩展名#
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <script> &...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-17 19:24
Java
题解 | #直角三角形#
{"css":"","js":"","html":"\n<html lang="en">\n \n <meta charset="UTF-8">\n \n \n \n\n \n \n","libs":[]}
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-13 14:28
Java
题解 | #固定定位#
{"css":"","js":"","html":"\n \n \n <style type="text/css">\n .box {\n /补全代码/\n width:4em;\n height:4em;\n }\n \n \n \n \n \n","libs":[]}
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 22:08
Java
题解 | #数组倒转#
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { int[] arr = new int[6]; Scanner scanner = new Scanner(System.in); for (int i = 0; i < arr.length; i++) { arr[i] = scanner.nextInt(); } System.out.println(Arrays.toString(arr)); //wr...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 21:53
Java
题解 | #数列求和#
public class Main { public static void main(String[] args) { //write your code here........ long sum = 0; long a = 9; for(int i = 0; i < 10; i++){ sum += a; a = a * 10 + 9; } System.out.println(sum); } }
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 21:34
Java
题解 | #判断体重指数#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double height = scanner.nextDouble(); double weight = scanner.nextDouble(); //write your code here...... double bim = weight /(height * height); if(bim < 18...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 21:30
Java
题解 | #计算商场折扣#
import java.util.*; public class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int price = console.nextInt(); int cost = 0; if(price >= 100){ cost =(int)(price * 0.9); } if(price >= 500){ cost =(int)(price * 0.8); }...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 21:01
Java
题解 | #创建单例对象#
public class Main { public static void main(String[] args) { Singleton s1 = Singleton.getInstance(); Singleton s2 = Singleton.getInstance(); System.out.println(s1 == s2); } } class Singleton { private static Singleton instance; private Singleton() { } //write your code here...... pub...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 19:03
Java
题解 | #重写父类方法#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextInt()) { int x = scanner.nextInt(); int y = scanner.nextInt(); Sub sub = new Sub(x, y); System.out.println(su...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 18:56
Java
题解 | #实现接口#
import java.util.Scanner; public class Main { public static void main(String[] args) { Comparator comparator = new ComparatorImpl(); Scanner scanner = new Scanner(System.in); while (scanner.hasNextInt()) { int x = scanner.nextInt(); int y = scanner.nextInt(); Sys...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 18:32
Java
题解 | #实现抽象方法#
import java.util.Scanner; public class Main { public static void main(String[] args) { // Sub是需要你定义的子类 Base base = new Sub(); Scanner scanner = new Scanner(System.in); while (scanner.hasNextInt()) { int x = scanner.nextInt(); int y = scanner.nextInt(); base.s...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 18:08
Java
题解 | #类型判断#
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String className = scanner.next(); Base obj = (Base) Class.forName(className).newInstance(); S...
0
点赞
评论
收藏
转发
牛客153186956号
2022-05-05 17:53
Java
题解 | #重写计算逻辑#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextInt()) { int x = scanner.nextInt(); int y = scanner.nextInt(); Sub sub = new Sub(x, y); sub.calculate(); ...
0
点赞
评论
收藏
转发
1
2
3
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务