Posts by ADR • 85 points
10 posts
-
0
votes1
answer150
viewsQ: Ignore the header when inserting data from a csv file into a Java string array
Good night, I read a csv file and stored the information in a string array. The file from position 0 to 8 has string content, from position 9 to 29 has in its entire content. I need to compare if…
-
0
votes1
answer38
viewsQ: How to display the line number of a method in Java?
Good morning , I am using AST , so I was able to access the methods, attributes and get if it is public or private, among other things. How do I display the line number of a particular attribute or…
-
0
votes1
answer47
viewsQ: Display in a Messagedialog the contents of List<String> message = new Arraylist<String>();
Good night, I need to display the contents of the message array in a Message Dialog: List<String> mensagem = new ArrayList<String>(); In the course of code I add some text to the array…
-
0
votes2
answers2097
viewsQ: Read java txt file data and perform Java operations
I am making a vehicle rental company in java need to read from a txt the type of client(char) a date range(string) and the amount of passengers(int). I need to bring this data to be analyzed , for…
-
1
votes1
answer330
viewsQ: RMI application works localhost, but gives error when placing Server IP
If I run the code snippet as it is below in my application, it works: public static void main(String args[]){ try { final InterfaceTrilha interfaceServer = (InterfaceTrilha)…
-
0
votes1
answer108
viewsQ: Java java.lang.Nullpointerexception in a Jpanel constructor
I’m trying to compile a memory game in java, but gives the following error: Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:217) at…
-
0
votes0
answers44
viewsQ: Find char in a string, never find
I made a function search for a character in a string. The input parameters are the string and the character. The function returns 1 (one) if the character exists in the string or zero otherwise. The…
-
0
votes2
answers54
viewsQ: Vector in C- Program Received Signal, Segementation fault
Hello, I designed a function that checks whether a number is present in a vector. A function takes as parameters the vector, the value to be checked and the number of existing elements in it. E…
-
5
votes2
answers9758
viewsQ: Pass matrix as pointer
I need to make the proposal: Elaborate a function that takes as parameters a pointer of an array, the number of rows and columns, and print the matrix elements. But I am learning pointers and having…
-
0
votes1
answer2690
viewsQ: Program Received Signal sigsegv Segmentation fault
I made the code in C of the statement: Develop a program that simulates a ticketing system for a airline. The company has no flights, where in each of them there are a available seats. The first m/2…