首页 \ 问答 \ java jdk 环境配置

java jdk 环境配置

RT    java  jdk  在win7  系统下  怎么配置环境变量
更新时间:2022-03-10 21:03

最满意答案

你这里面错误好多哦,我改了下结果应该是你想要的,你对照下看看

import  java.util.*;
public  class  Test{
  public  static  void  main (String args[]) {
    Scanner  reader=new  Scanner(System.in);
      System.out.print("Enter  your  name:");
      String  name=reader.next();
      System.out.println("选手是:"+ name);
      int i=0;
int n=10;
int max=0,min=0;
int[] a =new int[10];
int t=0;
double sum=0.0,aver=0.0;


System.out.printf("imput number:");
for(i=0;i<n;i++){
a[i]=reader.nextInt();
}


if(a[0]>a[1])
{
max=a[1];
min=a[0];
}else{
max=a[0];
min=a[1];
}
sum=a[1]+a[2];


for(i=2;i<n;i++){
 if(a[i]>max){
  max=a[i];
 }
 if(a[i]<min){
  min=a[i];
 }
  sum=sum+a[i];
}


aver = sum/n;
System.out.println("最高分是"+ max);
System.out.println("最低分是"+min);
System.out.println("平均分是"+aver);
      }
   }

相关问答

更多
  • 你可以先用apktool将apk进行反编译了,如果你会android的中间格式代码smali的话,你就直接添加修改,然后在重新用它进行编译就行。如果你不了解smali的话,你可以用jd-gui.exe,以java代码的格式查看反编译后的代码。不过如果apk被混淆过的话,那就很难看懂和修改了。
  • 你这里面错误好多哦,我改了下结果应该是你想要的,你对照下看看 import java.util.*; public class Test{ public static void main (String args[]) { Scanner reader=new Scanner(System.in); System.out.print("Enter your name:"); String name=reader.next(); System.out.println("选手是:"+ name); int i= ...
  • 你的代码翻译成Java代码如上,自己看看研究下
  • 改网标用网标管家或者自己制作,改菜单程序名需要菜单增强,或者派森平台!
  • 我不建议在生产应用程序中这样做,但如果这只是病态的好奇心,那么我建议你阅读本教程: 在运行时修改IL 。 这不是一个我已经设法完成的教程,但是一段时间以后,我对使用IL / CLR感兴趣,并且对此感兴趣。 任何你想在生产中使用它的东西都应该保留在你可以使用的各种可用的存储选项中:配置文件,数据库,文件系统,注册表等。修改可执行文件是一件大事,不应该被认为是轻微的。 I wouldn't recommend doing this for a production application but if it's ...
  • 虽然自动化强制推送是一个非常糟糕的主意,因为它重写了历史记录,并且使用相同存储库的其他人都会讨厌你,你也可以定义一个git别名而不是像shell一样的别名 git config alias.amend '!git add . && git commit --amend && git push -f' 或者,如果您不想编辑提交消息,那么 git config alias.amend '!git add . && git commit --amend -C HEAD && git push -f' 然后你可 ...
  • 这当然是可能的 。 出于各种原因,我们在过去的30 - 40年中花了很多精力试图尽可能地让它变得困难,但这是可能的。 现在,在大多数系统中,都有硬件和软件机制试图保护数据空间不被执行。 但是,基础知识非常简单:构建一段代码,然后通过编译器手动或组装它。 然后,您需要一段代码空间,因此您可以将代码插入到程序中 unsigned int prgm[] = { 0x0F, 0xAB, 0x9A ... }; // Random numbers, just as an example 因为你想使用堆,你需要ma ...
  • 如果你不喜欢使用辅助“宏”程序的想法,你可以修补原始程序的二进制文件来调用按钮的BM_CLICK处理程序。 如果你可以为调用找到一些空间(最少5个字节没有参数),你可以单独使用OllyDbg(编辑代码后,选择它,然后选择“复制到可执行文件” - >右键单击“选择”)菜单)。 否则,您需要使用PE编辑器(例如LordPE或PE Tools)创建一个新的代码部分并在那里添加您的代码(通常您需要更改程序中的调用以跳转到您的部分,在那里您执行原始调用以及对按钮的单击处理程序的调用,然后在修补跳转后跳回到旧位置)。 ...
  • 您可以创建一个插件。 实现一个接口(所有插件通用),描述插件预期提供的所有方法和功能。 然后你可以动态加载插件(在运行时),如下所示: Assembly.LoadFrom("plugin.dll") - 请参阅http://msdn.microsoft.com/en-us/library/1009fa28.aspx 一篇文章更详细地描述了这种方法: http : //www.codeproject.com/Articles/4691/Plugin-Architecture-using-C 另一个: http ...
  • 如果您只需要编译程序集进行修改,则可以在“AfterCompile”上更改目标名称。 在AfterCompile目标中,您将只获得没有任何其他资源(如附属程序集)的程序集。 If you only need compiled assembly for modification you can change target name on "AfterCompile". In AfterCompile target you will get only the assembly without any addit ...

相关文章

更多

最新问答

更多
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • linux的常用命令干什么用的
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • Java中的不可变类(Immutable class in Java)
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • 绑定属性设置器未被调用(Bound Property Setter not getting Called)
  • linux ubuntu14.04版没有那个文件或目录
  • 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
  • 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
  • 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
  • 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
  • 如何按部门显示报告(How to display a report by Department wise)
  • Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
  • Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
  • WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)