91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 619KB
    文件類型: .7z
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-05
  • 語言: Java
  • 標簽: 計算器??

資源簡介

本代碼使用GridLayout搭建計算器按鍵布局,并簡單實現了計算器+-*/的功能,解決了java的double類型運算精度問題

資源截圖

代碼片段和文件信息

package?com.tz.bflyff.calculator;

import?android.content.Context;
import?android.support.test.InstrumentationRegistry;
import?android.support.test.runner.AndroidJUnit4;

import?org.junit.Test;
import?org.junit.runner.RunWith;

import?static?org.junit.Assert.*;

/**
?*?Instrumented?test?which?will?execute?on?an?Android?device.
?*
?*?@see?Testing?documentation
?*/
@RunWith(AndroidJUnit4.class)
public?class?ExampleInstrumentedTest?{
????@Test
????public?void?useAppContext()?throws?Exception?{
????????//?Context?of?the?app?under?test.
????????Context?appContext?=?InstrumentationRegistry.getTargetContext();

????????assertEquals(“com.tz.bflyff.calculator“?appContext.getPackageName());
????}
}

評論

共有 條評論