摘要: 环境搭建,运行出来一个JSP页面,显式hello 英文字母表 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String 阅读全文
posted @ 2022-03-06 21:07 玛卡-巴卡 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c 阅读全文
posted @ 2021-11-04 17:47 玛卡-巴卡 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1、 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c 阅读全文
posted @ 2021-10-08 11:58 玛卡-巴卡 阅读(12) 评论(0) 推荐(0) 编辑
摘要: package com.example.chap03; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import android.content.DialogI 阅读全文
posted @ 2021-09-25 15:24 玛卡-巴卡 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 1.创建3个界面 第一个界面有3个button 第二个界面有单选按钮 学历:初中 高中 专科 本科 第三个界面有5个复选框 学过哪些课程 Java Ios Android Html Jsp 把第二个界面设置为启动界面 <?xml version="1.0" encoding="utf-8"?> <R 阅读全文
posted @ 2021-09-05 16:53 玛卡-巴卡 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 作业1:安装环境,截图编程界面,截图运行界面 2.九宫格 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android 阅读全文
posted @ 2021-09-01 09:22 玛卡-巴卡 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Cola公司的雇员分为以下若干类:(知识点:多态) [必做题]• 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 4.2 Salar 阅读全文
posted @ 2021-06-16 13:48 玛卡-巴卡 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-06-16 13:37 玛卡-巴卡 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1、定义一个点类Point, 包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point( intx0,y0),以及一个movePoint (int dx,intdy)方法实现点的位置移动,创建两个Point对象p1、p2, 分别调用movePoint方法后,打印pl和p2的坐标 阅读全文
posted @ 2021-05-24 11:33 玛卡-巴卡 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 1 package sj10; 2 import java.util.Scanner; 3 public class jw { 4 public static void main(String[]args){ 5 Scanner input= 阅读全文
posted @ 2021-05-10 11:11 玛卡-巴卡 阅读(48) 评论(0) 推荐(0) 编辑