精选优质文档-倾情为你奉上import java.util.Scanner;public class Newtonchazhi public static void main(String args) int i,j;System.out.println(请输入要求的值:);Scanner sa=new Scanner(System.in);double t = sa.nextDouble();System.out.println(请输入端点的个数:);Scanner sc=new Scanner(System.in);int n = sc.nextInt();System.out.println(请输入各端点横坐标:);Scanner sd=new Scanner(System.in);double x = new doublen;for(i=0;in;i+)xi = sd.nextDouble();