Quantcast
Channel: Форум программистов и сисадминов Киберфорум
Viewing all articles
Browse latest Browse all 516915

Задача в NetBeans - Java SE (J2SE)

$
0
0
Вложение 659321

Код:

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package lab12;

/**
 *
 * @author Ксения
 */
import java.util.Math;
public class Lab12 {
    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
        double x;
        x = 0.5;
        final double E=2.71828182846;
        double y;
        y=(Math.abs(x*Math.lnx-4./7)*Math.sqrt(x))/Math.pow(Math.pow(Math.E,4*x-1.1), 1./5);
        System.out.println ("y="+y);
    }
   
}

!!! ОШИБКА!!!
Пишет: java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: class Math
location: package Java.lang
at lab12.Lab12.<clinit>(Lab12.java:12)
Exception in thread "main" C:\Users\Ксения\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
СБОРКА ЗАВЕРШЕНА СО СБОЕМ (общее время: 2 секунды)

Что делать?

Изображения
Тип файла: png Безымянный.png (11.0 Кб)

Viewing all articles
Browse latest Browse all 516915

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>