[Solved] A couple small basic questions making issues [closed]

First, format your code well. Second, I don’t see your link. Lastly, these kind of questions are not for stack overflow but I’ll answer it anyway. Package is basically like a folder that classes and other files are stored. Project is the whole thing – group of packages. You are good with what you have. … Read more

[Solved] How to make reliase without error? [duplicate]

It appears you are using the Apache Harmony library, which utilizes Java AWT. The java.awt package is not part of Android. You cannot use code or libraries which depend on the java.awt package. Warning:org.apache.harmony.awt.datatransfer.DataProxy. can’t find superclass or interface java.awt.datatransfer.Transferable See also: How to add java.awt.image package in Android Using awt with android Porting AWT … Read more

[Solved] JavaFX – What do I need to pass in the forTableColumn() for a CheckBoxTableCell

It seems you just pass the column itself. giveRefundsCol.setCellFactory(CheckBoxTableCell.forTableColumn(giveRefundsCol)); Fun story it isn’t used in the Oracle source code, you could just pass null It would work the same public static <S> Callback<TableColumn<S,Boolean>, TableCell<S,Boolean>> forTableColumn( final TableColumn<S, Boolean> column) { return forTableColumn(null, null); } 0 solved JavaFX – What do I need to pass in … Read more

[Solved] Confused about what to write in my code

import java.util.ArrayList; public class Worksheet { private ArrayList<DataEntry> data; private String title; /** * create a new worksheet with given title * * @param title */ public Worksheet(String title) { data = new ArrayList<DataEntry>(); this.title = title; } /** * @return a shallow copy of the data */ public ArrayList<DataEntry> getData() { return data; } … Read more

[Solved] Java “try without catch” and “catch without try” [closed]

You can’t put reader.close() between the try and the catch. Either put it in a finally block, or use a try-with-resources. Like, try (BufferedReader reader = new BufferedReader(new FileReader(filenameIn))) { reader.readLine(); for (int i = 0; i < personArray.length; i++) { String[] data = reader.readLine().split(“/t”); // <– should be \\t for tab. personArray[i] = new … Read more

[Solved] How can I develop this kind of Button

What I would do is something like this: 1 – Separate your LayerList into 2 distinct drawables circle.xml <?xml version=”1.0″ encoding=”utf-8″?> <shape xmlns:android=”http://schemas.android.com/apk/res/android” android:shape=”oval” > <size android:height=”85dp” android:width=”90dp” /> <solid android:color=”@color/grey” /> <stroke android:color=”@color/white” android:width=”4dp” /> </shape> I assume you already have this bitmap: drawable/checkmark_filled 2 – Use a TextView, instead of an ImageView: <TextView … Read more

[Solved] Android Checkbox getchecked (CompoundButton.OnCheckedChangeListener (without button click event))

You are fetching your CheckBox with findViewById(R.id.checkbox); when in the xml, the id is android:id=”@+id/checkBox” The id is case sensitive so check your capitalization. Basically your code is fetching a view by ID and not finding it. Therefore your cb object is set to null and you throw a nullpointer here cb.setOnCheckedChangeListener(this); 0 solved Android … Read more

[Solved] Having trouble implementing a nested class comparator

You should provide inner class instance into Arrays.sort to compare points from view of parent class instance. To do it you should not create new instance in main() function, but get it from Point instance. So, in main function you should use something like this: Point pivot; … // set up pivot point here Arrays.sort(myPoints, … Read more

[Solved] How to improve the output for this factorial program? [closed]

Let’s say we have int n which is the factorial number int n=4; int result=1; for(int i=1;i<=n;i++) { result = result * i; System.out.print(“1*”); for(int j=1;j<i;j++) { System.out.print(j+”*”); } System.out.println(i+”=”+result); } The result will be: 1*1=1 1*1*2=2 1*1*2*3=6 1*1*2*3*4=24 1 solved How to improve the output for this factorial program? [closed]

[Solved] How to install a software using Jenkins job?

That depends on the installer software – if you can configure it for unattended installation then it’s simple to set up a Jenkins job – how you’d call the executable depends on the installer. The site http://unattended.sourceforge.net/installers.php shows how to do that for different installer software. 1 solved How to install a software using Jenkins … Read more