Questions tagged as 'java'

2
answers

Exporting an HTML table to PDF and EXCEL

Hello, I'm trying to create an HTML page for my webpage. I'm trying to create an HTML page for my website. Thanks.     
asked by 30.03.2016 / 14:40
2
answers

When generating an image, I just want to visualize it and not save it

When using this code I save the image, but instead of saving I just want to visualize it. String key = "Lucão MC"; BufferedImage bufferedImage = ImageIO.read(new File("recibo.png")); Graphics graphics = bufferedImage.getGraphics();...
asked by 30.11.2016 / 20:43
1
answer

What is the difference between Mkdir and CreateNewFile?

I am studying about the File class in Java, and would like to know the difference between using mkdir and CreateNewFile , does mkdir create the directory that is passed as a parameter in folder format only?     
asked by 12.06.2018 / 18:00
1
answer

How to validate a text (Assert) in a certain field in Selenium Webdriver?

How do I validate a text in a given field? The location is xpath: html/body/div[1]/div/div[4]/article/div[1]/div/header/div[1]/h1 The text is " Congratulations! Successfully inserted ". How do I validate with assert? Java language....
asked by 15.03.2018 / 16:05
1
answer

Report not found when executing .jar

In netbeans he finds the normal report, but when I go through the jar he is not finding it. I've seen some topics here about this problem, but I have not been able to solve it, because they say it's just the "src" of the folder path where the...
asked by 18.04.2018 / 12:54
2
answers

java.lang.nullException error

I'm developing software for an MVC (Model-view-controller) design video store with the Api Persistent Java Framework and the Extensible Markup Language (XML) language. My problem is this: When I log into the login screen of my system, a java....
asked by 09.06.2016 / 15:18
3
answers

How to create an element search method in an ArrayList? [closed]

Assuming an ArrayList that stores objects, and these objects have attributes of various types (int, String, float, etc ...). Knowing this I want to create a method for finding an object in the ArrayList through a keyword or number that can be in...
asked by 06.11.2017 / 05:32
2
answers

Check the diagonal of a specific index

I wanted to know how to check the diagonal of a particular index, for example, put 1 in all diagonal numbers of row 2, column 2 0 1 0 1 0 0 1 0 0 1 0 1 1 0 0 0     
asked by 11.12.2015 / 15:27
2
answers

Verify that the program is running in Windows [closed]

Good evening. I would like to know if you could give me an example in JAVA of how to check if my MADE IN JAVA program is running on Windows. Taking advantage of the topic, I would also like to know how I execute a command in CMD USING J...
asked by 02.10.2017 / 01:45
2
answers

When I use object.method (). method ()? [closed]

Good evening. I have a doubt: when I use a syntax like: method (). When and how do I use this method?     
asked by 16.07.2018 / 04:16